Last active
May 19, 2021 09:01
-
-
Save matthiasbalke/27f274c6638bc50857fb176e33b371bb to your computer and use it in GitHub Desktop.
create Java trust store
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
#!/bin/bash | |
# to add a trusted certificate to the trust store | |
# place the trusted certificate in trusted-certificate.crt | |
cat intermediate.crt > trusted-certificate.crt | |
# import the certificate into the existing or create a new pkcs12 container | |
keytool -import -alias intermediate -file trusted-certificate.crt -keystore trust-store.p12 -storetype PKCS12 -storepass password |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment