How to make 'simple SSL' thru Web Services?

后端 未结 5 407
栀梦
栀梦 2020-12-15 01:31

I know how to secure Web Services using certificates. that\'s my client code:

  SSLContext ssl = SSLContext.getInstance(\"SSLv3\");
  KeyManagerFactory kmf =         


        
5条回答
  •  -上瘾入骨i
    2020-12-15 02:09

    HTTPS in browsers works because there is a truststore containing SSL certificates on the client. In other words: There are certificates stored on the client side.

    If you want HTTPS without any certificate stored on the client side, I think you should have a look at this article, which explains how to turn off the default certificate validation on HTTPS connection.

提交回复
热议问题