Welcome Guest Search | Active Topics | Sign In | Register

HTTPS: SSL issue Options
Dimitri Joosten
Posted: Thursday, April 24, 2014 7:22:43 AM
Rank: Newbie
Groups: Member

Joined: 4/24/2014
Posts: 2
Dear support,

I am currently evaluating the webbrowser control for WPF. I am facing the following issue:

When I browse to the following URL while using the EO WebBrowser Control: https://tools.vhg.be nothing appears. The site has no self signed certificate but uses a wildcard certificate. I also cought the certificateErrorEvent (to be sure) and with CertificateErrorEventArgs.Continue(). FYI: When I debug the event does not fire.

This is declaration in XAML:
Code: XML
<eo:WebControl Name="webBrowser" Margin="0,0,0,50">
                <eo:WebControl.WebView>
                    <eo:WebView x:Name="wv" CertificateError="wv_CertificateError" />
                </eo:WebControl.WebView>
            </eo:WebControl>


This is the code to retrieve the website:
Code: C#
// I pass "https://tools.vhg.be"

public void loadURL(string url)
        {
            wv.Url = url;
        }


This is the event handler:
Code: C#
private void wv_CertificateError(object sender, EO.WebBrowser.CertificateErrorEventArgs e)
        {
            e.Continue();
        }

eo_support
Posted: Thursday, April 24, 2014 10:35:27 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

Thanks for posting in the forum. We have looked into the issue.

The root of the problem is you have configured your server to require a client certificate. For a SSL connection, the server must send the server's certificate to the client, which is to used by the client browser to verify the server's identify. Additionally, you can configure your server to require the client to send the client's certificate to the server as well, this certificate can be used by the server to verify the client's identify, as such it can be used for authentication purpose.

Most servers only uses server to client certificate and do not use client to server certificate. The CertificateError event is only fired for a server to client certificate error. In your case, since the problem is caused by client to server certificate, CertificateError is not fired. Since EO.WebBrowser does not have a client certificate, it simply canceled the navigation.

To resolve this issue, we will have to add an interface for you to pass your client certificate to EO.WebBrowser. And if you do not, we will internally generate a certificate and pass that certificate to the server. Obviously if your server does verify this certificate for authentication purpose, the authentication will fail. However that will at least allow the page to be loaded in the browser. We will look into this and see if we can add such this in the near future.

Thanks!
Dimitri Joosten
Posted: Friday, April 25, 2014 2:52:11 AM
Rank: Newbie
Groups: Member

Joined: 4/24/2014
Posts: 2
Hello,

Thanks for your quick reply. I switched the SSL connection from "client to server" to "server to client" and this solved the issue for me.

Regards,

Dimitri

eo_support
Posted: Friday, April 25, 2014 10:44:34 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Great. I am glad to hear that the issue was resolved. Please feel free to let us know if you have any more questions. Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.