user2439473
user2439473

Reputation: 111

File not found error comes when trying to run pvk2pfx.exe file

I am trying to create simple client side certificate and for that I following below link...

How to create client certificate

I have installed SDK on machine, and I have successfully run below two commands.

makecert.exe -r -n "CN=My Personal CA" -pe -sv MyPersonalCA.pvk -a sha1 -len 2048 -b 01/21/2010 -e 01/21/2016 -cy authority MyPersonalCA.cer


makecert.exe -iv MyPersonalCA.pvk -ic MyPersonalCA.cer -n "CN=John Doe" -pe -sv JohnDoe.pvk -a sha1 -len 2048 -b 01/21/2010 -e 01/21/2016 -sky exchange JohnDoe.cer -eku 1.3.6.1.5.5.7.3.2

After running these two commands successfully , When I try to run the third command I get the error "File Not Found" (Error Code = 0x80070002).

Third command is

pvk2pfx.exe -pvk JohnDoe.pvk -spc JohnDoe.cer -pfx JohnDoe.pfx -po password 

Whats the issue?

Upvotes: 11

Views: 1499

Answers (1)

Giorgio
Giorgio

Reputation: 13539

I was facing the same error "File Not Found" (Error Code = 0x80070002). I tripled check the name and seemed fine but was still giving the error. I finally I opened the File Explorer and right click Rename the .pvk and .cer files and copied the file name and pasted in the terminal and then somehow it worked. Maybe there is some special hidden character or something...

Upvotes: 0

Related Questions