SSL support on Webkit

  • Hi,
    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?
    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.
    So I think there may be somewhere to handle this issue in webkit, but where does it supposed to be and how to handle it?
    I have gone over those 4 webkit delegate protocols, including WebPolicyDelegate, but haven't find a good place to handle it yet.

    Best Regards
    Kan Cheng
  • 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/>
previous month december 2007 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Go to today