Skip to content

Instantly share code, notes, and snippets.

@onmotion
Last active December 2, 2017 14:36
Show Gist options
  • Save onmotion/bcb2aaff073b11b543955f4edabec34c to your computer and use it in GitHub Desktop.
Save onmotion/bcb2aaff073b11b543955f4edabec34c to your computer and use it in GitHub Desktop.
self signed ssl cert (for nginx)
openssl req -newkey rsa:2048 -sha256 -nodes -keyout hostname.key -x509 -days 365 -out hostname.pem -subj "/C=US/ST=New York/L=Brooklyn/O=Example Brooklyn Company/CN=hostname.com" && \
openssl x509 -in hostname.pem -out hostname.crt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment