WinCairo WebKit Supports SSL


The guys at Appcelerator figured out how to enable SSL support in their local build of the WinCairo port, and passed along the three-line change required to do so.

Of course, there was a little bit more to it than that, mainly involving figuring out how to (a) build OpenSSL on Windows, (2) how to build libcurl with SSL enabled, and (iii) how to link WebKit with all of this stuff.

I managed to swell their three-line modification into around twenty lines, but in my defense I wanted to make it possible to have WebKit look for the SSL certificate in the WebKit bundle directory (falling back to the CURL_CA_BUNDLE_PATH environment variable only if necessary).

So now you can locate a certificate bundle in "WebKit.resources/certificates/cacert.pem", and WebKit will find it and use it. If not, you have to set the CURL_CA_BUNDLE_PATH environment variable to the desired location.

The upshot of all this is that I am posting this blog note via WinLauncher (after logging into Blogger.com using HTTPS), and I closed out Bug 28171 via WinLauncher (over HTTPS) as well!

Comments

Popular Posts