How to view certificates present inside a keystore?
The certificates inside a keystore or a trustore file can be viewed using keytool command present inside JDK.
Prerequisites:
- JDK should already be installed and present in the path environment variable so that it can be accessed from anywhere using terminal on linux or command prompt on windows machine.
- The paasword for keystore should be known
Command:
The command to get the list of certificates will be
keytool -list -v -keystore keystore.jks