A. PFX digital certificate that is automatically created by using vs2013 has a default validity of only one year, and "Issuer", "issued to" are the combination of the current machine name and the current login username, and we can actually create a more friendly. PFX digital certificate.
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= sndnvaps"-B 08/31/2015-e 08/31/2030-sv sndnvaps.pvk sndnvaps.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 Sndnvaps.cer SNDNVAPS.SPC
3. Convert from. pvk and. spc format to. pfx format, using the Pvkimprt tool, the command is as follows:
PVKIMPRT-PFX SNDNVAPS.SPC sndnvaps.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
Original link: http://www.cnblogs.com/cncxz/archive/2007/03/15/675937.html
Create a. pfx format digital certificate that is signed for the ClickOnce manifest