Generating Admin CSR with Keytool - dogtagpki/pki GitHub Wiki

Generating Admin Key

To generate an RSA key:

$ keytool \
    -genkeypair \
    -keystore admin.p12 \
    -storetype pkcs12 \
    -storepass Secret.123 \
    -alias admin \
    -dname "UID=admin" \
    -keyalg RSA \
    -keypass Secret.123

To generate an ECC key:

$ keytool \
    -genkeypair \
    -keystore admin.p12 \
    -storetype pkcs12 \
    -storepass Secret.123 \
    -alias admin \
    -dname "UID=admin" \
    -keyalg EC \
    -keypass Secret.123

Creating Admin CSR

$ keytool \
    -certreq \
    -keystore admin.p12 \
    -storetype pkcs12 \
    -storepass Secret.123 \
    -alias admin \
    -file admin.csr

See Also

⚠️ **GitHub.com Fallback** ⚠️