Last active
August 26, 2015 18:34
-
-
Save mariano-aguero/8b1074c250cef118dcfc to your computer and use it in GitHub Desktop.
Generate insecure ssl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openssl req -x509 -batch -nodes -newkey rsa:2048 -keyout banana.key -out banana.crt -config insecure.cnf -days 3650 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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