makecert gives "Fail to acquire a security provider from the issuer's certificate" - why?

Posted by mark on Stack Overflow See other posts from Stack Overflow or by mark
Published on 2011-02-27T19:07:24Z Indexed on 2011/02/28 7:25 UTC
Read the original article Hit count: 4208

Filed under:
|
|

Dear ladies and sirs. Observe this simple batch file:

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

However, the last makecert fails with the following error message:

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

How do I troubleshoot it? Any ideas? BTW, the first makecert succeeds. Of course, I delete it again, before running the commands again.

Thanks.

EDIT1

I understood the reasons for the failure. The second command expects the file MyCA.pvk to exist, but I do not want to keep it around. So, what can I do?

© Stack Overflow or respective owner

Related posts about Windows

Related posts about ssl