Linux

How do you create a public key for a CA (certificate authority)?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

openssl req -new -x509 -days 730 -key [private key file name] -sha256 -out ca.pem

If using the private key from the previous question then the command would be:

openssl req -new -x509 -days 730 -key ca-private-key.pem -sha256 -out ca.pem