-
Notifications
You must be signed in to change notification settings - Fork 148
Creating Self Signed SSL Server Certificate with Keytool
Endi S. Dewata edited this page Oct 26, 2020
·
4 revisions
To generate a certificate with RSA key:
$ keytool -genkeypair \
-keystore keystore.p12 \
-storetype pkcs12 \
-storepass Secret.123 \
-alias sslserver \
-keyalg RSA \
-dname "CN=$HOSTNAME" \
-keypass Secret.123
To generate a certificate with ECC key:
$ keytool -genkeypair \
-keystore keystore.p12 \
-storetype pkcs12 \
-storepass Secret.123 \
-alias sslserver \
-keyalg EC \
-dname "CN=$HOSTNAME" \
-keypass Secret.123
|
Tip
|
To find a page in the Wiki, enter the keywords in search field, press Enter, then click Wikis. |