Skip to content

Instantly share code, notes, and snippets.

@ptrstovka
ptrstovka / nginx-cert.sh
Created June 22, 2017 07:44 — forked from frengky/nginx-cert.sh
Nginx dynamic document root folder and sub-domain configuration
#!/bin/sh
# Self signed certificate for Nginx HTTPS
#
openssl req -x509 -nodes -days 1825 -newkey rsa:2048 -keyout /etc/nginx/ssl/my-domain.key -out /etc/nginx/ssl/my-domain.crt