Skip to content

Instantly share code, notes, and snippets.

@vancluever
Created February 7, 2018 21:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vancluever/f2cff4a8f07bb13f849bcdb7077aaa64 to your computer and use it in GitHub Desktop.
Save vancluever/f2cff4a8f07bb13f849bcdb7077aaa64 to your computer and use it in GitHub Desktop.
OpenSSL self-signed cert one-liner
openssl req -new -newkey rsa:4096 -days 365 -nodes -x509 -keyout server.key -out server.crt
@vancluever
Copy link
Author

Source: https://major.io/2007/08/02/generate-self-signed-certificate-and-key-in-one-line/

This is not interactive, but could easily be done via some getopt love/etc.

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