Skip to content

Instantly share code, notes, and snippets.

@mariano-aguero
Last active August 26, 2015 18:34
Show Gist options
  • Save mariano-aguero/8b1074c250cef118dcfc to your computer and use it in GitHub Desktop.
Save mariano-aguero/8b1074c250cef118dcfc to your computer and use it in GitHub Desktop.
Generate insecure ssl
openssl req -x509 -batch -nodes -newkey rsa:2048 -keyout banana.key -out banana.crt -config insecure.cnf -days 3650
[req]
distinguished_name = req_distinguished_name
x509_extensions = v3_req
prompt = no
[req_distinguished_name]
C = VA
ST = Rio de Janeiro
L = Rio de Janeiro
O = Marijuana
CN = *
[v3_req]
subjectKeyIdentifier = hash
authorityKeyIdentifier = keyid,issuer
basicConstraints = CA:TRUE
subjectAltName = @alt_names
[alt_names]
DNS.1 = *
DNS.2 = *.*
DNS.3 = *.*.*
DNS.4 = *.*.*.*
DNS.5 = *.*.*.*.*
DNS.6 = *.*.*.*.*.*
DNS.7 = *.*.*.*.*.*.*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment