问题
I have a web site already runing using diferent certificates (.pfx and .cer) for 3rd party integration.
Now i need to move all this to Azure. We are going to use App Service.
How can i install them on Azure? Can someone provide me a site or documentacion about this?
Regards.
回答1:
You'll need up upload the certificates to the management portal and then you should be able to access them similar to how you currently are doing it (guessing here).
Here's a link to a walkthrough on how to do that with sample code of using the certificate at the bottom of it: Using Certificates in Azure Websites Applications. That article is a little dated, but it should still work the same if you use the old portal.
回答2:
Firstly, export the certificate you have as a .pfx file and follow the steps below:
You will have to upload the certificate to the Azure Web App. This needs to be a PFX file (contains private key) In Azure portal, select the webapp with which you intend to use this certificate.
- In the Settings, Click SSL certificates
- Click Upload Certificate
- Select the .pfx file and specify the password .
- Click Upload to upload the certificate.
- You should see the uploaded certificate under in the SSL certificate blade.
Add an app setting named WEBSITE_LOAD_CERTIFICATES with its value set to the thumbprint of the certificate. The certificates will be installed to the Personal certificate store of the ApplicationPool Identity of the worker process, which will make it accessible to your web application.
NOTE: Root CA certificates cannot be installed.
来源:https://stackoverflow.com/questions/38107963/install-pfx-and-cer-in-azure