windows - makecert 给出 "Fail to acquire a security provider from the issuer' 的证书”——为什么?

标签 windows ssl makecert

尊敬的女士们,先生们。 观察这个简单的批处理文件:

makecert -n "CN=MyCA" -sr localmachine -ss root -a sha1 -cy authority -r -sv MyCA.pvk MyCA.cer
del MyCA.pvk
del MyCA.cer
makecert -n "CN=il-mark-lt" -sr localmachine -ss my -cy end -pe -sky exchange -a sha1 -is root -ir localmachine -in MyCA

但是,最后一个 makecert 失败并显示以下错误消息:

Error: Fail to acquire a security provider from the issuer's certificate

如何排除故障?有任何想法吗?顺便说一句,第一个 makecert 成功了。当然,在再次运行命令之前,我再次将其删除。

谢谢。

编辑1

我明白失败的原因。第二个命令要求文件 MyCA.pvk 存在,但我不想保留它。那么,我能做什么呢?

最佳答案

只需省略 -sv MyCA.pvk 部分。它仍应生成私钥并正常存储,而不是作为 pvk 文件,它应该由 makecert ... -in MyCA 找到。 1

关于windows - makecert 给出 "Fail to acquire a security provider from the issuer' 的证书”——为什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5135230/

相关文章:

windows - 根据文件名的前 X 个字符将文件移动到文件夹 (vbs)

.net - C#/.NET : Retrieving the contents/file attributes from a file inside a recycle bin

wordpress - .htaccess HTTPS 主域和通配符 HTTP 子域 + 所有非 WWW

c# - 如何自行生成证书 SHA-256?

windows - Windows Server 2008 R2 中的多个 RDP 连接

windows - 如何在 Windows cygwin 和 mingw 中设置默认 c++ 编译器

apache - SSL 证书 - 我需要更多的子域吗?

c# - 在 C# 中通过 SSLStream 发送 GET 命令?

security - 使用 openssl/makecert 工具创建 x509 证书