

There may not be intermediate CA certificates, but if there are, they must be included in the chain in the correct order. We must copy the contents of each certificate into a new file, which we will call chain-certificate.pem, in the order in which they signed each other. This chain is of the form root CA certificate > zero or more Intermediate CA certificate(s) > Host certificate (referred to as end-point or leaf).

This will generate a CSR based on the keypair generated in step 1. Openssl req -new -sha256 -key host-key.pem -passin pass:Av3k5a15num83r0n3 -out root-csr.csr To generate a CSR from the private key generated in step 1, use the following openSSL command:.It is suggested that you encrypt the key file, as is done in the example command above. This will generate a new file, named host-key.pem, containing the private key. Openssl genrsa -out host-key.pem -aes256 -passout pass:Av3k5a15num83r0n3 2048 There are many options available for generating keys, but here is a simple example: To generate a keypair you can use openSSL.

Execute the commands below as the root user.
