[Solve a problem every day series-0003] how to create and apply a self-signed certificate

Source: Internet
Author: User
Tags sha1

Phenomenon:

  • Now there is a Web site posted on IIS, using the HTTPS protocol, CA's certificate is too expensive, so can't afford it. But to visit the site when the old talk about a warning and too annoying, how to do?

Workaround:

  1. Create a root certificate makecert-r-pe-n "Cn=my root"-ss ca-sr currentuser-a Sha1-sky signature-cy authority-sv ca.pvk CA.cer
  2. Create a server certificate

    Makecert-pe-n "Cn=*.mysite.com"-a Sha1-sky exchange-eku 1.3.6.1.5.5.7.3.1-ic ca.cer-iv ca.pvk-sp "Microsoft RSA SC Hannel cryptographic Provider "-sy 12-sv server.pvk server.cer

  3. Convert server certificate pvk2pfx-pvk server.pvk-spc server.cer-pfx server.pfx

Attention:

  • Send the root certificate to the customers who need to connect to your site and have them install Ca.cer to trusted Root certification authorities
  • The second step of "cn=*.mysite.com" must be matched with your website domain name
  • In the third step, get the Server.cer import into your IIS server certificate and configure the HTTPS binding in your website to select the imported certificate

[Solve a problem every day series-0003] how to create and apply a self-signed certificate

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.