【发布时间】:2020-05-12 22:08:35
【问题描述】:
当我尝试在 Mac 上使用 Rider 嵌入式工具和 jdbc sql server 驱动程序连接到远程 SQL Server 数据库时,出现以下异常:
java.security.cert.CertificateException: Certificates does not conform to algorithm constraints
有问题的算法是在 JRE 中禁用的 MD5withRSA。我发现我需要更改java.security 文件中的禁用算法列表。要更改的设置:
jdk.tls.disabledAlgorithms
jdk.certpath.disabledAlgorithms
问题是我找不到 Rider 应用程序使用的 java.security 文件,因为 JRE 与应用程序捆绑在一起。如何更改这些值或找到我需要的文件?
我尝试使用虚拟机自定义设置,如下例所示,但没有成功:
-Djdk.tls.disabledAlgorithms=
-Djdk.certpath.disabledAlgorithms=
【问题讨论】:
标签: java jdbc rider mssql-jdbc