Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fool/dcf43ac13ce69061e7cef77169a108b0 to your computer and use it in GitHub Desktop.
Save fool/dcf43ac13ce69061e7cef77169a108b0 to your computer and use it in GitHub Desktop.
create a self signed wildcard ssl cert for testing

just change out app_name for your purposes

openssl genrsa 2048 > app_name-wildcard.key

openssl req -new -x509 -nodes -sha1 -days 3650 -key app_name-wildcard.key > app_name-wildcard.cert

# Common Name (eg, your name or your server's hostname) []:*.app_name.com

cat app_name-wildcard.cert app_name-wildcard.key > app_name-wildcard.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment