Java8遇到certificate does not confirm to algorithm constrains
来源:互联网 发布:12306自动抢票软件 编辑:程序博客网 时间:2024/05/16 08:54
Java8遇到certificate does not confirm to algorithm constrains
我的开发环境是Java7+Eclipse,由于老大写的一套外接程序需要用到Java8+Tomcat8来部署,所以装了个虚拟机,安装了Java8,一切准备就绪以后,发现Java Security报错,截图就不贴出来了,具体报错内容是:
certificate does not confirm to algorithm constrains
百度了各种说法,发现是由于Java8 disable了MD5相关的算法逻辑,故报错了,解决方案如下:
找到你的Java安装目录,%JAVA_HOME%\Java\jdk1.8.0_102\jre\lib\security目录下的java.security文件,修改其中内容:
jdk.certpath.disabledAlgorithms=MD2, MD5, RSA keySize < 1024
jdk.tls.disabledAlgorithms=SSLv3, RC4, MD5withRSA, DH keySize < 768
改为:
jdk.certpath.disabledAlgorithms=MD2, RSA keySize < 1024
jdk.tls.disabledAlgorithms=SSLv3, RC4, DH keySize < 768
也就是说把MD5去掉,保存即可。
感谢stackoverflow上找到的正解。
0 0
- Java8遇到certificate does not confirm to algorithm constrains
- Certificates does not conform to algorithm constraints
- Certificates does not conform to algorithm constraints
- Type does not confirm to protocol 'BooleanType.Protocol'
- swift错误: Type "xxx" does not confirm to protocol "BooleanType"
- Certificates does not conform to algorithm constraints 异常的解决方法
- java.security.cert.CertificateException: Certificates does not conform to algorithm constraints
- 解決 java.security.cert.CertificateException: Certificates does not conform to algorithm constraints
- 打开 android studio 时遇到does not point to a valid
- composer遇到Your configuration does not allow connection to http://的问题怎么解决
- composer遇到Your configuration does not allow connection to http://的问题怎么解决
- 在使用composer下载TP5的时候遇到 Your configuration does not allow connections to http://packagist.phpcomposer.
- JAVA_HOME does not point to the JDK
- AP does not balance to GL
- does not map back to the address
- Column does not belong to table error!
- Path does not point to a directory.
- 554 Message does not conform to standards
- codeforces AIM Tech Round 3 (Div. 2) B. Checkpoints
- 在MAC中配置maven
- 配置pam_mysql 出错
- MySQL死锁问题实例分析及解决方法
- 【例题】【康托展开】NKOJ 2272 数字排列
- Java8遇到certificate does not confirm to algorithm constrains
- 带你玩转Visual Studio——带你跳出坑爹的Runtime Library坑
- 最小二乘法公式
- [iOS XIB适配] xib 进行 多个按钮平均分布适配
- 用redis+php7改造ecshop单品商城支持日百万pv
- Java 变量和常量
- js数据容量单位转换方法
- 笔记:lucene学习
- 计算机网络(一)--概述