cacerts : Java Glossary

cacerts

A file used to keep the root certificates of signing authorities.

The default password for the .cacerts file is changeit.

In the JRE (Java Runtime Environment) look for it in:

cacerts list of trusted certificate authorities :

Since cacerts is a binary file, you must view it with keytool.exe using code like this.

Just to confuse you, there are even other copies of it in C:\Program Files\Java Web Start\cacerts. On my machine I found 10 copies! Lot’s of luck guessing which one it is using at any given time.

Since you implicitly trust all the CA (Certificate Authority)s in the cacerts. file for code signing and verification you must manage the cacerts. file carefully. The cacerts. file should contain only certificates of the CAs you trust.

cacerts. is stored in JKS (Java Key Store) format similar to PKCS (Public-Key Cryptography Standards) #12 containing only public keys, protected by a passphrase, but no private keys. It may also contain SSL (Secure Sockets Layer) keys.

The first four signature bytes of a Sun cacerts. file in hex are FEEDFEED.

You can find the cacerts file with a system property, that will be visible in a browser: deployment.user.security.trusted.cacerts = C:\Users\User\AppData\LocalLow\Sun\Java\Deployment\security\trusted.cacerts

Assembla: accessing the Windows certificate repository from Java
certificate
keyman: a more user-friendly cacerts manipulator
keystore
KeyTool IUI: third party GUI version of keytool
keytool.exe
PKCS
SSL

CMP homejump to top You can get the freshest copy of this page from: or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror)
http://mindprod.com/jgloss/cacerts.html J:\mindprod\jgloss\cacerts.html
logofeedback Please email your feedback for publication, letters to the editor, errors, omissions, typos, formatting errors, ambiguities, unclear wording, broken/redirected link reports, suggestions to improve this page or comments to Roedy Green : feedback email If you want your message kept confidential, not considered for posting, please explicitly specify that.
mindprod.com IP:[65.110.21.43]
view BlogYour face IP:[38.107.179.210]
You are visitor number 48,791.