Monday, February 6, 2023

How to view certificates present inside a keystore

 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 

No comments:

Post a Comment

SpringBoot Application Event Listeners

When a spring boot application starts few events occurs in below order ApplicationStartingEvent ApplicationEnvironmentPreparedEvent Applicat...