Skip to content

Instantly share code, notes, and snippets.

@jason-riddle
Last active October 22, 2019 19:19
Show Gist options
  • Select an option

  • Save jason-riddle/abd1d285c32ad82bdd6c7c88a2dacc94 to your computer and use it in GitHub Desktop.

Select an option

Save jason-riddle/abd1d285c32ad82bdd6c7c88a2dacc94 to your computer and use it in GitHub Desktop.

Revisions

  1. jason-riddle revised this gist Oct 22, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion keytool_guide.sh
    Original file line number Diff line number Diff line change
    @@ -2,4 +2,4 @@
    keytool -list -v -keystore /etc/ssl/certs/java/cacerts

    # Grep for a specific certificate
    keytool -list -keystore $JAVA_HOME/lib/security/cacerts | grep -B1 -i DE:28
    echo -n 'changeit' | keytool -list -keystore /etc/ssl/certs/java/cacerts 2>/dev/null | grep -B1 -i 01:18
  2. jason-riddle revised this gist Oct 22, 2019. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion keytool_guide.sh
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,5 @@
    # List certs in keystore
    keytool -list -v -keystore /etc/ssl/certs/java/cacerts
    keytool -list -v -keystore /etc/ssl/certs/java/cacerts

    # Grep for a specific certificate
    keytool -list -keystore $JAVA_HOME/lib/security/cacerts | grep -B1 -i DE:28
  3. jason-riddle revised this gist Oct 22, 2019. No changes.
  4. jason-riddle created this gist Oct 22, 2019.
    2 changes: 2 additions & 0 deletions keytool_guide.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    # List certs in keystore
    keytool -list -v -keystore /etc/ssl/certs/java/cacerts