Azure – Exporting the SSL certificate with the private Key on windows

azuresslssl-certificate

I am in a process of generating an SSL cert for a domain name.

What I have done:
Went to the IIS management > Server Certificates and clicked on Create Request. This generated a *.com file with a hash inside it that I submitted to the GoDaddy.
From GoDaddy I got back a zip with two files: *.crt and *.p7b

I exported the certificate to a *.cer file and uploaded it to Azure, but when I try to deploy the cloud project I get an error:

Certificate with thumbprint associated with HTTPS input endpoint
does not contain private key

After reading similar issues on the Internet, I understand that my *.cer file doesnt contain the private key.
My problem is that no matter how I try to export it to a *.PFX, the PFX option is always disabled in the cert export wizard.

Also not sure if it is related, but when I Click on Complete Certificate Request in IIS and select the cert that I got from GoDaddy. I get an error:

Cannot find the certificate request that is associated with this
certificate file. A certificate request must be completed on the
computer where the request was created.

Best Answer

You will not have the option of exporting from IIS or exporting to PFX from Certificate Manager if you do not do the IIS "Create Certificate Request" and "Complete Certificate Request" from the same machine.

That was my problem. I did these two steps from two different machines.

I had to create a new request (in IIS), go to GoDaddy, rekey my certificate, download the new certificate, and then complete the request (in IIS).