...
Code Block | ||||
---|---|---|---|---|
| ||||
keytool -printcert -rfc -sslserver host.domain.tld:port > "%UserProfile%\Downloads\host.domain.tld_full-chain.pem" |
Note Note1, if keytool
isn't in your path, either cd to your %JAVA_HOME%/bin
dir or prefix it to all subsequent references to this command.
If you don't have JAVA_HOME
defined in your environment, you may get an error saying JAVA_HOME is not defined. To confirm, type set
and if you do not see JAVA_HOME
listed, define it via set JAVA_HOME=
<path to JAVA home ex: "C:\Program Files\Java\jre1.8.0_151
">. To have this persist across sessions, add it as a System or User Environment Variable.
3. Open the file in a text editor.
...
Note1, you may wish to first backup your %JAVA_HOME%\lib\security\cacerts
file Note2, if you don't have JAVA_HOME
defined in your environment, you may get an error saying JAVA_HOME is not defined. To confirm, type set
and if you do not see JAVA_HOME
listed, define it via set JAVA_HOME=
<path to JAVA home ex: "C:\Program Files\Java\jre1.8.0_151
">
IMPORTANT, if you are importing certificates for a JRE that was bundled with your installed software, ie: NoMagic (Cameo, MagicDraw (MD)), Rhapsody, etc. please ensure you specify the keystore
path for that bundled instance of JRE VS the default as shown above (for MD, you can determine the installed path of JRE by checking Help, About and clicking on the Environments tab; for Rhapsody, open the rhapsody.ini
in your installation folder and examine the JavaLocation=
var under the [JVM]
section).