Created
February 7, 2018 21:42
-
-
Save vancluever/f2cff4a8f07bb13f849bcdb7077aaa64 to your computer and use it in GitHub Desktop.
OpenSSL self-signed cert one-liner
This file contains 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 -new -newkey rsa:4096 -days 365 -nodes -x509 -keyout server.key -out server.crt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.