Skip to content

Instantly share code, notes, and snippets.

@ishustava
Last active December 21, 2017 05: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 ishustava/dfd2fd17c25123a13bc9a897b25df8ee to your computer and use it in GitHub Desktop.
Save ishustava/dfd2fd17c25123a13bc9a897b25df8ee to your computer and use it in GitHub Desktop.
Self Signed CA openssl one-liner
openssl req \
-x509 \
-newkey rsa:2048 \
-days 30 \
-sha256 \
-nodes \
-subj "/CN=${COMMON_NAME}" \
-keyout ${PATH_TO_PRIVATE_KEY} \
-out ${PATH_TO_CERT}
@Amit-PivotalLabs
Copy link

You might want a space on line 8 before the backslash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment