当我尝试在Mac上使用Rider嵌入式工具和jdbc SQL服务器驱动程序连接到我的远程sql Server数据库时,我得到了以下异常:
java.security.cert.CertificateException: Certificates does not conform to algorithm constraints有问题的算法是在JRE中被禁用的MD5withRSA。我想我需要更改java.security文件中禁用的算法列表。要更改的设置:
jdk.tls.disabledAlgorithmsjdk.certpath.disabledAlgorithms问题是我找不到Rider应用程序使用的java.security文件,因为JRE与应用程序捆绑在一起。如何更改这些值或找到所需的文件?
我尝试使用如下所示的VM自定义设置,但不起作用:
-Djdk.tls.disabledAlgorithms=
-Djdk.certpath.disabledAlgorithms=发布于 2020-05-13 06:38:26
解决方案是将vm选项与以下参数一起使用:
-Djava.security.properties=/path/to/my/custom/java.security/path/to/my/custom/java.security的内容
jdk.tls.disabledAlgorithms=MD2, RSA keySize < 1024
jdk.certpath.disabledAlgorithms=MD2, RSA keySize < 1024https://stackoverflow.com/questions/61762855
复制相似问题