创建、安装并使用证书签名后,Powershell 配置文件模块的发布者不受信任?

创建、安装并使用证书签名后,Powershell 配置文件模块的发布者不受信任?

在创建自签名证书并将其安装到系统后,当我尝试运行 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 上的证书存储区的步骤。

相关内容