How to do Mutual Authentication in C#?

785 views Asked by At

I need to know how to do Mutual Authentication in c#. I know it is pretty easy in WCF applications. However, I have to do two way SSL authentication from console applciation in C#. I have the two public certificates for client and server.

Any help would be appreciated!

1

There are 1 answers

1
Martin Rauscher On

Actually you can use the WCF libraries also in a console application. So you should be able to reuse your existing code.

If you really want do it without WCF, there are examples out there on how to use ssl Client certificates in C#: http://www.example-code.com/csharp/https_upload_with_cert.asp