Generating a certificate for a web server
The next certificate that we will generate is a certificate for a web server. As for the previous certificates, we will make a separate directory and a config file for this certificate:
- However, as we are going to issue a leaf certificate, we will not need to create CA-related files in its directory. We will just need to create the directory and change our current directory there:
$ cd mini-ca $ mkdir server $ cd server
The server certificate config file will be much shorter than the previously made CA certificate config files:
[req] prompt = no distinguished_name = distinguished_name_server_cert req_extensions = v3_server_cert [distinguished_name_server_cert] countryName &...