解決 java.security.cert.CertificateException: Certificates does not conform to algorithm constraints
来源:互联网 发布:淘宝全球购店铺申请 编辑:程序博客网 时间:2024/06/05 14:51
背景:
迁移服务器,每次使用20小时后报此错,重启服务器后又能用了
查网,网上的解决方案都是:
找到 jre/lib/security/java.security 将jdk.certpath.disabledAlgorithms=MD2, DSA, RSA keySize < 2048改为jdk.certpath.disabledAlgorithms=
取自:http://www.cnblogs.com/zemliu/p/4121136.html
修改后无果,有其必然性,我又没用ssl
于是从两台服务器的java环境入手:
旧:
1.8.0_112
jdk.certpath.disabledAlgorithms=MD2, MD5, RSA keySize < 1024
jdk.jar.disabledAlgorithms=MD2, RSA keySize < 1024
jdk.tls.disabledAlgorithms=SSLv3, RC4, MD5withRSA, DH keySize < 768
新:
1.8.0_151
jdk.certpath.disabledAlgorithms=MD2, MD5, SHA1 jdkCA & usage TLSServer, RSA keySize < 1024, DSA keySize < 1024, EC keySize < 224
jdk.jar.disabledAlgorithms=MD2,MD5,RSA keySize < 1024
jdk.tls.disabledAlgorithms=SSLv3, RC4, MD5withRSA, DH keySize < 768, EC keySize < 224
由于此项目比较小,仅用到一个md5算法,从此入手
可以看到区别,
jdk.jar.disabledAlgorithms 中 旧版无对MD5的限制,在新版jdk配置中,去除MD5(红色标注),解决
解决问题的思路参考了:http://blog.csdn.net/sxe18652071425/article/details/51064464
阅读全文
0 0
- 解決 java.security.cert.CertificateException: Certificates does not conform to algorithm constraints
- java.security.cert.CertificateException: Certificates does not conform to algorithm constraints
- Certificates does not conform to algorithm constraints
- Certificates does not conform to algorithm constraints
- Certificates does not conform to algorithm constraints 异常的解决方法
- Httpclient https请求出现Certificates does not conform 解决方法
- Java.Security.Cert.CertificateException: No Name Matching Localhost Found
- Android 问题解决:Caused by: java.security.cert.CertificateException
- 554 Message does not conform to standards
- swift:does not conform to protocol解决方法
- 导入申请的证书时发生java.security.cert.CertificateException: java.io.EOFException异常
- package com.w3ang.learning.https; import java.security.cert.CertificateException; import java.secur
- java.security.cert.CertificateException: No name matching cas.gogoyuan.cn found
- CAS部署错误3:java.security.cert.CertificateException: No name match
- Caused by: java.security.cert.CertificateException: No subject alternative names present
- java.security.cert.CertificateException: No name matching api.weibo.com found;取消验证
- java.security.cert.CertificateException: No name matching https证书验证不通过
- java.security.cert.CertificateException: Issuer class type invalid or Subject class type in valid
- centos6.5-oracle_11R安装
- SWIG c++ -> java 转换byte[] 的关键代码
- Java练习题24 猜数字
- ASP 数据库,连接数据库,连接池
- quartus ii 的研究报告
- 解決 java.security.cert.CertificateException: Certificates does not conform to algorithm constraints
- JavaScript学习-封装基础库1
- 【MyBatis】关于模糊查询的两种处理方法
- 2017年12月12日
- 理解设计模式之命令模式
- 从FastReport.NET导出文件时,如何配置Acrobat PDF阅览器选项
- maven 构建springmvc+mybatis项目
- java生成全球唯一的UUID
- android使用第三方平台(蒲公英)和DownloadManager实现APP自动更新