---
title: "MD2withRSA is disabled"
author: "wenjinglian"
date: "2013-04-25T14:44:37Z"
tags: ["JDK"]
categories: ["企业架构"]
slug: "md2withrsa-is-disabled"
draft: false
lastmod: "2013-04-25T14:44:37Z"
id: 1853496
url: "https://nassir.iteye.com/blog/1853496"
---

请求https报以一错误：

```
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: algorithm check failed: MD2withRSA is disabled
```

 

原因jdk bug ：

版本在 Jdk-6u17 到 Jdk-6u20 会出现此错误

如果是在这个区间的 请降级或升级jdk ，如果服务器在这个区间就悲剧了

 

[http://stackoverflow.com/questions/8834840/how-to-access-https-website-where-md2withrsa-is-disabled-is-encountered](http://stackoverflow.com/questions/8834840/how-to-access-https-website-where-md2withrsa-is-disabled-is-encountered)