[英]Azure - Linux WebApp - Root certificate for chain
I've got my public cer certificates attached to my web app as listed here: https://learn.microsoft.com/en-us/azure/app-service/configure-ssl-certificate?tabs=apex%2Cportal The third party have provided both a certificate and root certificate for use.我已将公共 cer 证书附加到我的 web 应用程序,如下所示: https://learn.microsoft.com/en-us/azure/app-service/configure-ssl-certificate?tabs=apex%2Cportal第三个方已提供证书和根证书供使用。
Our web app is a Linux version - I cant find how to add certificate chain or place the certificate in any location except currentuser/my.我们的 web 应用程序是 Linux 版本 - 我无法找到如何添加证书链或将证书放置在当前用户/我以外的任何位置。
Anyone able to help out?任何人都可以帮忙吗? Let me know if you need more details.
如果您需要更多详细信息,请告诉我。 I've hunted this site and there isnt a question thats a duplicate.....
我搜索过这个网站,没有重复的问题.....
As per this MSDoc ,use the below code snippet to load a private certificate in a Linux app.根据此MSDoc ,使用以下代码片段在 Linux 应用程序中加载私有证书。
using System; using System.IO; using System.Security.Cryptography.X509Certificates; ... var bytes = File.ReadAllBytes("/var/ssl/private/<thumbprint>.p12"); var cert = new X509Certificate2(bytes); // Use the loaded certificate
Add WEBSITE_LOAD_CERTIFICATES
in Application Settings under the Configuration Section of the deployed Azure Linux Web App在已部署的应用程序的配置部分下的应用程序设置中添加
WEBSITE_LOAD_CERTIFICATES
Azure Linux Web App
Please refer Using Certificates in Azure Websites Applications , Root CA on App Service and SO Thread for more information请参阅Azure 网站应用程序中的使用证书, 应用服务上的根 CA和SO 线程以获取更多信息
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.