这期内容当中小编将会给大家带来有关如何分析DB2 SSL配置遇到的一个问题,文章内容丰富且以专业的角度为大家分析和叙述,阅读完这篇文章希望大家可以有所收获。

配置完DB2 Server端,然后配置db2 client端,连接数据库,命令行抛出一个错误

SQL30081N A communication error has been detected. Communication protocol
being used: "SSL". Communication API being used: "SOCKETS". Location where
the error was detected: "". Communication function detecting the error:
"sqlccSSLSocketSetup". Protocol specific error code(s): "420", "*", "*".
SQLSTATE=08001在db2diag.log抛出这样的错误
MESSAGE : DIA3604E The SSL function "gsk_secure_soc_init" failed with the
return code "402" in "sqlccSSLSocketSetup".

一番调查和求证,发现问题的原因
db2 server 端版本是 V11.1.4.4
db2 client 端版本是 10.5.0.4

我开始在db2 server端配置了 dbm cfg
(SSL_VERSIONS) = TLSV12

解决方法:

db2 update dbm cfg using SSL_VERSIONS NULL
重启DB2

上述就是小编为大家分享的如何分析DB2 SSL配置遇到的一个问题了,如果刚好有类似的疑惑,不妨参照上述分析进行理解。如果想知道更多相关知识,欢迎关注亿速云行业资讯频道。