Skip to content

Instantly share code, notes, and snippets.

@rgherta
Last active December 14, 2020 23:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rgherta/aa8f6723299f5820cedb59189875cdd9 to your computer and use it in GitHub Desktop.
Save rgherta/aa8f6723299f5820cedb59189875cdd9 to your computer and use it in GitHub Desktop.
history
# 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