accepting HTTPS connections with self-signed certificates

前端 未结 13 2083
小蘑菇
小蘑菇 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.

    0 讨论(0)
提交回复
热议问题