How do I identify my server name for server authentication by client in c#

后端 未结 6 1830
清酒与你
清酒与你 2021-02-04 04:11

I have recently been trying to make a SSL encrypted Server/Client in C#.

I have followed this tutorial on MSDN, however, it required a certificate to be created for the

6条回答
  •  爱一瞬间的悲伤
    2021-02-04 04:45

    A server certificate's CN must be exactly the same as the server's domain name. I suppose, in your case the common name must be "localhost" (w/o quotes).

    Important: for sure, as you might have read in other answers, never use CN="localhost" in production.

提交回复
热议问题