Create your own CA certificate using OpenSSL

Source: Internet
Author: User
Tags openssl x509

Create a Certificate Authority private key (this is your most important key ):

$ openssl req -new -newkey rsa:1024 -nodes -out ca.csr -keyout ca.key

Create your ca self-signed certificate:

$ openssl x509 -trustout -signkey ca.key -days 365 -req -in ca.csr -out ca.pem

Issue a client certificate by first generating the key, then request (or use one provided by external system) then sign the certificate using private key of your CA:

$ openssl genrsa -out client.key 1024$ openssl req -new -key client.key -out client.csr$ openssl ca -in client.csr -out client.cer

(You may need to add some options as I am using these commands together with my OpenSSL. conf file. You may need to setup your own. conf file first .)

 

Reference:

Https://jamielinux.com/articles/2013/08/create-an-intermediate-certificate-authority/

Create your own CA certificate using OpenSSL

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.