V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
JinTianYi456
V2EX  ›  Java

SSLHandshakeException: Cannot verify ECDH ServerKeyExchange signature

  •  
  •   JinTianYi456 · 261 天前 · 804 次点击
    这是一个创建于 261 天前的主题,其中的信息可能已经有所发展或是发生改变。

    访问的域名是 cloudauth.aliyuncs.com

    应用启动后开始可以请求到,一会后就一直这错误

    com.aliyun.tea.TeaUnretryableException: Cannot verify ECDH ServerKeyExchange signature
    	at com.aliyun.teaopenapi.Client.doRequest(Client.java:865)
    	at com.aliyun.teaopenapi.Client.callApi(Client.java:1022)
    	at com.aliyun.cloudauth20190307.Client.initFaceVerifyWithOptions(Client.java:893)
    	at com.aliyun.cloudauth20190307.Client.initFaceVerify(Client.java:898)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    	at java.lang.Thread.run(Thread.java:748)
    Caused by: com.aliyun.tea.TeaRetryableException: Cannot verify ECDH ServerKeyExchange signature
    	at com.aliyun.tea.Tea.doAction(Tea.java:70)
    	at com.aliyun.tea.Tea.doAction(Tea.java:82)
    	at com.aliyun.teaopenapi.Client.doRequest(Client.java:784)
    	... 48 common frames omitted
    Caused by: javax.net.ssl.SSLHandshakeException: Cannot verify ECDH ServerKeyExchange signature
    	at sun.security.ssl.Alert.createSSLException(Alert.java:131)
    	at sun.security.ssl.TransportContext.fatal(TransportContext.java:324)
    	at sun.security.ssl.TransportContext.fatal(TransportContext.java:267)
    	at sun.security.ssl.ECDHServerKeyExchange$ECDHServerKeyExchangeMessage.<init>(ECDHServerKeyExchange.java:325)
    	at sun.security.ssl.ECDHServerKeyExchange$ECDHServerKeyExchangeConsumer.consume(ECDHServerKeyExchange.java:527)
    	at sun.security.ssl.ServerKeyExchange$ServerKeyExchangeConsumer.consume(ServerKeyExchange.java:111)
    	at sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:377)
    	at sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:444)
    	at sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:422)
    	at sun.security.ssl.TransportContext.dispatch(TransportContext.java:182)
    	at sun.security.ssl.SSLTransport.decode(SSLTransport.java:149)
    	at sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1143)
    	at sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1054)
    	at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:394)
    	at okhttp3.internal.connection.RealConnection.connectTls(RealConnection.java:320)
    	at okhttp3.internal.connection.RealConnection.establishProtocol(RealConnection.java:284)
    	at okhttp3.internal.connection.RealConnection.connect(RealConnection.java:169)
    	at okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:258)
    	at okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:135)
    	at okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:114)
    	at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
    	at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
    	at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    	at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:127)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
    	at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:257)
    	at okhttp3.RealCall.execute(RealCall.java:93)
    	at com.aliyun.tea.Tea.doAction(Tea.java:67)
    	... 50 common frames omitted
    Caused by: java.security.SignatureException: Could not verify signature
    	at sun.security.ec.ECDSASignature.engineVerify(ECDSASignature.java:413)
    	at java.security.Signature$Delegate.engineVerify(Signature.java:1394)
    	at java.security.Signature.verify(Signature.java:771)
    	at sun.security.ssl.ECDHServerKeyExchange$ECDHServerKeyExchangeMessage.<init>(ECDHServerKeyExchange.java:320)
    	... 83 common frames omitted
    Caused by: java.security.InvalidAlgorithmParameterException: null
    	at sun.security.ec.ECDSASignature.verifySignedDigest(Native Method)
    	at sun.security.ec.ECDSASignature.engineVerify(ECDSASignature.java:408)
    	... 86 common frames omitted
    
    第 1 条附言  ·  261 天前
    • okhttp-3.12.13.jar
    • OS: Alpine 3.9.4
    • openjdk version "1.8.0_275"
    第 2 条附言  ·  261 天前
    2 条回复    2024-03-13 22:04:58 +08:00
    JinTianYi456
        2
    JinTianYi456  
    OP
       261 天前
    @JinTianYi456 #1 tea-util-0.2.21.jar
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1194 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 18:34 · PVG 02:34 · LAX 10:34 · JFK 13:34
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.