I have an android project that I'm attempting to test on Travis CI however when running the Robolectric (v3.2.2
) tests I'm getting:
com.android.volley.NoConnectionError: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Algorithm constraints check failed on signature algorithm: SHA256WithRSAEncryption
This only happens on Travis and does not happen on my local machine (MacOS Sierra).
Any clues as to how to fix/workaround this error? Also, please let me know of any files/settings/etc that you'd like to see.
Import your certificates into the new cacerts file
$cp $JAVA_HOME/jre/lib/security/cacerts $JAVA_HOME/jre/lib/security/jssecacerts
$keytool -import -trustcacerts -keystore $JAVA_HOME/jre/lib/security/jssecacerts -storepass changeit -noprompt -alias {cert alias} -file {cert file}
Restart the application.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With