Now that SSLSocketFactory is deprecated on Android, what would be the best way to handle Client Certificate Authentication?

后端 未结 3 1833
走了就别回头了
走了就别回头了 2020-12-24 03:09

I am working on an Android app that requires Client Certificate Authentication (with PKCS 12 files). Following the deprecation of all that\'s apache.http.*, we

3条回答
  •  有刺的猬
    2020-12-24 04:09

    Apparently, there are two SSLSocketFactory classes. HttpClient has its own one, and that is deprecated along with the rest of HttpClient. However, everybody else will be using the more conventional javax.net.ssl edition of SSLSocketFactory, which is not deprecated (thank $DEITY).

提交回复
热议问题