Skip to content

Instantly share code, notes, and snippets.

View davemckeown's full-sized avatar

Dave McKeown davemckeown

  • Dundas, ON, Canada
View GitHub Profile
@davemckeown
davemckeown / Setup & Install
Created November 20, 2018 21:12 — forked from dhavaln/Setup & Install
Setting up HAProxy on Mac OSX
Install HAProxy from Homebre:
`brew install haproxy`
For full reference:
https://serversforhackers.com/load-balancing-with-haproxy
@davemckeown
davemckeown / gist:92101b3fc718d7dc4d7f
Created November 27, 2015 19:25 — 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