Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save cecilemuller/0758de2ecfb461b362b0c1abfa836e51 to your computer and use it in GitHub Desktop.
Save cecilemuller/0758de2ecfb461b362b0c1abfa836e51 to your computer and use it in GitHub Desktop.
Generate the CSR value for Finalize Order (ACME v2)
openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:2048 -out domain.pem
openssl req -new -sha256 -key domain.pem -subj "/" -addext "subjectAltName=DNS:example.com,DNS:www.example.com" -outform DER | base64 -w 0 | sed 's/+/-/g' | sed 's/\//_/g' | sed 's/=*$//g' > CSR.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment