Authentication with client certificate Sample (wodWebServer / wodWebServer.NET)
Where could I find a sample for authentication with client certificate?
by Jeremy, (4549 days ago)
Where could I find a sample for authentication with client certificate?
by Jasmine, (4549 days ago) @ Jeremy
Jeremy,
hi. You can check out our online samples here:
http://www.weonlydo.com/code.asp?prod=wodWebServer
First one is about authentication with the server.
Kind regards,
Kreso
by Jeremy, (4549 days ago) @ Jasmine
Thanks for your prompt reply.
The sample's AuthenticationType is "Basic".
But I need a sample that is "AuthentionType = AuthCertificate"
by Jasmine, (4549 days ago) @ Jeremy
Jeremy,
oh, I see. I can write a sample for you. Are you using ActiveX or NET version of wodWebServer?
Kreso
by Jeremy, (4549 days ago) @ Jasmine
WebServer.Net
Thanks.
by Jasmine, (4548 days ago) @ Jeremy
Hi.
I had to fix wodWebServer.NET for this to work - thanks for spotting this. Anyway, please download wodWebServer.NET again and install it (version 1.3.7) . Once installed you can do this:
[code]
web1.AuthenticateEvent += new WeOnlyDo.Server.WebServer.AuthenticateDelegate(web1_AuthenticateEvent);
web1.Secure = true;
web1.Authentication = WeOnlyDo.Server.WebAuthentications.Required;
web1.AuthenticationType = WeOnlyDo.Server.WebAuthenticationTypes.Certificate;
web1.Start();
[/code]
and in authenticate event do with the certificate whatever you wish:
[code]
void web1_AuthenticateEvent(object Sender, WeOnlyDo.Server.WebAuthenticateArgs Args)
{
if (Args.Certificate != null)
Console.WriteLine(Args.Certificate.GetIssuerName());
Args.Action = WeOnlyDo.Server.WebActions.Allow;
}
[/code]
Let me know how it goes!
Kreso
by Jeremy, (4547 days ago) @ Jasmine
Thanks.
It works.

Thank you for the great customer service ... I am really impressed with the wodSSH ActiveX control.

You did a great job on wodSSH and wodSSHServer! I got a lot for very little money. Thanks!

Your .NET components allow us to blend .NET technology seamlessly with secure communication, and with excellent technical support.

Thank you very much for the rapid responses. I was a little nervous about dealing with a company that is on a different continent from me. You have proven my concerns to be unfounded.

Congratulations on an excellent product and first rate support!

I can only hope I will have the pleasure to work with other products by "We Only Do" in the future.

Not only wodSFTPdll is excellent, the service you have provided is outstanding and second to none!

I've heard that you are amazing with your replies coming back so quickly - and now I've seen the speed in which you reply first hand.

Thank you very much for the rapid responses. I was a little nervous about dealing with a company that is on a different continent from me. You have proven my concerns to be unfounded.

...your service has been phenomenal. It's always quick and you are there when I need you.

