繁体   English   中英

javax.net.ssl.SSLPeerUnverifiedException: 升级 Spring 从 2.1.0 到 2.2.0.M3 后未通过身份验证

[英]javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated after upgrading Spring Boot from 2.1.0 to 2.2.0.M3

I've started getting javax.net.ssl.SSLPeerUnverifiedException when making an HTTPS request to the Spring Boot based Java application from another Spring Boot based Java application (a test suite for the former) after upgrading Spring Boot from version 2.1.0 to 2.2 .0.M3 在两种应用中。 I can confirm that SSL certificate for the site is shown valid in a browser (Google Chrome), host name in there matches the one in HTTPS URL, and by just downgrading Spring Boot back to 2.1.0 I can access the URL without exception again . 使用 Oracle JDK 11.0.1。 SSL 证书由 Let's Encrypt 颁发,如果这有所作为。 如何解决这个问题?

升级到 Oracle JDK 11.0.4 解决了这个问题。 我在另一个SO question 中看到了针对 OpenJDK 的类似建议,但决定不将这两个 JDK 混为一谈。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM