Skip to content

Instantly share code, notes, and snippets.

@wellington1993
Last active April 25, 2019 22:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wellington1993/58c01c05dca4b71c8a4bfa940a6d2a10 to your computer and use it in GitHub Desktop.
Save wellington1993/58c01c05dca4b71c8a4bfa940a6d2a10 to your computer and use it in GitHub Desktop.
CSR CERT Generation Wildcard ECC
# openssl ecparam -name secp521r1 -genkey | openssl ec -out STAR_yoursite_com_br.key
openssl ecparam -name secp384r1 -genkey | openssl ec -out STAR_yoursite_com_br.key
openssl req -new -key STAR_yoursite_com_br.key -out STAR_yoursite_com_br.csr # -subj /CN=*.yoursite.com.br;
cat STAR_yoursite_com_br.csr
openssl ecparam -genkey -name secp384r1 | openssl ec -out STAR_yoursite_com_br.key; openssl req -new -key STAR_yoursite_com_br.key -out STAR_yoursite_com_br.csr -subj /CN=*.yoursite.com.br; cat STAR_yoursite_com_br.csr
#Please run this command for the private key generation, firstly:
openssl ecparam -out privatekey.key -name prime256v1 -genkey
# Then, please run this command to create the CSR:
openssl req -new -key privatekey.key -out request.csr -sha256
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment