Skip to content

Instantly share code, notes, and snippets.

View kshreve's full-sized avatar
🏠
Working from home

Kevin Shreve kshreve

🏠
Working from home
View GitHub Profile
@kshreve
kshreve / sslNginx.sh
Last active May 16, 2018 12:03 — forked from jessedearing/gist:2351836
Create self-signed SSL certificate for Nginx
#!/bin/bash
echo "Generating an SSL private key to sign your certificate..."
openssl genrsa -des3 -out myssl.key 1024
echo "Generating a Certificate Signing Request..."
openssl req -new -key myssl.key -out myssl.csr
echo "Removing passphrase from key (for nginx)..."
cp myssl.key myssl.key.org
openssl rsa -in myssl.key.org -out myssl.key