![创建、安装并使用证书签名后,Powershell 配置文件模块的发布者不受信任?](https://linux22.com/image/688578/%E5%88%9B%E5%BB%BA%E3%80%81%E5%AE%89%E8%A3%85%E5%B9%B6%E4%BD%BF%E7%94%A8%E8%AF%81%E4%B9%A6%E7%AD%BE%E5%90%8D%E5%90%8E%EF%BC%8CPowershell%20%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E6%A8%A1%E5%9D%97%E7%9A%84%E5%8F%91%E5%B8%83%E8%80%85%E4%B8%8D%E5%8F%97%E4%BF%A1%E4%BB%BB%EF%BC%9F.png)
在创建自签名证书并将其安装到系统后,当我尝试运行 Powershell 配置文件子模块时,仍然收到不受信任的发布者信息?
Do you want to run software from this untrusted publisher?
File \\someserver.somedomain.org\Redirected\xxxxxx\My Documents\WindowsPowerShell\dasIncludedModule.psm1 is published by
CN=PowerShell User 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"): R
答案1
使用Get-Help about_Signing
(也这里) 来了解自签名脚本。听起来你错过了将公钥导入本地 PC 上的证书存储区的步骤。