Makecert error: cannot access object key

I have a powershell script that I want to run on two different standalone machines. On Windows 8.1 with the SDK installed, I issue the command:

makecert -r -pe -n "CN=My Root Authority" -ss CA -sr CurrentUser ^ -a sha1 -sky signature -cy authority -sv CA.pvk CA.cer 

and I will return:

 Error: Can't access the key of the subject ('CA.pvk') Failed 

CA.pvk is created, but not CA.cer

Any ideas?

Thanks in advance, Jeff

+6
source share
1 answer

After running this command, a few confusing and useless password hints should be displayed.

I got the same error message when I entered the second password in the second prompt that I entered first.

Enter the same password in both the first and second pop-up screens made me pass this by.

+10
source

Source: https://habr.com/ru/post/973329/


All Articles