Problem: Reading a map into a BufferedImage using it's secure URL, then displaying it to the browser
From a servlet, my ultimate goal is to take several map layers, flatten them using a BufferedImage, then output that image to the user's browser. Our clients want a way to save maps, displayed using OpenLayers, as JPEGs; the solution MUST work on IE and Firefox. To simplify things, I attempted to display a single map; it works if I use an image using "http://...", but fails when using "https://..."
When I run this using the regular "http" URL, the image displays correctly. If I use the "https" URL, then I get the following error:
javax.imageio.IIOException: Can't get input stream from URL!
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Any ideas? I'm pretty sure I'm missing some steps here.