Skip to content

Instantly share code, notes, and snippets.

@adampats
Created July 10, 2015 06:00
Show Gist options
  • Select an option

  • Save adampats/8715eca3ccfb0a52edb0 to your computer and use it in GitHub Desktop.

Select an option

Save adampats/8715eca3ccfb0a52edb0 to your computer and use it in GitHub Desktop.
Generate self-signed cert one-liner
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/nginx/ssl/nginx.key -out /etc/nginx/ssl/nginx.crt -subj "/CN=$HOSTNAME/O=Company/C=US"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment