..\..\bin\keytool -import -trustcacerts -file server.cer -keystore cacerts
The
server.cer file contains the server certificate, created during
the previous step.
keytool requires a password before adding the
certificate to the JRE
keystore. The default password is
changeit. If somebody changed the default password then he is
the only one who can perform the import.
Note: To make
Oxygen XML Editor accept a
certificate even if it is invalid,
open the
Preferences dialog box, go to , and enable the
Automatically accept a security
certificate, even if invalid option.
Tip: If you
need to import multiple certificates, you need to specify a different alias for each
additional imported certificate with the
-alias command line
argument, like in the following example:
..\..\bin\keytool -import -alias myalias1 -trustcacerts -file server1.cer -keystore cacerts
..\..\bin\keytool -import -alias myalias2 -trustcacerts -file server2.cer -keystore cacerts