Skip to content

Instantly share code, notes, and snippets.

@subudear
Created January 18, 2025 10:49
Show Gist options
  • Save subudear/a73b152f11155765b1dcaedd959279c9 to your computer and use it in GitHub Desktop.
Save subudear/a73b152f11155765b1dcaedd959279c9 to your computer and use it in GitHub Desktop.
Commands to create CA root keys
CA Root public key is added to AWS trust anchor
#generate CA Root private key
openssl genrsa -out rootCA.key 4096
touch index
echo 01 > serial.txt
#generate CA Root public key request
openssl req -new -key rootCA.key -out rootCA.req -nodes -config root_request.config
#generate CA Root public key
openssl ca -out rootCA.pem -keyfile rootCA.key -selfsign -config root_certificate.config -in rootCA.req
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment