Create a. pfx format digital certificate that is signed for the ClickOnce manifest

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.