Update: The issue here was due to Insufficient rights which caused the useless error message. After granting the correct rights the problem was resolved.
Error message occurs when trying to upload pfx certificate to App Service
Hello,
We have an App Service running containing a Wordpress instance.
I need to update the wildcard SSL certificate as it is about to run out.
From my Cert authority I have received pfx files, both with and without intermediate ca inside.
When trying to import it as a Private certificate I receive the following error:
I cannot find any additional information.
Have tried to change the pfx password to a more simple password but to no avail.
What can be the cause of this?
8 additional answers
Sort by: Most helpful
-
Vincent Voorheijen 21 Reputation points
2020-12-09T13:44:41.733+00:00 App Service Plan is B1, which should allow for SSL Certificates. Also, the old currently installed certificates are properly binded and working.
-
SnehaAgrawal-MSFT 22,346 Reputation points
2020-12-10T07:39:21.047+00:00 Thanks for asking question! You may want to know that if you choose to upload or import a private certificate to App Service, your certificate must meet the following requirements:
• Exported as a password-protected PFX file
• Contains private key at least 2048 bits long
• Contains all intermediate certificates in the certificate chainAlso, suggest you to access App Service diagnostics ; App Service diagnostics is an intelligent and interactive experience to help you troubleshoot your app with no configuration required.
Navigate to your App Service web app in the Azure portal. In the left navigation, click on Diagnose and solve problems > click on SSL and Domains > select certificate upload operation
You may also refer to this blog on Common errors when uploading certificates to Azure App Service might be helpful.
Let us know if you have further question on this.
Disclaimer: This response contains a reference to a third-party World Wide Web site. Microsoft is providing this information as a convenience to you
-
Vincent Voorheijen 21 Reputation points
2020-12-10T09:34:36.767+00:00 Hello,
The certificate meets the requirements. This was checked with the Cert. Authority.
Also tried to upload an older certificate which is in use at other App Services, fails with the same error:Upload for private certificate failed. Check the notification error for more details
which leads me to believe the issue is on the Azure side.The password for the pfx must be correct. When changing the password the error changes telling me the password is incorrect.
App Service Diagnostics shows no errors (No uploads either for that matter, which seems strange to me as I have tried it 4 times also with different certificates):
After checking in the Resource Explorer there is no conflicting information which could keep this certificate from importing. All information in there is from current / older certificates.
What I do find strange is that an installed certificate (Old certificate) shows a different Certification path:
than on my computer while having the same Thumbprint:
-
Vincent Voorheijen 21 Reputation points
2020-12-11T08:23:12.337+00:00 Sent the requested E-mail, will update this post when we have the solution.