Skip to content

Instantly share code, notes, and snippets.

@tonybolzan
Last active April 29, 2016 21:06
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 tonybolzan/76d27ef0470705c7a451ee0620f63e99 to your computer and use it in GitHub Desktop.
Save tonybolzan/76d27ef0470705c7a451ee0620f63e99 to your computer and use it in GitHub Desktop.
Self Signed SSL to localhost
#!/bin/bash
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/nginx/ssl/nginx.key -out /etc/nginx/ssl/nginx.crt -subj "/CN=localhost"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment