Skip to content

Instantly share code, notes, and snippets.

@dmcallejo
Created June 17, 2020 10:46
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 dmcallejo/1e707b843f8752bd41a2dff047773a84 to your computer and use it in GitHub Desktop.
Save dmcallejo/1e707b843f8752bd41a2dff047773a84 to your computer and use it in GitHub Desktop.
Generate SSL self signed cert and key unattended
#!/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