如何使用Powershell以.cer格式从Azure keyvault下载证书?

时间:2020-06-22 10:55:08

标签: azure powershell azure-powershell azure-keyvault

我想以.cer格式从keyvault下载证书,这是我的自动化脚本的一部分。我将如何使用Powershell做到这一点?

1 个答案:

答案 0 :(得分:0)

如果要在自动化运行手册中将证书下载为.cer文件,则可以使用下面的脚本将其下载到临时文件夹$env:temp

确保已将与RunAs帐户相关的服务主体添加到密钥仓库的Access policies,它需要 Secret Permissions 和{{1 }}中的证书权限

enter image description here

示例:

Get

enter image description here