When importing XHTML containing an image tag referring an external https image resource an error "org.docx4j.org.xhtmlrenderer.exception WARNING:: IO problem for https://www.... When referring to an http image resource no problem occurs. I suspect sll security settings being more strict in recent java 1.8 updates (1.8.0_151-b12 is currently in use). I also get an error when loading the https resource using
URLConnection connection = url.openConnection();
InputStream is = connection.getInputStream();
but when setting the
HttpsURLConnection.setDefaultHostnameVerifier(
SSLConnectionSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
parameter, the resource is loaded using.
The xhtml import, however, does not react to this setting and still keeps reporting the IO problem.
Is there a solution to this problem?