# SSL Peer Not Authenticated

**URL:** <https://discuss.gradle.org/t/ssl-peer-not-authenticated/1452>\
**Category:** Old Forum Archive\
**Created:** [October 3, 2013, 2:06am UTC](https://discuss.gradle.org/t/ssl-peer-not-authenticated/1452 "2013-10-03T02:06:00Z")\
**Posts on this page:** 3\
**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:** [October 3, 2013, 2:06am UTC](https://discuss.gradle.org/t/ssl-peer-not-authenticated/1452/1 "2013-10-03T02:06:00Z")

</div>

This is a follow on to this post: [http://forums.gradle.org/gradle/topics/ssl\_peer\_not\_authenticated](http://forums.gradle.org/gradle/topics/ssl_peer_not_authenticated)

I have had my Sys Admin team install a fully qualified cert to our artifactory repository and i’m still receiving an SSL Peer not authenticated error.

I’ve removed any other references to the old wildcard certs, but still get there error. I’ve also verified the cert chain from GoDaddy to one in the cacerts file.

Here’s the error from the logs.

```gradle
20:47:56.546 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
20:47:56.547 [ERROR] [org.gradle.BuildExceptionReporter]
at sun.security.ssl.SSLSessionImpl.getPeerCertificates(SSLSessionImpl.java:397)
20:47:56.547 [ERROR] [org.gradle.BuildExceptionReporter]
at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:128)

```

Why doesn’t gradle reslove certs correctly?

Thoughts? Help?

-Bryan

---

<div class="post-metadata">

**Author:** ![luke\_daley](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/luke_daley/32/9890_2.png) [@luke\_daley](https://discuss.gradle.org/u/luke_daley)\
**Post date:** [October 7, 2013, 2:26pm UTC](https://discuss.gradle.org/t/ssl-peer-not-authenticated/1452/2 "2013-10-07T14:26:00Z")

</div>

There’s nothing special going on here. Gradle will use the JVM’s trust settings by default. Next thing to do would be to confirm that the cert was correctly installed.

---

<div class="post-metadata">

**Author:** ![Vladislav\_Bauer](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/vladislav_bauer/32/1454_2.png) [@Vladislav\_Bauer](https://discuss.gradle.org/u/Vladislav_Bauer)\
**Post date:** [June 24, 2014, 10:42am UTC](https://discuss.gradle.org/t/ssl-peer-not-authenticated/1452/3 "2014-06-24T10:42:00Z")

</div>

Is it possible to disable SSL validation at all? Do you plan to add it?

Maven supports additional parameters to do it: -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true

There is also no mention in documentation how to work with repositories under HTTPS (ex: repositories on Github): [http://www.gradle.org/docs/current/userguide/userguide\_single.html](http://www.gradle.org/docs/current/userguide/userguide_single.html)
