Skip to content

Instantly share code, notes, and snippets.

@chimerast
Created November 14, 2014 08:06
Show Gist options
  • Save chimerast/b6405e972a7686e9b6c4 to your computer and use it in GitHub Desktop.
Save chimerast/b6405e972a7686e9b6c4 to your computer and use it in GitHub Desktop.
create SSL key & certificate
DOMAIN=example.com
openssl req -new -newkey rsa:2048 -nodes -subj "/CN=$DOMAIN" -keyout $DOMAIN.key -out $DOMAIN.csr
openssl x509 -req -days 3650 -in $DOMAIN.csr -signkey $DOMAIN.key -out $DOMAIN.crt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment