开发者社区 问答 正文

java调用https接口时证书认证问题?报错

在调用对方接口时候需要报错javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure,网上说jar问题替换后仍然不行,jdk1.7.代码如图

证书已经导入jdk cacerts,各种方式尝试过仍然是这个错,求大神解决,,急急急急急急,在线等

展开
收起
爱吃鱼的程序员 2020-06-08 11:34:03 1354 分享 版权
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    http://happyqing.iteye.com/blog/2266763

    https://stackoverflow.com/questions/15544116/sslhandshakeexception-received-fatal-alert-handshake-failure-when-setting-ciph

    https://stackoverflow.com/questions/32208244/sslhandshakeexception-received-fatal-alert-handshake-failure-after-java-6-8

    如果为了省事,可以考虑用EasyOkHttp

    2020-06-08 11:34:15
    赞同 展开评论