Android SSL - No Peer Certificate

前端 未结 10 713
鱼传尺愫
鱼传尺愫 2020-12-05 03:30

Whenever this code runs, I get a \'No Peer Certificate\' error.

SSL certificate is valid, bought from Namecheap (PositiveSSL). It has the CA crt before it, and opens

10条回答
  •  感情败类
    2020-12-05 03:52

    I have just recently gone through this problem. It wasn't the chain order that was the problem, but I have had that before.

    What was the issue was that the server only accepts TLS1.2 socket connections. android 19 and lower default socket connection is TLS1 SSLSocket Docs

    With the help of Enable TLS 1.2 in Android 4.4 I was able to get this to work. The question description worked for me. But please ensure that you do have the answer code in you application

提交回复
热议问题