DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29099>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29099

pdf images does not appear in https

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From [EMAIL PROTECTED]  2004-06-23 15:34 -------
You need to put this before you make the connection in your code or in the 
worst case inside the FopImageFactory.java before the image is being loaded:

protected void initHTTPSForFOP()
        {
                //to solve the "HTTPS hostname wrong: should be <url>" error 
when recovering Image Informations
                //the HttpsURLConnection needs to have a default 
HostnameVerifier configured
                HostnameVerifier tHostnameVerifier = new HostnameVerifier()
                        {
                                public boolean verify(String aUrlHostName, 
String aCertHostName)
                                {       //now only returns true but can verify 
if aUrlHostName equals to a given URL
                                        //System.out.println("HTTPS Warning");
                                        return true;
                                }
                        };
                HttpsURLConnection.setDefaultHostnameVerifier
(tHostnameVerifier);

}

Reply via email to