Okhttp issue using Retrofit in java

huangapple go评论81阅读模式
英文:

Okhttp issue using Retrofit in java

问题

I/okhttp.OkHttpClient: <-- HTTP失败:javax.net.ssl.SSLPeerUnverifiedException:未经验证的主机名ttslive.com:
证书:sha256/i253ekxmSHEVN5aD4LQN6FPy53jbfY0aasjzLgzzYgc=
I/okhttp.OkHttpClient: DN:CN=imfitow.com
subjectAltNames:[imfitow.com]

英文:

I/okhttp.OkHttpClient: <-- HTTP FAILED: javax.net.ssl.SSLPeerUnverifiedException: Hostname ttslive.com not verified:
certificate: sha256/i253ekxmSHEVN5aD4LQN6FPy53jbfY0aasjzLgzzYgc=
I/okhttp.OkHttpClient: DN: CN=imfitow.com
subjectAltNames: [imfitow.com]

答案1

得分: 0

请将您的目标URL设置为 httphttps,然后重试。

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

英文:

Try again by setting your destination URL to http or https.

Also check that your destination URL supports SSL.

答案2

得分: 0

证书正在为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个月)
CA: false

CN: 	Lets Encrypt Authority X3
Pin:	sha256/60b87575447dcba2a36b7d11ac09fb24a9db406fee12d2cc90180517616e8a18
SAN: 	&lt;N/A&gt;
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个月)
CA: true Max Intermediate: 0

CN: 	DST Root CA X3 (由本地受信任的根证书签名)
Pin:	sha256/563b3caf8cfef34c2335caf560a7a95906e8488462eb75ac59784830df9e5b2b
SAN: 	&lt;N/A&gt;
Key Usage: KeyCertSign, CRLSign
Valid: 	2000-09-30T21:12:19Z 到 2021-09-30T14:01:15Z (11个月)
CA: true
英文:

The certificate being served for ttslive.com was for a different domain, imfitow.com, hence the failure. It has subsequently been fixed so likely your request will succeed now.

$ ./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: 	&lt;N/A&gt;
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: 	&lt;N/A&gt;
Key Usage: KeyCertSign, CRLSign
Valid: 	2000-09-30T21:12:19Z..2021-09-30T14:01:15Z (11 months)
CA: true

huangapple
  • 本文由 发表于 2020年10月26日 14:37:50
  • 转载请务必保留本文链接:https://go.coder-hub.com/64532465.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定