Skip to content

Instantly share code, notes, and snippets.

@ArturDorochowicz
Last active December 13, 2022 07:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save ArturDorochowicz/9819281 to your computer and use it in GitHub Desktop.
Save ArturDorochowicz/9819281 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