Created
January 31, 2016 22:21
-
-
Save davecgh/238c0100a673d5924580 to your computer and use it in GitHub Desktop.
Using OpenSSL To Generate a Wildcard Decred Certificate Pair
This file contains 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 ecparam -name secp521r1 -genkey -out dcrd.key | |
openssl req -new -x509 -key dcrd.key -out dcrd.cert -sha512 -days 3650 -extensions v3_req -config ./openssl.cnf |
This file contains 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 | |
req_extensions = v3_req | |
[req_distinguished_name] | |
organizationName = Organization Name | |
organizationName_default = dcrd autogenerated cert | |
commonName = Common Name (e.g. server FQDN or YOUR name) | |
commonName_default = dcrd | |
commonName_max = 64 | |
[v3_req] | |
basicConstraints = CA:TRUE | |
keyUsage = digitalSignature, keyEncipherment, keyCertSign | |
subjectAltName = @alt_names | |
[alt_names] | |
DNS.1 = * |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment