What certificates are trusted in truststore?

130,436

Solution 1

Is there any equivalent for the truststore? How can I view the trusted certificates?

Yes there is.The exact same command since keystore and truststore differ only in what they store i.e. private key or signed public key (certificate)

No other difference

Solution 2

Trust store generally (actually should only contain root CAs but this rule is violated in general) contains the certificates that of the root CAs (public CAs or private CAs). You can verify the list of certs in trust store using

keytool -list -v -keystore truststore.jks
Share:
130,436

Related videos on Youtube

code-gijoe
Author by

code-gijoe

Health care information system professional Computer vision specialist Web technology enthusiast and n00b entrepreneur

Updated on July 09, 2022

Comments

  • code-gijoe
    code-gijoe almost 2 years

    I do not know very well keystore / truststore lingo but as far as I'm concerned, a truststore keeps the certificates trusted by a peer server.

    I can view the content of a keystore using

    keytool -list -keystore refArchive/testkeystore
    Enter keystore password: password 
    

    Is there any equivalent for the truststore? How can I view the trusted certificates?

    thx!

    • Jordan Stewart
      Jordan Stewart almost 5 years
      For a truststore with just certificates, you don't actually need to enter a password either. You can just press enter when prompted for a password, and the certificates are still displayed.