Validating a certificate in java throws an exception - unable to find valid certificate path to requested target

后端 未结 3 1952
遥遥无期
遥遥无期 2020-12-05 09:09

I have a web app that requires a client to send it\'s certificate and the server has to validate the certificate(i.e see if the issuer is a valid issuer and present in the s

3条回答
  •  甜味超标
    2020-12-05 09:43

    i.e see if the issuer is a valid issuer and present in the server's truststore

    JSSE already does all that. You don't have to do any of this, except maybe verify that the peer certificate hasn't expired.

提交回复
热议问题