【问题标题】:Okhttp issue using Retrofit in java在 Java 中使用 Retrofit 的 Okhttp 问题
【发布时间】:2021-02-08 10:26:19
【问题描述】:

I/okhttp.OkHttpClient:

【问题讨论】:

    标签: java android retrofit okhttp


    【解决方案1】:

    将您的目标网址设置为httphttps,再试一次。

    还要检查您的目标网址是否支持 SSL。

    【讨论】:

      【解决方案2】:

      为 ttslive.com 提供的证书用于不同的域 imfitow.com,因此失败。它随后已得到修复,因此您的请求现在很可能会成功。

      $ ./cft --host ttslive.com 
      CN:     www.ttslive.com
      Pin:    sha256/6883961b59af6eb8445adbedf0182885be19f6d710227308ec3f3924c1d6c6d1
      SAN:    ttslive.com, www.ttslive.com
      Key Usage: DigitalSignature, KeyEncipherment
      Ext Key Usage: serverAuth, clientAuth
      Authority Info Access:
          ocsp: http://ocsp.int-x3.letsencrypt.org
          caIssuers: http://cert.int-x3.letsencrypt.org/
      Valid:  2020-10-10T07:11:46Z..2021-01-08T07:11:46Z (2 months)
      CA: false
      
      CN:     Lets Encrypt Authority X3
      Pin:    sha256/60b87575447dcba2a36b7d11ac09fb24a9db406fee12d2cc90180517616e8a18
      SAN:    <N/A>
      Key Usage: DigitalSignature, KeyCertSign, CRLSign
      Authority Info Access:
          ocsp: http://isrg.trustid.ocsp.identrust.com
          caIssuers: http://apps.identrust.com/roots/dstrootcax3.p7c
      Valid:  2016-03-17T16:40:46Z..2021-03-17T16:40:46Z (4 months)
      CA: true Max Intermediate: 0
      
      CN:     DST Root CA X3 (signed by locally-trusted root)
      Pin:    sha256/563b3caf8cfef34c2335caf560a7a95906e8488462eb75ac59784830df9e5b2b
      SAN:    <N/A>
      Key Usage: KeyCertSign, CRLSign
      Valid:  2000-09-30T21:12:19Z..2021-09-30T14:01:15Z (11 months)
      CA: true
      

      【讨论】:

        猜你喜欢
        • 2015-04-03
        • 2014-03-01
        • 2016-04-24
        • 2015-05-09
        • 2014-10-25
        • 2018-09-22
        • 1970-01-01
        • 1970-01-01
        • 2015-08-26
        相关资源
        最近更新 更多