The following error appeared upon upgrading JRuby:
OpenSSL::X509::StoreError: setting default path failed: Invalid keystore format
wget http://curl.haxx.se/ca/cacert.pem
sudo keytool -importcert -file cacert.pem -keystore /Users/youruser/.keystore
export SSL_CERT_FILE=/Users/youruser/.keystore
jruby -S gem install whatever
So, I tried all that... nuked
rvm
andhomebrew
... clean reinstall. Same problem.What DID work for me was everything above, but with the addition of adding in the login and root certificates from the macOS Keychain.app and also adding an
alias
to each of the keystore imports:Then adding this to
~/.zshrc
(or~/.bash_profile
):