Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
maven gello ssl fix
verify the certificate if wished at
run the following command to download the "RAPIDSSL 256 RSA CA Certificate" that fails to supply from
curl -o maven.crt
run following to import the certificate into Java's trust store:
keytool -v -alias mavensrve -import \
-file maven.crt\
-keystore $JAVA_HOME/jre/lib/security/cacerts
the default password is "changeit", so enter that unless you have changed it already.
put the following into ~/.mavenrc (nano ~/.mavenrc) to make sure Maven uses the correct trust store.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment