[webkit-help] WebKit+cairo open HTTPS issue & local certificate file issue
rick.zhi.xu at gmail.com
Thu Jun 10 13:59:49 PDT 2010
Thank you so much for your quick response. I greatly appreciate all
your help (including previous ones :-) ). I am gonna try it as soon
as possible and let you know my result.
2010/6/10 Brent Fulgham <bfulgham at gmail.com>:
> Hi Rick,
> On Jun 10, 2010, at 1:38 PM, Rick Xu wrote:
>> Sorry to bother.
>> I have successfully built the WebKit/Cairo on WinXP (32-bit). The
>> generated WinLauncher.exe works fine for normal http URL addresses.
>> However, when I try to open a HTTPS URL, like
>> https://mail.google.com/, the browser just stops there with no
>> response at all. I know the WinLauncher.exe is not a comprehensive
>> browser. But, I noticed that there is cacert.pem file included in the
>> "requirement" folder.
> Sorry about this. I had very specific needs for my initial Wincairo work, and am generally only hosting local content generated by a containing application. Consequently, I haven't devoted much (any?) time to the larger issues of network security and so forth.
> However, I have built and configured things so that https works properly. I suspect that the problem you are having is that you do not have a security certificate available for Wincairo to use. Obviously I need to provide better error reporting mechanisms here.
> The Wincairo port tells libcurl (the portion of the system that actually handles the https stuff) to check for a certificate in WebKit's working directory (generally, wherever WebKit.dll is located) in a subdirectory:
> |---------- bin
> |------------- WebKit.resources
> |-------------- certificates
> |--------------- cacert.pem
> I include the cacert.pem in the "WebKitSDK" stuff on my iDisk site. You can also just grab the one from the cURL site (that's basically all I'm using here.)
> This should be enough to get https working properly.
>> Another question is about the local certification. In WebKit/Safari
>> version, it provides a function to "install certificate" from local
>> certificate files. I am thinking of specifying a folder to store local
>> certificate files for the WebKit/Cairo build.
> Right now, all of this is controlled by the CoreFoundation bundle handling operations, which work pretty similarly on Wincairo as they do on the real Apple version. That said, I haven't tested or played with this at all. I am not sure I even hooked up all the logic in the WebKit.dll API layer to deal with this. Let me know what you discover and I'll be happy to help you figure out what to do to get it working.
> Best regards,
More information about the webkit-help