SSL / Peer not authenticated

I’ve imported the cert for my company’s Artifactory repository, which is *, signed by GoDaddy. However I continue to receive an “ peer not authenticated” error.

When I used Maven i would override these via wagon parameters, however it doesn’t appear Gradle has anything like that, and it’s not using or honoring the certs in the default cacerts file (JVM/lib/security).

I’m running on Windows 8, and have JDK/JRE 7 both 32b and 64b installed. It appears the daemon is running the 32b JRE instead of the 64 (where the JAVA_HOME points), but i’ve installed the cert into every cacerts file I have on my system.

Has anyone run into this before? Any help would be really appreciated.


Not sure why the daemon wouldn’t honor ‘JAVA_HOME’, or what the problem with the certificate is. I’d expect certificates to work if set up correctly (and to be configurable via the usual system properties), but I’ve never tried myself.

In case anyone else happens to have the same issue. To solve this I added intermediate CA certificate to Apache config

SSLCertificateChainFile /etc/httpd/ssl/