I have a weird and crazy idea that may help you....
Why don't you install a local apache server with mod_proxy.
You can configure mod_proxy so that it can tunnel into https from your http connection.
1) It's very fast, all my browsing is through a proxy server
2) You can secure your local apache so that it would only allow requests from localhost
3) It solves your problem by allowing you to make a request via http to get your https resource.
I am sorry if you find my suggestion ridiculous, but sometimes ridiculous ideas such as this one can save a lot of heartache and effort.
I guarantee it will work.
At 02:51 PM 11/19/2002 +0200, Johan Åbrandt wrote:
Hi,
I have the following external graphic declaration in a XML file:
<fo:external-graphic src="url('{$base-url}/images/logo.jpg')" height="30pt" width="170pt"/>
I render it to a servlet outputstream using:
Driver driver;
driver = new Driver( new InputSource( reader ), out ); driver.setRenderer( Driver.RENDER_PDF );
driver.run();
This works just fine when having the server configured for HTTP but when using HTTPS, it fails with error:
Error while creating area : Error with image URL: unknown certificate and no base directory is specified
I think this is because I am using a own generated certificate and not a real certificate from f ex Verisign. I know that I can either create my own SecurityManager (effectively disabling security), or use a real certificate. I would however like to circumvent all such hazzles and retrieve the image in some other means instead, intially I tried to use a custom EntityResolver, but I doesnt seem like it is used for image url resolution:
i.e.
driver = new Driver( new InputSource( reader ), out ); driver.setRenderer( Driver.RENDER_PDF );
XMLReader xmlReader = XMLReaderFactory.createXMLReader(); xmlReader.setEntityResolver( new CustomEntityResolver() ); driver.setXMLReader( xmlReader );
driver.run();
Does anyone have any tips how to get the EntityResolver approach to work, or know any other way to achieve something similar.
Best regards - Johan
-- Johan Åbrandt
Technical Project Manager (Tekninen projektipäällikkö) Tel. +358 9 6817 3342 Mobile. +358 40 848 8068 [EMAIL PROTECTED]
Profit Software Oy Meritullinkatu 11 C 00170 Helsinki, Finland
__________________________________________________________________________
This message and its attachments have been found clean from known viruses with three different antivirus programs.
__________________________________________________________________________
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]