title: Glide - javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found
body: <p>I migrated the server from <code>HTTP</code> to <code>HTTPS</code> I have used self-signed certificate to send network requests with <code>HttpUrlConnection</code> and it worked but for image loading it is not working as I have used Glide for Image loading.</p>
  
  <blockquote>
    <p>javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.while loading images from <strong>https URL</strong> through glide library</p>
  </blockquote>
  
  <pre><code>Glide.with(mContext).load(currentItem.getImage_path().replace(" ", "%20"))
       .listener(new RequestListener&lt;String, GlideDrawable&gt;() {
          @Override
          public boolean onException(Exception e, String model, Target&lt;GlideDrawable&gt; target, boolean isFirstResource) {
              genericViewHolder.imageView_1.setImageResource(R.drawable.image_thumbnail);
              genericViewHolder.progressBar.setVisibility(View.GONE);
              return false;
          }
  
          @Override
          public boolean onResourceReady(GlideDrawable resource, String model, Target&lt;GlideDrawable&gt; target, boolean isFromMemoryCache, boolean isFirstResource) {
              genericViewHolder.progressBar.setVisibility(View.GONE);
              return false;
          }
      }).into(genericViewHolder.imageView_1);
  </code></pre>
  
  <p>I tried using <a href="https://futurestud.io/tutorials/glide-module-example-accepting-self-signed-https-certificates" rel="noreferrer">this</a> link and used GlideModule but it does not seem to work. Please help.</p>