Self-Signed Certificate - Cannot Open Certificate

I need a self-signed certificate to create a ClickOnce application in C ++. I'm a real newbie to deployment, so I'm following Karu's question How to create a self-signed certificate .

Here is the command sequence that I used

makecert -r -pe -n "CN=Watersteward" -ss CA -sr CurrentUser -sky signature -sv WaterSteward.pvk WaterSteward.cer
makecert -pe -n "CN=Watersteward" -sky signature -ic WaterSteward.cer -iv WaterSteward.pvk -sv WsSPC.pvk WsSPC.cer
pvk2pfx -pvk WsSPC.pvk -spc WsSPC.cer -pfx WsSPC.pfx
mage -s Alpine.exe.manifest -CertFile WsSPC.pfx

The last command to sign the manifest ends with the message:

Unable to open certificate "WsSPC.pfx": the specified network password is incorrect.

I added WaterSteward.cer to trusted root certificate authorities after creating and before proceeding to the next step.

At each of the above steps, a dialog box appears asking for the password. In each case, I clicked None (I also tried this with -n "CN=mydomain\mylogin"and entered my password in the dialogs).

+3
2

Visual Studio, , "" " ". , , ClickOnce.

+1

:

  • , , .
  • ( , ).

- - :

mage -s Alpine.exe.manifest -CertFile WsSPC.pfx

0

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


All Articles