Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error uploading SSL certificate to Windows Azure [closed]

Tags:

iis

ssl

azure

I have an Azure Web Site running successfully for the last year over SSL. The certificate is expiring, so I purchased a renewal. The steps I followed were:

  1. use IIS to create the CSR

  2. download the PKCS7 package (which includes intermediate certificates) from GeoTrust

  3. complete the certificate request in IIS

  4. use the certmgr MMC snap-in to export the PFX file with a private key and including all intermediate certificates and extended properties

  5. upload to Azure

I am getting an error from Azure on step 5 - "Could not upload the certificate for web site XYZ." And the expanded error detail is "At least one certificate is not valid (Certificate failed validation because it could not be loaded.)"

like image 308
maxmoore14 Avatar asked Jul 03 '14 15:07

maxmoore14


People also ask

How do I upload an SSL certificate to Azure?

In the Azure portal, from the left menu, select App Services > <app-name>. From your app's navigation menu, select TLS/SSL settings > Private Key Certificates (. pfx) > Import App Service Certificate. Select the certificate that you just purchased, and then select OK.

Is your browser returning an error for your SSL certificate Why or why not?

An SSL certificate error occurs when the browser cannot verify the SSL certificates returned by the server. When the error happens, the browser blocks the website and warns the user that the website cannot be trusted as shown below. These warnings will negatively impact the user's trust in your website.


2 Answers

Update: Azure support notified me on 2014/07/07 that the issue described below has been fixed.


I contacted Azure support and they confirmed that this is a known issue with the service. According to the tech I spoke to, a fix should be deployed some time next week.

In the meantime, I was provided with the following workaround:

While exporting the certificate, uncheck the following boxes:

  • Include all certificates in the certificate path if possible
  • Export all extended properties
like image 168
Brant Bobby Avatar answered Oct 21 '22 15:10

Brant Bobby


Having just received the error as described (with a COMODO wildcard certificate) I tried NOT including the intermediate certificates when exporting the .pfx cert file and -- low and behold -- Azure accepts the certificate upload.

This goes contrary to the Azure docs, but initial testing of the https URL in Firefox, IE and Chrome doesn't show any problems.

like image 40
Martin Connell Avatar answered Oct 21 '22 15:10

Martin Connell