In mono, how to control the SSL/TLS cipher suite?

这一生的挚爱 提交于 2019-12-06 11:47:45

问题


I would like to configure the server to refuse negotation of DES, RC4, MD5, etc. The mono 3.4 release notes say "Network Stack Now allows developers to control which cipher suites to use with TLS/SSL." ... But how?


回答1:


(Thanks to Sebastien Pouliot for this answer)

You can set a callback for either ClientCipherSuitesCallback or ServerCipherSuitesCallback SSL/TLS. That will allow you to control which ciphers can be used and the selection order (in general most server select the first cipher suites they support).

Sample code is part of the documentation.

And also, since it will likely be difficult for some people to find the valid enumerations, see CipherSuiteFactory.cs



来源:https://stackoverflow.com/questions/23341014/in-mono-how-to-control-the-ssl-tls-cipher-suite

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!