Making a HTTPS request using Android Volley

后端 未结 10 1769
庸人自扰
庸人自扰 2020-11-28 19:34

I am trying to make a https request using this code:

RequestQueue queue = Volley.newRequestQueue(getApplicationContext());
request = new Request

        
10条回答
  •  野性不改
    2020-11-28 19:57

    If anyone is using nginx and SSL certificates from letsencrypt, the solution is to simply use the certificate from file fullchain.pem instead of cert.pem:

    ssl_certificate     /.../fullchain.pem;
    

    This file includes the concatenation of your certificate and the CA's.

提交回复
热议问题