Install .pfx and .cer in Azure

落花浮王杯 提交于 2019-12-23 04:57:25

问题


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:

  1. 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.
  2. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!