gpt4 book ai didi

signing - 签名程序集时加密失败 '.dll' – 'Bad Version of Provider'

转载 作者:行者123 更新时间:2023-12-03 03:22:47 28 4
gpt4 key购买 nike

我从知名提供商处购买了身份验证证书。

现在我想对程序集进行强命名,然后对其进行数字签名。

这是我到目前为止所做的:

  • 通过运行 sn.exe -p keypair.pfx key.snk 从 pfx 中提取公钥
  • 选中项目属性签名选项卡上的“对程序集进行签名”和“仅延迟签名”复选框
  • 提供 key.snk 作为用于签名的 key 文件
  • 通过运行 sn.exe -tP key.snk 提取公钥 token
  • 通过运行 sn -Vr * 在我的 devbox 上禁用强名称验证,

这个想法是在团队构建中禁用延迟签名并在那里提供 keypair.pfx 文件。这样,我可以在访问受限的团队构建服务器上对程序集进行完全签名,同时出于安全原因不在开发盒上提供私钥。

但是,当尝试在本地构建程序集时,出现以下错误:

Cryptographic failure while signing assembly '.dll' – 'Bad Version of Provider'

有没有人能解决这个问题?

最佳答案

我收到了 Comodo 的回复:

There's problem with VS2005/2008 and authenticode certificates. (Microsoft level) They can't be used for Strong Named Assemblies. You have to create your own private key to do the strong name signing.

关于signing - 签名程序集时加密失败 '<assemblyname>.dll' – 'Bad Version of Provider',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1493004/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com