To open the SDK command prompt for the Microsoft. NET Framework, follow these steps:
1. Create a self-signed x + + certificate (. cer) and a. pvk private key file, using the MakeCert tool, with the following command:
Makecert-r-N "cn= cncxz"-B 01/01/2005-e 01/01/2018-sv myselfname.pvk myselfname.cer
Follow the prompts to set the private key password (or do not use a password) to generate related files in the current directory
2. Create a Publisher certificate (. cer) using the CERT2SPC tool, with the following command:
CERT2SPC Myselfname.cer MYSELFNAME.SPC
3. Convert from. pvk and. spc format to. pfx format, using the Pvkimprt tool, the command is as follows:
PVKIMPRT-PFX MYSELFNAME.SPC myselfname.pvk
Follow the prompts to export the. PFX certificate, if you set the private key password in step 1th, you need to enter authentication here
4. Click "Select from File" to navigate to the. PFX certificate exported by the 3rd step in the certificate settings for the ClickOnce manifest signature of the VS project, where you need to verify the certificate private key password set in step 3rd.
MakeCert tools and CERT2SPC tools. NET framework comes with, pvkimprt tools are as follows
Http://download.microsoft.com/download/vba50/Utility/1.0/NT5/EN-US/pvkimprt.exe
ClickOnce Certificate Signing