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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am getting peer certificate can not be authenticated with unknown CA certificate error when accessing HTTPS site .
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It seems the build has no SSL-Support (yet)?
Trying https://www.somedomain.com/ results in: "Couldn't resolve host name"
A hazardous guess would be that cURL that ships with the webkit build needs SSL support.
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.
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.
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
That simplifies things massively, thanks! I'll include a certificate file in the next release.
Peter
Has anyone got this working? Is the development of this still active??
This project is now https://sourceforge.net/projects/webkitdotnet/forums/forum/939856/topic/3345480
Mistook. This project is now https://github.com/webkitdotnet/webkitdotnet
I am getting peer certificate can not be authenticated with unknown CA certificate error when accessing HTTPS site .
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?