【问题标题】:java CertPathValidatorException: Algorithm constraints check failed on signature algorithm: MD2withRSAjava CertPathValidatorException:签名算法的算法约束检查失败:MD2withRSA
【发布时间】: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.disabledAlgorithmsjdk.tls.disabledAlgorithms,但仍然出现错误。我当前的 java 版本是 1.8.152。如果我们拦截请求,请求会使用 Fiddler 获得正确的响应。有人可以帮我理解为什么会出现这个错误并给我任何解决这个问题的建议吗?

【问题讨论】:

    标签: java sslhandshakeexception webscarab


    【解决方案1】:

    您确定要使用 WebScarab 吗?它不再被维护。

    另一方面,ZAP 维护得非常积极 :) https://github.com/zaproxy/zaproxy

    【讨论】:

    • 感谢您的回复。我知道 WebScarab 没有得到维护,但我真的无法改变它。有没有其他办法。
    猜你喜欢
    • 2021-04-15
    • 2019-04-06
    • 1970-01-01
    • 2019-07-05
    • 1970-01-01
    • 2020-04-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多