我正在使用基于 webscarab jar 构建的代理来拦截 HTTP 请求和响应。当我点击一个特定的 https URL 时,我得到了
javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Certificates do not conform to algorithm constraints which is caused by java.security.cert.CertPathValidatorException: Algorithm constraints check failed on signature algorithm: MD2withRSA.
尽管没有 webscarab,但请求会得到正确的响应。我尝试在文件中评论属性jdk.certpath.disabledAlgorithms
,但仍然出现错误。我当前的 java 版本是 1.8.152。如果我们拦截请求,请求会使用 Fiddler 获得正确的响应。有人可以帮助我理解为什么会发生此错误并给我任何解决此问题的建议吗?jdk.tls.disabledAlgorithms
java.security