How do I avoid getting “No peer certificate” error when connecting to this HTTPS site on Android?

前端 未结 3 1062
遇见更好的自我
遇见更好的自我 2020-12-10 07:55

I am developing an Android application which needs to access QuickPay\'s service (\"https://secure.quickpay.dk/form\") through an Http-client. But I keep getting errors whe

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-10 08:11

    This is very mysterious. The only way an HTTPS/SSL server can avoid sending a certificate is if both sides agree to operate the SSL connection in reverse, where the server is the SSL client and the client is the SSL server, so the certificate travels in the other direction. But I can't see anything in your code that enables that mode, and it would have to be enabled at the other end too. And you would have to be providing a certificate yourself from your keystore ... Very strange.

提交回复
热议问题