Re: SSL support on Webkit
Re: SSL support on Webkit
- Subject: Re: SSL support on Webkit
- From: Nick Zitzmann <email@hidden>
- Date: Tue, 18 Dec 2007 05:36:46 -0700
On Dec 18, 2007, at 3:33 AM, Kan Cheng wrote:
I'm customizing my own web browser by using Webkit, but when using
it to access URL with https:// prefix, it doesn't work.
With WebFrameLoadDelegate protocol's help, I catch an error with the
description "untrusted server certificate" in the
WebView:didFailProvisionalLoadWithError:forFrame: method.
So does it mean the webkit does not support SSL?
No; it means that the certificate failed a trust check for some
reason, usually because it expired, or the host names don't match, or
the root is unknown or expired, etc.
But when using Safari to access such URLs, it will pop up a
certification dialog box and then after press 'Continue', it can
access the URLs properly.
That's because Safari is programmed to handle certificate errors. You
can, too, using the SecurityInterface framework, although implementing
the "continue" command currently requires use of a private method.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden