Self-signed certificate and loopj for Android

前端 未结 6 565
太阳男子
太阳男子 2021-01-30 15:08

I\'m trying to use loopj for making async HTTP requests. Works great, except when I try to access https site with self-signed cert. I get

6条回答
  •  囚心锁ツ
    2021-01-30 16:01

    Don't NUKE all SSL certificates.. Trusting all certificates is a BAD PRACTICE!!!

    • Accept only your SSL certificate.

    Take a look at my solution. Some contents from this Gist can help your to figure how to do this.

    OBS.: I'm using Android Volley.

    https://gist.github.com/ivanlmj/f11fb50d35fa1f2b9698bfb06aedcbcd

提交回复
热议问题