Loading

ubuntu 20.04使用TLSv1

ubuntu20.04在通过sqlserver命令行工具连接sqlserver 2012时,报错说ssl错误协议不支持(“unsupported protocol”)。
这是由于sqlserver老版本中使用的tlsv1.x已不被新版ubuntu兼容。此时需要修改系统的openssl设置。
修改方法如下:

编辑/etc/ssl/openssl.cnf
第一行添加openssl_conf = default_conf
结尾添加

[default_conf]
ssl_conf = ssl_sect

[ssl_sect]
system_default = system_default_sect

[system_default_sect]
MinProtocol = TLSv1
CipherString = DEFAULT@SECLEVEL=1

https://github.com/microsoft/msphpsql/issues/1112
https://medium.com/siberians-pro/how-to-use-tlsv1-on-ubuntu-20-04-133c2898ad7

posted @ 2020-12-28 16:56  wswind  阅读(1139)  评论(0编辑  收藏  举报