Menu

SSL-Support?

Help
geekyde
2009-07-24
2014-01-18
  • geekyde

    geekyde - 2009-07-24

    It seems the build has no SSL-Support (yet)?
    Trying https://www.somedomain.com/ results in: "Couldn't resolve host name"

     
    • air0

      air0 - 2009-07-25

      A hazardous guess would be that cURL that ships with the webkit build needs SSL support.

       
    • Peter Nelson

      Peter Nelson - 2009-07-26

      Hey, this is just sloppy coding on my part - at the moment the Navigate method checks that the given URL begins with "http://" and if not, prepends it with that.  So in this case it will try "http://https://www.somedomain.com/" which will result in that error.  Changing line 457 of WebKitBrowser.cs from:
         if (!Url.StartsWith("http://"))
      to
         if (!Url.Contains("://")
      should sort the problem.

       
    • Peter Nelson

      Peter Nelson - 2009-07-26

      Okay, so it looks like HTTPS is working fine with the Apple build of WebKit but the Cairo build gives an "unsupported protocol" error.  I assume it hasn't been implemented in the Cairo build yet but I'll have a look into it.

       
  • Anonymous

    Anonymous - 2010-07-20

    the latest version of the cairo build is working with ssl, you just need a ca certificate file (eg. http://curl.haxx.se/ca/cacert.pem) and put it in a new folder called certificates in the WebKit.resources folder.

    so the full path for the new file would be .\WebKit.resources\certificates\cacert.pem

     
  • Peter Nelson

    Peter Nelson - 2010-07-22

    That simplifies things massively, thanks!  I'll include a certificate file in the next release.

    Peter

     
  • Nikola Breznjak

    Nikola Breznjak - 2011-04-07

    Has anyone got this working? Is the development of this still active??

     
  • Anonymous

    Anonymous - 2011-05-12
     
  • pswain

    pswain - 2012-01-27

    I am getting peer certificate can not be authenticated with unknown CA certificate error  when accessing HTTPS site .

     
  • Anonymous

    Anonymous - 2014-01-18

    I am also getting "Peer certificate cannot be authenticated with known CA certificates".

    I am using C# and Visual Studio 2013. I have created a Windows Forms project and added the WebKitBrowser to my project's references. I am executing the program in my local system. When it navigates to http://google.com/ it goes there but when I click on "Sign in" I get the error.

    If I use the WebKitBrowserTest.exe sample then I can sign into Google; SSL seems to work.

    Do I need to put WebKitBrowser.dll someplace special? Is there anything else I need to do like that? Do I need to put a certificate someplace?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.