-
Notifications
You must be signed in to change notification settings - Fork 137
Generating SSL Server CSR with Keytool
Endi S. Dewata edited this page Aug 7, 2024
·
3 revisions
To generate an RSA key:
$ keytool \
-genkeypair \
-keystore keystore.p12 \
-storetype pkcs12 \
-storepass Secret.123 \
-alias sslserver \
-dname "CN=$HOSTNAME" \
-keyalg RSA \
-keypass Secret.123
To generate an ECC key:
$ keytool \
-genkeypair \
-keystore keystore.p12 \
-storetype pkcs12 \
-storepass Secret.123 \
-alias sslserver \
-dname "CN=$HOSTNAME" \
-keyalg EC \
-keypass Secret.123
$ keytool \
-certreq \
-keystore keystore.p12 \
-storetype pkcs12 \
-storepass Secret.123 \
-alias sslserver \
-file sslserver.csr
Tip
|
To find a page in the Wiki, enter the keywords in search field, press Enter, then click Wikis. |