Last active
July 12, 2023 18:11
-
-
Save sidneydemoraes/336c827fa35d52a0d1f180182c6b9c51 to your computer and use it in GitHub Desktop.
Scripts for Java keytools
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
keytool -list -cacerts | awk -F',' 'NR > 5 && NR % 2 == 0 {print $1}' | xargs -I{} keytool -delete -cacerts -alias '{}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
keytool -importkeystore -srckeystore example2.p12 -destkeystore example.p12 -srcstoretype PKCS12 -deststoretype PKCS12 -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment