您可以在PowerShell中签署文件并在上一个脚本中使用嵌入式CRT文件验证它吗?

发布于 2025-01-23 07:19:11 字数 465 浏览 5 评论 0 原文

我找到了此页面:生成一个PFX文件和CRT文件…但是我看不到在多个多个多个多个多个使用的方法计算机不在不安装某些证书存储的情况下。

我希望能够将公共密钥嵌入我的第一个脚本中,该脚本在网络上验证了第二个脚本,然后才将其自动更新为第二个脚本……它对第三个脚本具有自己的验证……等等。

我想要这个有人不会改变我的脚本,我遇到了麻烦……但是我不想弄乱计算机证书的商店……这可能会让我遇到麻烦:)

I found this page: https://blog.davidchristiansen.com/2016/09/howto-create-self-signed-certificates-with-powershell/ that generates a PFX file and CRT file… but I don’t see a way to use this across multiple computers portably without installing them into some cert store.

I want to be able to have a public key embedded in my first script that validates a signed second script on the network before it updates itself to the second script… which has its own validation for the third script… etc.

I want this so that someone doesn’t alter my script and I get in trouble with IT… but I don’t want to mess with computer cert stores… that might get me in trouble with IT :)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文