Created
June 17, 2020 10:46
-
-
Save dmcallejo/1e707b843f8752bd41a2dff047773a84 to your computer and use it in GitHub Desktop.
Generate SSL self signed cert and key unattended
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
#!/bin/bash | |
# This line generates a self signed SSL certificate and key without user intervention. | |
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes -subj "/C=AU/ST=Some-State/L=Sydney/O=Internet/OU=./CN=./emailAddress=." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment