Skip to content

Instantly share code, notes, and snippets.

@davecgh
Created January 31, 2016 22:21
Show Gist options
  • Save davecgh/238c0100a673d5924580 to your computer and use it in GitHub Desktop.
Save davecgh/238c0100a673d5924580 to your computer and use it in GitHub Desktop.
Using OpenSSL To Generate a Wildcard Decred Certificate Pair
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
[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