Skip to content

Instantly share code, notes, and snippets.

View lenada's full-sized avatar

Leander Roters lenada

View GitHub Profile
#!/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
@lenada
lenada / gist:5336736
Last active December 15, 2015 22:59 — forked from gusano/gist:5336265
delete merged git branches
git branch --merged | grep -v "\*" | xargs -n 1 git branch -d