Accept server's self-signed ssl certificate in Java client

后端 未结 12 1515
日久生厌
日久生厌 2020-11-22 00:04

It looks like a standard question, but I couldn\'t find clear directions anywhere.

I have java code trying to connect to a server with probably self-signed (or expir

12条回答
  •  一个人的身影
    2020-11-22 00:28

    This is not a solution to the complete problem but oracle has good detailed documentation on how to use this keytool. This explains how to

    1. use keytool.
    2. generate certs/self signed certs using keytool.
    3. import generated certs to java clients.

    https://docs.oracle.com/cd/E54932_01/doc.705/e54936/cssg_create_ssl_cert.htm#CSVSG178

提交回复
热议问题