Last active
December 21, 2017 05:58
-
-
Save ishustava/dfd2fd17c25123a13bc9a897b25df8ee to your computer and use it in GitHub Desktop.
Self Signed CA openssl one-liner
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
openssl req \ | |
-x509 \ | |
-newkey rsa:2048 \ | |
-days 30 \ | |
-sha256 \ | |
-nodes \ | |
-subj "/CN=${COMMON_NAME}" \ | |
-keyout ${PATH_TO_PRIVATE_KEY} \ | |
-out ${PATH_TO_CERT} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You might want a space on line 8 before the backslash