简体   繁体   中英

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 in both applications. 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 is used. SSL certificate is issued by Let's Encrypt, if this makes a difference. How to fix this?

Upgrading to Oracle JDK 11.0.4 solved the problem. I saw similar advice for OpenJDK in another SO question, but decided not to mix things up for the two JDKs.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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