# SSL / Peer not authenticated

**URL:** <https://discuss.gradle.org/t/ssl-peer-not-authenticated/5635>\
**Category:** Old Forum Archive\
**Created:** [September 29, 2013, 11:35pm UTC](https://discuss.gradle.org/t/ssl-peer-not-authenticated/5635 "2013-09-29T23:35:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bryan\_Stopp](https://avatars.discourse-cdn.com/v4/letter/b/76d3ee/32.png) [@Bryan\_Stopp](https://discuss.gradle.org/u/Bryan_Stopp)\
**Post date:** [September 29, 2013, 11:35pm UTC](https://discuss.gradle.org/t/ssl-peer-not-authenticated/5635/1 "2013-09-29T23:35:00Z")

</div>

I’ve imported the cert for my company’s Artifactory repository, which is \*.domain.com, signed by GoDaddy. However I continue to receive an “javax.net.ssl.SSLPeerUnverifiedException: 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.

-Bryan

---

<div class="post-metadata">

**Author:** ![Peter\_Niederwieser](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@Peter\_Niederwieser](https://discuss.gradle.org/u/Peter_Niederwieser)\
**Post date:** [October 1, 2013, 7:37am UTC](https://discuss.gradle.org/t/ssl-peer-not-authenticated/5635/2 "2013-10-01T07:37:00Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Timothy\_Overly](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/timothy_overly/32/502_2.png) [@Timothy\_Overly](https://discuss.gradle.org/u/Timothy_Overly)\
**Post date:** [December 7, 2013, 2:04am UTC](https://discuss.gradle.org/t/ssl-peer-not-authenticated/5635/3 "2013-12-07T02:04:00Z")

</div>

[http://support.godaddy.com/groups/ssl-certificates/forum/topic/ssl-cert-not-recognized-by-java/](http://support.godaddy.com/groups/ssl-certificates/forum/topic/ssl-cert-not-recognized-by-java/)

---

<div class="post-metadata">

**Author:** ![Priit\_Liivak](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/priit_liivak/32/1492_2.png) [@Priit\_Liivak](https://discuss.gradle.org/u/Priit_Liivak)\
**Post date:** [September 12, 2014, 3:29pm UTC](https://discuss.gradle.org/t/ssl-peer-not-authenticated/5635/4 "2014-09-12T15:29:00Z")

</div>

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/sub.class2.server.ca.pem
