OpenSSL creating a private CA

Source: Internet
Author: User

vim/etc/pki/tls/openssl.conf Opening a configuration file

Switch to/etc/pki/ca:cd/etc/pki/ca

Create the missing files touch index.txt

echo > Serial

CA self-Visa certificate (umask 077;openssl genrsa-out PRIVATE/CAKEY.PEM 2048) 2048 for specifying the key length

OpenSSL req-new-x509-key private/cakey.pem-days 7300-out Private/cacert.pem

-new used to generate a new certificate signing request

-x509 for a CA to generate self-signed certificates

-key used to indicate the private key file

-days Certificate Validity days

-out Certificate Save Path

Generate a certificate request with the certificate's host

Generate the private key (Umask 077; OpenSSL genrsa-out Path/to/somewhere/name.key 2048)

Generate request for OpenSSL Req-new-key path/to/somewhere/name.key-days 356-out NAME.CSR

Send the request to the target host SCP NAME.CSR [email protected]:/tmp

Target host visa OpenSSL ca-in/tmp/name.csr-out/etc/pki/ca/certs/name.crt-days 356

OpenSSL creating a private CA

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.