Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbodo/2aec3c4b87829e60247880e21a3dd714 to your computer and use it in GitHub Desktop.
Save mbodo/2aec3c4b87829e60247880e21a3dd714 to your computer and use it in GitHub Desktop.
Adding a certificate to JRE trusted certificates stores.

Add certificate to JRE trusted certificates store

The default JRE store is in:

<JRE>\lib\security\cacerts

Add a certificate with keytool:

<JRE>\bin\keytool.exe -importcert -file my-cert.cer -alias 'My cert' -keystore <JRE>\lib\security\cacerts

Alias is a name by which the certificate can be, for instance, removed from the store.

Default password for cacerts is:

changeit

TeamCity certificate store

TeamCity has a private JRE in:

<TeamCity>\jre\
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment