Configure Certificate Authority(CA) CentOS 6

Configure Certificate Authority(CA) CentOS 6

Configure Certificate Authority(CA) CentOS 6

Here’s the basic steps needed to configure an Internal Certificate Authority (CA) on CentOS 6

Login, and su to root

Root shell on the CA server

from here change to the CA directory

Changing to /etc/pki/CA on CentOS 6 to set up the certificate authority

create an index for the CA

Changing to the /etc/pki/CA directory to create the index

now set the certificate sequence number

Running echo 01 > serial and echo 01 > crlnumber to start the CA certificate and CRL sequence numbers

create the CACERT+Key

openssl req -new -x509 -extensions v3_ca command creating the CA key and certificate

enter a passphrase

openssl req prompting for the CA private key passphrase

fill out the following fields as necessary

Certificate subject fields: country, state, city and organization

set restricted permissions on the key

Running chmod 400 private/ca-cert.key to restrict the CA private key to read-only for root

At this point we can sign Certificate Requests, here’s the basic process:

cd to the CA directory again

cd /etc/pki/CA command before signing

copy your certificate request to the CA folder

cp example.csr into the CA directory

now all we need to do is sign the cert

openssl ca command signing example.csr with the CA key and certificate

the final steps are to sign/commit the certificate. you now have your .pem and .crt

That’s it!

Related guides: Configure LDAP over TLS on CentOS 6: Self-Signed Certificate and LDAPS Server Setup | OpenLDAP over TLS: Client Setup, StartTLS Testing and Troubleshooting

Leave a Reply

Your email address will not be published. Required fields are marked *