Authentication with client certificate Sample (wodWebServer / wodWebServer.NET)
Where could I find a sample for authentication with client certificate?
by Jeremy, (4124 days ago)
Where could I find a sample for authentication with client certificate?
by Jasmine, (4124 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, (4124 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, (4124 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, (4124 days ago) @ Jasmine
WebServer.Net
Thanks.
by Jasmine, (4124 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, (4123 days ago) @ Jasmine
Thanks.
It works.
...wodFtpDlx was exactly what I needed, it worked, and it was priced right...
It was no small factor, however, that your support in getting me up and running made me buy from you.
I would highly recommend this to anyone who needs a good quality SFTP solution.
Congratulations on an excellent product and first rate support!
I really like these products - they are consistently first rate!
...I'm extremely impressed with the product, it represents excellent value for money...
May I say how nice it is to work with components so complete and self-explanatory that using them in my application is as instinctive as though I wrote them myself?
Fantastic product by the way, it has helped us tremendously on a daily basis. Keep up the good work.
Brilliant, even works on the mobile phone...
...not only that you provide these components at very reasonable cost, your responsiveness to emailed technical questions is simply outstanding...