Create root certificate and its sub-Certificate

Source: Internet
Author: User

"Cn = ***", otherwise the certificate will be inconsistent with the domain name. It doesn't matter if the other is the file name!

Tool download: signtool

1. Use makecert.exe to create a self-Signed root certificate

Makecert-n "cn = www. Xiaoyan. Me"-SV rootca. PVK-r rootca. Cer

-NSubjectnameTopic name
-SVPrivatekeyfileFile containing the private key container
-R: Specify the certificate as self-signed

2. Issue a sub-certificate through the issued root certificate

Makecert-n "cn = Dev. Xiaoyan. Me"-ic rootca. cer-IV rootca. PVK-SV Dev. Xiaoyan. Me. PVK Dev. Xiaoyan. Me. Cer

-NSubjectnameTopic name
-ICIssuercertfileSpecify the issuer certificate location
-IVIssuerkeyfileSpecify the issuer certificate Private Key File
-SVSubjectkeyLocation of the theme key container that saves the Private Key

3. Use cert2spc to generate a SPC issuer Certificate

Cert2spc wing.3cow.cn. Cer rootca. Cer Xiaoyan. Me. SPC

4. Generate a pfx certificate using pvk2pfx

Pvk2pfx-PVK Dev. Xiaoyan. Me. PVK-SPC Dev. Xiaoyan. Me. SPC-pfx Dev. Xiaoyan. Me. pfx-F-po ABC

-F overwrites
-Po password protection

PS: subjectname can include CN (Common name), ou (Organization Unit), O (organization), L (locality), S (state), C (country ), each item is separated by a comma (,), and the name must be escaped by a backslash (\).

Reference: http://msdn.microsoft.com/zh-cn/library/ms733813.aspx

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.