![](/img/trans.png)
[英]Accessing certificate in Azure KeyVault from ASP.NET Core app
[英]Is there a way to import certificate from azure keyvault to azure web app in .NET?
在 azure cli 中,我們有此命令可從 keyvault.az 將證書導入/綁定到 azure 應用程序
webapp config ssl bind --certificate-thumbprint {certificate-thumbprint} --name MyWebapp --resource-group MyResourceGroup --ssl-type SNI
我在 .NET 中找不到等效的庫來做同樣的事情(我使用的是 C#)。 有人可以幫忙嗎?
謝謝@john,你的提示對我來說已經足夠了。 您指出的方法有助於 ssl 與現有證書綁定。 但我需要在我的 azure web 應用程序中導入證書 . 有任何 API 嗎?
var webApp1 = azure.WebApps
.GetById(<your resouce Id as a string>)
.Update()
.DefineSslBinding()
.ForHostname(<host name as a string>)
.WithPfxCertificateToUpload(<certificate as a string>,
<password as a string>)
.WithSniBasedSsl()
.Attach()
.Apply();
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.