【发布时间】:2012-02-07 13:34:07
【问题描述】:
我正在使用Windows 7,并且想从Powershell 运行签名脚本,Powershell 的security-settings 设置为"all-signed",我的脚本使用我公司的valid certificate 签名。我还将.pfx-file 添加到我的本地证书存储(right-clicked the pfx-file and installed)。
但是,当我启动签名脚本时,我收到一条消息:
"Do you want to run software from this untrusted publisher?
File Z:\Powershell Signed Scripts\signed.ps1 is published by CN=[MyCompanyName] and is not trusted on your system. Only run scripts from
trusted publishers.
[V] Never run [D] Do not run [R] Run once [A] Always run [?] Help
(default is "D"):"
由于我想在我的系统上自动调用这些脚本,我想将我导入的证书添加到我系统上的受信任列表中,这样当我第一次运行签名脚本时就不会再收到消息了.如何使我的证书成为受信任的证书?
【问题讨论】:
-
您确定颁发您的开发证书的证书颁发机构的公共证书存在于您的证书存储库中吗?
标签: powershell certificate signed pfx trusted