JDK 11. javax.net.ssl.SSLPeerUnverifiedException:对等方未通过身份验证 [英] JDK 11. javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
问题描述
我正在将平台迁移到JDK 11,其中一种服务在调用graph.facebook.com API时出现以下问题:
I'm migrating our platform to JDK 11, and one of the services has the following issue when calling to graph.facebook.com API:
org.springframework.web.client.ResourceAccessException:" https://graph.facebook.com/v3.1/xxxxx/adaccounts ":对等方未通过身份验证;嵌套的异常是javax.net.ssl.SSLPeerUnverifiedException:对等方未通过身份验证... 原因:javax.net.ssl.SSLPeerUnverifiedException:对等方未通过身份验证
org.springframework.web.client.ResourceAccessException: I/O error on GET request for "https://graph.facebook.com/v3.1/xxxxx/adaccounts": peer not authenticated; nested exception is javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated... Caused by: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
我已经在计算机上检查了ca-certs,一切看起来都很好:
I've checked ca-certs on the machine, everything looks fine:
ca-certificates已经是最新版本(20180409). 0已升级,0已新安装,0已删除和0未升级.
ca-certificates is already the newest version (20180409). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
推荐答案
您可以尝试将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.
这篇关于JDK 11. javax.net.ssl.SSLPeerUnverifiedException:对等方未通过身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!