Skip to content

Instantly share code, notes, and snippets.

@gibas
Created June 24, 2013 15:02
Show Gist options
  • Save gibas/5850696 to your computer and use it in GitHub Desktop.
Save gibas/5850696 to your computer and use it in GitHub Desktop.
Generation of self signed ssl certificates.
#!/bin/sh
DOMAIN="domain.example.com"
openssl genrsa -des3 -out $DOMAIN-pass.key 2048
openssl rsa -in $DOMAIN-pass.key -out $DOMAIN.key
openssl req -new -key $DOMAIN.key -x509 -out $DOMAIN.crt -days 3650
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment