Skip to content

Instantly share code, notes, and snippets.

@mook
Created February 4, 2012 20:16
Show Gist options
  • Save mook/1739858 to your computer and use it in GitHub Desktop.
Save mook/1739858 to your computer and use it in GitHub Desktop.
openssl config to create a self-signed ssl cert with support for multiple names
# openssl req -new -x509 -nodes -days 365 -key stackato.key -batch -config stackato-openssl-cert-gen.conf > stackato-custom.crt
[req]
default_md = sha1
x509_extensions = extensions
prompt = no
distinguished_name = distinguished_name
[extensions]
subjectAltName = @alt_names
[alt_names]
DNS.1 = stackato-xxxx.local
DNS.2 = *.stackato-xxxx.local
[distinguished_name]
CN = stackato-xxxx.local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment