title: Gradle Could not HEAD https://..pom > peer not authenticated
body: <p>When you upgrade from gradle 2.0 to 2.1, you may see following error. </p>
  
  <pre><code>Could not HEAD 'https://jcenter.bintray.com/de/undercouch/gradle-download-task/1.0/gradle-download-task-1.0.pom'.
           &gt; peer not authenticated
  </code></pre>
  
  <p>To be fair, this error is not due to gradle. It is problem of how java handles ssl connections.</p>
  
  <p>I am using following java version.</p>
  
  <pre><code>java -version
  java version "1.7.0_40"
  Java(TM) SE Runtime Environment (build 1.7.0_40-b43)
  Java HotSpot(TM) 64-Bit Server VM (build 24.0-b56, mixed mode)
  </code></pre>
  
  <p>You can use <a href="https://stackoverflow.com/questions/22887829/peer-not-authenticated-while-importing-gradle-project-in-eclipse">following answer</a> to import security certificate your java installation.</p>
  
  <p>I do not care about https downloads, http is enough for me. So see my answer. </p>