Created
March 2, 2019 23:44
TLS Certificates
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
# Notice: app port should be correct, ex. 587 | |
openssl req -new -newkey rsa:4096 -x509 -sha256 -days 365 -nodes -out tls_cert.crt -keyout tls_key.key | |
openssl rsa -in tls_key.key -text > tls_key.pem | |
openssl x509 -inform PEM -in tls_cert.crt > tls_cert.pem | |
# and dont forget about chmod | |
# chmod 400 /root/certs/tls_key.key |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment