升级9.1.1后报错,驱动程序无法通过使用安全套接字层
按照https://www.o2oa.net/cms/serverdeployment/110.html操作步骤进行了版本升级原来的OA版本是7.1.4
升级后的版本9.1.1
使用的数据库是SQLServer 2008
更新完文件后窗口自动关闭,然后熏启了Start_Windows.bat,看到一条信息:
2024-07-11 16:55:10.077 ERROR com.alibaba.druid.pool.DruidDataSource - create connection SQLException, url: jdbc:sqlserver://127.0.0.1:1433;DatabaseName=FXOA;selectMethod=cursor;sendStringParametersAsUnicode=false;encrypt=true;trustServerCertificate=true, errorCode 0, state 08S01
com.microsoft.sqlserver.jdbc.SQLServerException: 驱动程序无法通过使用安全套接字层(SSL)加密与 SQL Server 建立安全连接。错误:“The server selected protocol version TLS10 is not accepted by client preferences ”。 ClientConnectionId:764cf54e-68a8-4395-bf0a-bfe6ea7f10a3
之前的外部数据库配置都不需要增加:encrypt=true;trustServerCertificate=true,就可以运行的
请问是哪儿需要调整修改吗
参考:https://www.o2oa.net/forum/forum.php?mod=viewthread&tid=25065&highlight=SQLServer 安装目录下的\jvm\windows_java11\conf\security\java.security文件,用记事本打开,找到jdk.tls.disabledAlgorithms,复制一个,原来的注释掉,或者直接删除TLSv1, TLSv1.1,即可
#jdk.tls.disabledAlgorithms=SSLv3, TLSv1, TLSv1.1, RC4, DES, MD5withRSA, \
# DH keySize < 1024, EC keySize < 224, 3DES_EDE_CBC, anon, NULL, \
# include jdk.disabled.namedCurves
jdk.tls.disabledAlgorithms=SSLv3, RC4, DES, MD5withRSA, \
DH keySize < 1024, EC keySize < 224,anon, NULL, \
include jdk.disabled.namedCurves
页:
[1]