Skip to content

Instantly share code, notes, and snippets.

View shalintj's full-sized avatar

Shalin Tejpal Jain shalintj

View GitHub Profile
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name yourdomain.com www.yourdomain.com;
ssl on;
# ssl certificates
ssl_certificate /etc/nginx-sp/certs/yourdomain.com/yourdomain_com.crt;
cd /etc/nginx-sp
mkdir certs/yourdomain.com
cd certs/yourdomain.com
umask 077 && touch ssl.key
openssl req -new -newkey RSA:2048 -nodes -keyout ssl.key -out ssl.csr