Skip to main content
Sorry for not posting the whole thing
Source Link

You have a SSL problem which you have to solve first, before you fetch the Image. It says that didn't find any trusted host with the name ns6.host.md in your trusted store in JAVA_HOME/jre/lib/security. You could add to your TrustStore the public key of that host or just ignore SSL errors if that's the case:

HttpsURLConnection.setDefaultHostnameVerifier(getUnsecureHostNameVerifier()); try { SSLContext e = SSLContext.getInstance("TLS"); e.init(new KeyManager[0], new TrustManager[]{new TLSContextConfig.DefaultTrustManager()}, new SecureRandom()); SSLContext.setDefault(e); HttpsURLConnection.setDefaultSSLSocketFactory(e.getSocketFactory()); } catch (Exception var1) { throw new Exception("SSL Error", var1); } public static class DefaultTrustManager implements X509TrustManager { public DefaultTrustManager() {  }  public void checkClientTrusted(X509Certificate[] arg0, String arg1) throws CertificateException { } public void checkServerTrusted(X509Certificate[] arg0, String arg1) throws CertificateException { } public X509Certificate[] getAcceptedIssuers() { return new X509Certificate[0]; } } 

You have a SSL problem which you have to solve first, before you fetch the Image. It says that didn't find any trusted host with the name ns6.host.md in your trusted store in JAVA_HOME/jre/lib/security. You could add to your TrustStore the public key of that host or just ignore SSL errors if that's the case:

HttpsURLConnection.setDefaultHostnameVerifier(getUnsecureHostNameVerifier()); try { SSLContext e = SSLContext.getInstance("TLS"); e.init(new KeyManager[0], new TrustManager[]{new TLSContextConfig.DefaultTrustManager()}, new SecureRandom()); SSLContext.setDefault(e); HttpsURLConnection.setDefaultSSLSocketFactory(e.getSocketFactory()); } catch (Exception var1) { throw new Exception("SSL Error", var1); } 

You have a SSL problem which you have to solve first, before you fetch the Image. It says that didn't find any trusted host with the name ns6.host.md in your trusted store in JAVA_HOME/jre/lib/security. You could add to your TrustStore the public key of that host or just ignore SSL errors if that's the case:

HttpsURLConnection.setDefaultHostnameVerifier(getUnsecureHostNameVerifier()); try { SSLContext e = SSLContext.getInstance("TLS"); e.init(new KeyManager[0], new TrustManager[]{new DefaultTrustManager()}, new SecureRandom()); SSLContext.setDefault(e); HttpsURLConnection.setDefaultSSLSocketFactory(e.getSocketFactory()); } catch (Exception var1) { throw new Exception("SSL Error", var1); } public static class DefaultTrustManager implements X509TrustManager { public DefaultTrustManager() {  }  public void checkClientTrusted(X509Certificate[] arg0, String arg1) throws CertificateException { } public void checkServerTrusted(X509Certificate[] arg0, String arg1) throws CertificateException { } public X509Certificate[] getAcceptedIssuers() { return new X509Certificate[0]; } } 
Source Link

You have a SSL problem which you have to solve first, before you fetch the Image. It says that didn't find any trusted host with the name ns6.host.md in your trusted store in JAVA_HOME/jre/lib/security. You could add to your TrustStore the public key of that host or just ignore SSL errors if that's the case:

HttpsURLConnection.setDefaultHostnameVerifier(getUnsecureHostNameVerifier()); try { SSLContext e = SSLContext.getInstance("TLS"); e.init(new KeyManager[0], new TrustManager[]{new TLSContextConfig.DefaultTrustManager()}, new SecureRandom()); SSLContext.setDefault(e); HttpsURLConnection.setDefaultSSLSocketFactory(e.getSocketFactory()); } catch (Exception var1) { throw new Exception("SSL Error", var1); }