前面文章在db2开启ssl监听
通过keytool本地创建 c:\a.jks,导入db2导出的arm文件
在dbvis配置
具体连接属性
Properties
Driver Properties
添加
sslConnection=true
sslTrustStoreLocation=c:\a.jks
sslTrustStorePassword=aa
连接时候有可能报错,服务端用TLS1.1,客户端用 TLS1.2, TLS1.3连接失败
参考dbvis官方解答
https://support.dbvis.com/support/solutions/articles/1000309483-tls-the-server-selected-protocol-version-tls11-is-not-accepted-by-client-preferences-
C:\Users[用户目录].dbvis\user.vmoptions
-Djava.security.properties=C:\enableLegacyTLS.security
其内容是
jdk.tls.disabledAlgorithms=SSLv3, RC4, DES, MD5withRSA,
DH keySize < 1024, EC keySize < 224, 3DES_EDE_CBC, anon, NULL,
include jdk.disabled.namedCurves