title: Retrofit failed response callback, java.security.cert.CertificateException
body: <p>Im trying to use Retrofit to make a call to this api: <a href="https://api.wheretheiss.at/v1/satellites/25544" rel="nofollow">https://api.wheretheiss.at/v1/satellites/25544</a></p>
  
  <p>Here is the code where the connection is being made:</p>
  
  <pre><code>retrieveButton.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
  
                  Retrofit retrofit = new Retrofit.Builder()
                          .baseUrl(BASEURL)
                          .addConverterFactory(GsonConverterFactory.create())
                          .build();
  
                  ISSApi api = retrofit.create(ISSApi.class);
  
                  Call&lt;ISS&gt; ISS = api.getLocation();
  
                  ISS.enqueue(new Callback&lt;ISS&gt;() {
                      @Override
                      public void onResponse(Response&lt;ISS&gt; response) {
                          System.out.println("booya");
                      }
  
                      @Override
                      public void onFailure(Throwable t) {
                          System.out.println("failure");
                          System.out.println(t.getMessage().toString());
                          t.printStackTrace();
  
                      }
                  });
  </code></pre>
  
  <p>So it seems to at least be able to find the API as the onFailure callback is being fired, but im getting this error:</p>
  
  <blockquote>
    <p>javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.</p>
  </blockquote>
  
  <p>Some notes:
  I've used OkHTTP before with an API that had SSL enabled and I never had to deal with certificates. Also, something i noticed, if i go to the API endpoint on my Nexus 5, i get this: <a href="http://i.imgur.com/he8821o.png" rel="nofollow">http://i.imgur.com/he8821o.png</a>. Perhaps thats related to the issue?</p>
  
  <p>Any help appreciated. Using Retrofit 2.0.0.</p>