【发布时间】:2018-03-26 16:34:27
【问题描述】:
我正在使用基于 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,但请求会得到正确的响应。我尝试在java.security 文件中评论属性jdk.certpath.disabledAlgorithms 和jdk.tls.disabledAlgorithms,但仍然出现错误。我当前的 java 版本是 1.8.152。如果我们拦截请求,请求会使用 Fiddler 获得正确的响应。有人可以帮我理解为什么会出现这个错误并给我任何解决这个问题的建议吗?
【问题讨论】:
标签: java sslhandshakeexception webscarab