5.3. List Certificates in a Java Keystore

Prerequisites:

To list certificates in a given keystore, execute the commands below, replacing CACERTS with the correct path. If prompted for a password, the default is typically changeit.

CACERTS='CACERTS'
        
keytool \
    -list \
    -keystore "${CACERTS}"