Create a. pfx Digital Certificate signed for the ClickOnce list

Source: Internet
Author: User

Automatically created using vs2005. pfx digital certificates are only valid for one year by default, and both the "issuer" and "issued to" are combinations of the current machine name and current Login User name. In fact, we can create more friendly. pfx digital certificate.

Follow these steps to open the SDK Command Prompt for Microsoft. NET Framework:

1. Create a self-Signed X.509 Certificate (. cer) and A. pvk private key file and use the makecert tool. The command is as follows:

Makecert-r-n "CN = cncxz"-B 01/01/2005-e 01/01/2018-sv myselfName. pvk myselfName. cer

Set the private key password as prompted (or do not use the password) to generate related files in the current directory.

2. Use X.509 Certificate (. cer) to create a issuer certificate (. spc) and use the cert2spc tool. The command is as follows:

Cert2spc myselfName. cer myselfName. spc

3. Convert from. pvk and. spc to. pfx. The pvkimprt tool is used. The command is as follows:

Pvkimprt-pfx myselfName. spc myselfName. pvk

Follow the prompts to export the. pfx certificate. If the private key password is set in step 2, enter verification here.

4. Click "select from file" in the certificate settings of the ClickOnce list signature of the vs project to browse and find the certificate exported in step 1. pfx certificate. Verify the private key password of the certificate set in step 1.

========================================================== ==========
The makecert tool and cert2spc tool. NET Framework come with the following pvkimprt tool:
Http://download.microsoft.com/download/vba50/Utility/1.0/NT5/EN-US/pvkimprt.exe

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.