How to do mutual authentication in C #?

I need to know how to do mutual authentication in C #. I know this is pretty easy in WCF applications. However, I have to perform two-way SSL authentication from a console application in C #. I have two public certificates for client and server.

Any help would be appreciated!

+6
source share
1 answer

In fact, you can use WCF libraries also in a console application. Therefore, you should be able to reuse existing code.

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

0
source

Source: https://habr.com/ru/post/978688/


All Articles