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

偶尔善良 提交于 2019-12-04 17:32:41
Edward Ned Harvey

(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

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