accepting HTTPS connections with self-signed certificates

前端 未结 13 2105
小蘑菇
小蘑菇 2020-11-22 04:20

I\'m trying to make HTTPS connections, using HttpClient lib, but the problem is that, since the certificate isn\'t signed by a recognized Certificate Authority

13条回答
  •  后悔当初
    2020-11-22 05:10

    Here's how you can add additional certificates to your KeyStore to avoid this problem: Trusting all certificates using HttpClient over HTTPS

    It won't prompt the user like you ask, but it will make it less likely that the user will run into a "Not trusted server certificate" error.

提交回复
热议问题