Skip to content

Instantly share code, notes, and snippets.

@rogerwalt
Created July 14, 2016 12:39
Show Gist options
  • Save rogerwalt/76ddf7057af2ed97580b383e3b66d82c to your computer and use it in GitHub Desktop.
Save rogerwalt/76ddf7057af2ed97580b383e3b66d82c to your computer and use it in GitHub Desktop.
create a self-signed ssl certificate
# openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/nginx/ssl/nginx.key -out /etc/nginx/ssl/nginx.crt
ssl_certificate /etc/nginx/ssl/nginx.crt;
ssl_certificate_key /etc/nginx/ssl/nginx.key;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment