Skip to content

Instantly share code, notes, and snippets.

@AndersDJohnson
Last active June 5, 2019 13:33
Show Gist options
  • Save AndersDJohnson/3850478 to your computer and use it in GitHub Desktop.
Save AndersDJohnson/3850478 to your computer and use it in GitHub Desktop.
SSL certificate
# See: http://www.houseofding.com/2008/11/generate-a-self-signed-ssl-certificate-for-local-development-on-a-mac/
# Gen­er­ate a host key
ssh-keygen -f host.key
# Gen­er­ate a cer­tifi­cate request file
openssl req -new -key host.key -out request.csr
# Cre­ate a self-signed SSL cer­tifi­cate using the request file.
openssl x509 -req -days 365 -in request.csr -signkey host.key -out server.crt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment