This file contains hidden or 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 | |
#this script should pull all root CAs from the mac os keychain and add them to the jre's keystore | |
#Comes with absolutely no warranty and all the usual disclaimers | |
mkdir temp-extract | |
cd temp-extract | |
keystore=`/usr/libexec/java_home`/jre/lib/security/cacerts | |
echo "making backup of keystore $keystore to ~/keystore.backup" | |
set -e -o pipefail |