Skip to content

Commit

Permalink
0005162: add keytool storetype arg
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Apr 12, 2022
1 parent 377f7f0 commit 8042a4c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions symmetric-assemble/src/asciidoc/advanced-topics.ad
Expand Up @@ -258,13 +258,13 @@ communication will be secured (typically the "root" or "central office" server).

[source, cli]
----
keytool -keystore keystore -delete -alias sym
keytool -keystore keystore -delete -alias sym -storetype jceks
----
IMPORTANT: If you receive a message like "keytool error: java.io.IOException: Invalid keystore format," try adding a parameter of "-storetype jceks". Or, if you receive a message like, "keytool error: java.lang.Exception: Alias <sym> does not exist" - then the alias does not exist and you can skip this step.
IMPORTANT: If you receive a message like, "Alias <sym> does not exist" - then the key entry does not exist and you can skip this step.

[source, cli]
----
keytool -keystore cacerts -delete -alias sym
keytool -keystore cacerts -delete -alias sym -storetype jks
----
IMPORTANT: See above for possible errors from this command.
[source]
Expand All @@ -276,7 +276,7 @@ Enter keystore password: changeit

[source, cli]
----
keytool -keystore keystore -alias sym -genkey -keyalg RSA -validity 10950
keytool -keystore keystore -alias sym -genkey -keyalg RSA -validity 10950 -storetype jceks
----

[source]
Expand Down Expand Up @@ -306,14 +306,14 @@ Enter key password for <sym>

[source, cli]
----
keytool -keystore keystore -export -alias sym -rfc -file sym.cer
keytool -keystore keystore -export -alias sym -rfc -file sym.cer -storetype jceks
----

* Install the certificate in the trusted keystore.

[source, cli]
----
keytool -keystore cacerts -import -alias sym -file sym.cer
keytool -keystore cacerts -import -alias sym -file sym.cer -storetype jks
----

* Copy the cacerts file that is generated by this process to
Expand Down

0 comments on commit 8042a4c

Please sign in to comment.