Last active
December 14, 2020 23:58
-
-
Save rgherta/aa8f6723299f5820cedb59189875cdd9 to your computer and use it in GitHub Desktop.
history
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create ca.key and ca.crt | |
openssl genrsa -out ./ca/ca.key 2048 | |
openssl req -new -x509 -days 1825 -key ./ca/ca.key -out ./ca/ca.crt --config ca.cnf | |
#openssl x509 -in ca.crt -text -noout | |
# creates domain.key and domain.csr | |
openssl req -new -out ./certs/domain.csr -config domain.cnf | |
#openssl req -in ./certs/domain.csr -text -noout | |
openssl x509 -req -days 1825 -in ./certs/domain.csr -CA ./ca/ca.crt -CAkey ./ca/ca.key -CAcreateserial -out ./certs/domain.crt -extensions my_extensions -extfile domain.cnf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment