Skip to content

Instantly share code, notes, and snippets.

@bohanyang
Last active May 20, 2019 12:58
Show Gist options
  • Save bohanyang/dcb619e8fc2609a989353f3cb2aca1a6 to your computer and use it in GitHub Desktop.
Save bohanyang/dcb619e8fc2609a989353f3cb2aca1a6 to your computer and use it in GitHub Desktop.
[ req ]
distinguished_name = req_distinguished_name
req_extensions = v3_req
[ req_distinguished_name ]
[ v3_req ]
basicConstraints = CA:FALSE
keyUsage = nonRepudiation, digitalSignature, keyEncipherment
subjectAltName = $ENV::OPENSSL_X509V3_SAN
@bohanyang
Copy link
Author

openssl genrsa -out server.key 2048/4096
openssl ecparam -name prime256v1/secp384r1 -genkey -noout -out server.key
openssl req -new -key server.key -config csr.ini -subj '/' -out server.csr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment