如何从PowerShell向AppService添加公共证书 [英] How to add public certificate to AppService from PowerShell
问题描述
我想将公共证书(CER)添加到我的AppService中,但是我找不到从Powershell中执行此操作的方法.对于私人证书,我使用的是这样的代码:
New-AzureRmWebAppSSLBinding -ResourceGroupName myresourcegroup -WebAppName mytestapp -CertificateFilePath PathToPfxFile -CertificatePassword PlainTextPwd -Name www.contoso.com
Remove-AzureRmWebAppApp Binding -ResourceGroupName名称www.contoso.com -DeleteCertificate $ false
Azure Portal 并以编程方式进行.您可以在" <跨样式中引用博客="color:#0563c1">安装 应用服务中的公共证书 ",您可以使用PUT API上传.CER证书.
如果此答案很有帮助,请单击"标记为答案"或"投票".提供额外的 关于您的论坛体验的反馈,请单击 .
>
Hi,
I want to add public certificate (CER) to my AppService but I cannot find a way how to do that from powershell. For private certificate I'm using such code:
New-AzureRmWebAppSSLBinding -ResourceGroupName myresourcegroup -WebAppName mytestapp -CertificateFilePath PathToPfxFile -CertificatePassword PlainTextPwd -Name www.contoso.com
Remove-AzureRmWebAppSSLBinding -ResourceGroupName myresourcegroup -WebAppName mytestapp -Name www.contoso.com -DeleteCertificate $false
You can upload public certificate (.cer) using both Azure Portal and programmatically. You may refer to the blog on "Installing public certificate in app service" where using PUT API you can upload the .CER certificate.
-----------------------------------------------------------------------------------------------
If this answer was helpful, click "Mark as Answer" or "Up-Vote". To provide additional feedback on your forum experience, click here.
这篇关于如何从PowerShell向AppService添加公共证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!