且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

JDK 11. javax.net.ssl.SSLPeerUnverifiedException:对等方未通过身份验证

更新时间:2022-03-04 21:23:37

您可以尝试将OpenJDK更新到11.0.3或更高版本.

You might try updating OpenJDK to 11.0.3 or higher.

我最近在11.0.2的应用程序中偶尔出现了SSLPeerUnverifiedException,偶尔也出现SSLException: No PSK available. Unable to resume.失败.后者似乎来自JDK 11.0.2中的已知错误.当我更新到11.0.4时,两个问题都消失了.

I recently had a SSLPeerUnverifiedException show up sporadically in an app on 11.0.2, along with an occasional SSLException: No PSK available. Unable to resume. failure. The latter seems to be from a known bug in JDK 11.0.2. When I updated to 11.0.4, both problems disappeared.