Sorry for my english. I need load image from url, but url use HTTPS protocol. I try load image through android libruary ImageLoader and i have error:
java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
How i can load image in protocol HTTPS?
My example:
in main activity:
DisplayImageOptions mDisplayImageOptions = new DisplayImageOptions.Builder()
.showImageForEmptyUri(R.drawable.abc_ab_share_pack_mtrl_alpha)
/*.showImageOnLoading(R.drawable.loading_bg)
.showImageOnLoading(R.drawable.loading_bg)*/
.cacheInMemory(true)
.cacheOnDisc(true)
.build();
ImageLoaderConfiguration conf = new ImageLoaderConfiguration.Builder(context)
.defaultDisplayImageOptions(mDisplayImageOptions)
.memoryCacheSize(50 * 1024 * 1024)
.discCacheSize(50 * 1024 * 1024)
.denyCacheImageMultipleSizesInMemory()
.diskCacheExtraOptions(250, 250, null)
.threadPoolSize(5)
.writeDebugLogs()
.build();
mImageLoader = ImageLoader.getInstance();
mImageLoader.init(conf);
And in adapter
imageLoader.displayImage(image.get(position).getLinkImge(),holder.image);