Windows 7
,並希望從Powershell
運行簽名腳本,PowerShell的的security-settings
設置爲"all-signed"
,和我的腳本與我公司簽訂valid certificate
。我還將.pfx-file
添加到我的本地證書商店(right-clicked the pfx-file and installed)
。如何信任證書在Windows PowerShell
然而,當我開始簽署的腳本,我得到一個消息,說:
"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"):"
因爲我想自動調用在我的系統中的這些腳本,我想我導入的證書添加到信任在我的系統上列出,以便我第一次運行簽名腳本時不會再收到消息。我怎樣才能讓我的證書成爲值得信賴的證書?
您確定發佈您的開發證書的證書頒發機構的公共證書是否存在於您的證書庫中? – JPBlanc 2012-01-11 13:56:13