Create a “Root CA” certificate#
- Generate a key file for “Root CA”
openssl genrsa –aes256 -out ca/private/ca.key 4096

- Change the permission of ca.key
chmod 400 ca/private/ca.key
- Check the content of ca.key
openssl rsa -noout -text -in ca/private/ca.key
- Generate a certificate file for “Root CA”
openssl req -config ca/ca.conf -key ca/private/ca.key -new -x509 -days 3650 -sha256 -extensions v3_ca -out ca/certs/ca.crt

- Change the permission of ca.crt
chmod 444 ca/certs/ca.crt
- Check the contents of ca.crt
openssl x509 -noout -text -in ca/certs/ca.crt