【发布时间】:2021-10-06 04:24:19
【问题描述】:
“Export a Certificate from pfx”可以无缝连接,无需用户输入密码。
Powershell 6.1+ commandlet 允许将-password 切换为Get-PfxCertificate。
对于早期版本,possible solution 是:
powershell (Get-PfxCertificate -FilePath Private.pfx).GetPublicKey()
,用户必须在命令提示符下输入密码,否则会出错:Get-PfxCertificate : The specified network password is not correct.
密码必须在提示时输入;不接受复制/粘贴。也没有为命令提供密码的开关。
【问题讨论】:
标签: cmd passwords export public-key pfx