Last active
October 13, 2018 05:14
-
-
Save ytensor42/fe72e67d27fccba7c2433033aed1f51a to your computer and use it in GitHub Desktop.
openssl notes
This file contains hidden or 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
| # self signed cert | |
| openssl req -subj '/C=US/ST=California/L=San Francisco/O=Company Name/OU=Org/CN=app.example.com' \ | |
| -x509 -days 3650 -batch -nodes -newkey rsa:4096 -sha256 -keyout example.key -out example.crt | |
| cp -p example.key /etc/pki/tls/private/ | |
| cp -p example.crt /etc/pki/tls/certs/ | |
| cat example.crt example.key > example_cert.pem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment