Posts Java keytool list keystore grep alias and validity
Post
Cancel

Java keytool list keystore grep alias and validity

Watch Explanation on YouTube

How to use grep to find alias and validity of keystore certificate

Link URL : https://youtu.be/SxMri8hvtPw

  • Command
1
$ keytool -list -v -keystore /usr/java/jdk1.7.0_65/jre/lib/security/cacerts -storepass changeit | grep "Alias name\|Valid from:"
  • Command to list keystore of type p12
1
$ keytool -list -v -keystore custom.p12 -storetype pkcs12 -storepass changeit  | grep "Alias name\|Valid from:"
This post is licensed under CC BY 4.0 by the author.