最佳答案
我尝试在我的环境中重现相同的结果,并得到如下结果:
我生成了如下公共(public)根证书:
$Policy = New-AzKeyVaultCertificatePolicy -SecretContentType "application/x-pkcs12" -SubjectName "CN=contoso.com" -IssuerName "Self" -ValidityInMonths 6 -ReuseKeyOnRenewal
Add-AzKeyVaultCertificate -VaultName "<your-unique-keyvault-name>" -Name "ExampleCertificate" -CertificatePolicy $Policy
现在,我尝试从 Key Vault 读取公共(public)证书数据,我下载了如下证书:
要复制公共(public)证书数据,您必须通过记事本打开它并将其粘贴到点到站点配置中,如下所示:
Note that currently it is not possible to read the public certificate data from Key Vault in the Point-to-Site configuration section.
关于Azure 点到站点 : Is it possible to read the Public certificate data from Key Vault instead of storing it as plain text in the Point-to-Site Config,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74774657/