Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure cloud deployment fails : Certificate with thumbprint was not found

I am developing a Web API based web service to be hosted on Azure. I am using Azure 1.8 SDK. When I try to deploy my cloud service, it takes a very long time to upload after which I get an error message which says:

12:09:52 PM - Error: The certificate with thumbprint d22e9de125640c48a4f83de06ae6069f09cfb76c was not found.  Http Status Code: BadRequest  OperationId: 50daf49111c9487f82f3be09763e7924 12:09:53 PM - Deployment failed with a fatal error 

Apparently, the certificate being referred to is related to enabling remote desktop to role instances on the cloud (i am not very sure about this; saw this on the internet for a similar problem). However, I did not check the option to enable remote desktop on the instances while publishing.

What could be going wrong here?

like image 750
Aadith Ramia Avatar asked Sep 13 '13 07:09

Aadith Ramia


People also ask

How do I get a certificate thumbprint in Azure?

Find the thumbprintIn the Azure portal, from the left menu, select App Services > <app-name>. From the left navigation of your app, select TLS/SSL settings, then select Private Key Certificates (. pfx) or Public Key Certificates (. cer).

What is a thumbprint of a certificate?

A certificate thumbprint is a hash of a certificate, computed over all certificate data and its signature. Thumbprints are used as unique identifiers for certificates, in applications when making trust decisions, in configuration files, and displayed in interfaces.


2 Answers

What worked for me was:

  1. Goto powershell and type mmc

  2. Add certificates snap-in by going to File > Add/Remove Snap-in > Choose Certificates from the list > Choose My user Account

  3. Right click on Certificates - Current User and select Find Certificates

  4. On the dialog box, set Contains to 'azure' and Look in Field to 'Issued To'

  5. Press Find Now. You should be able to see a list of certificates.

  6. Check for the thumbprint by double-clicking the certificate > Details tab > scroll down to Thumbprint

  7. Once you found your certificate, close the dialog, Right click and select Export

  8. Select to export the private key. Follow the steps until you have a *pfx file for upload to Azure

  9. Goto your service and select the Certificates tab

  10. Click Upload, select the exported *pfx file, and supply the password you've set during export

  11. Goto Dashbord and update the Cloud package

  12. List item

like image 178
Arbie Samong Avatar answered Sep 21 '22 13:09

Arbie Samong


The certificate used in your project doesn't exist on the cloud environment. Make sure the same certificate used by your project is uploaded to the cloud environment. If you are using Visual Studio then you can fix this error as follows:

  1. Right click your Web Role / Worker Role (under Roles folder in the cloud project) → Properties → Certificates
  2. Click on the ellipsis button under Thumbprint which will point to your certificate.
  3. Upload the certificate which shown here to Windows Azure environment (Production or Staging)
like image 20
Fadeel Avatar answered Sep 19 '22 13:09

Fadeel