Generating an intermediate CA certificate
Generating an intermediate CA certificate will be similar to generating a root CA certificate. We will use another directory for our intermediate CA; let’s call the directory intermediate
and place it at the same level as the root
directory inside the mini-ca
directory:
- Let’s create the
intermediate
directory and initialize it with the needed files and subdirectory:$ cd mini-ca $ mkdir intermediate $ cd intermediate $ mkdir issued $ echo -n >index.txt $ echo 01 >crlnumber.txt
- Now, we have to make a config file for our intermediate CA; we will name this file
intermediate.cnf
. The config file for the intermediate CA will be similar to that of the root CA. We will start the config file with the same parameters as in the root CA configuration:[ca] default_ca = CA_default [CA_default] database = index.txt new_certs_dir&...