How to do Mutual Authentication in C#?
Asked Answered
S

1

7

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!

Sanbo answered 25/11, 2014 at 15:47 Comment(3)
2 way authentication between a console app and what?Laveta
I am not sure about server side implementation. They have just provided the host name and Port for me!Sanbo
I have added the detailed question here.Mankind
P
0

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

Planchet answered 5/12, 2014 at 20:45 Comment(1)
Linked answers are discouraged. There should have been an example/synopsis posted. That link is now broken and so now helps no one.Macpherson

© 2022 - 2024 — McMap. All rights reserved.