why doesn't java send the client certificate during SSL handshake?

前端 未结 4 1820
长情又很酷
长情又很酷 2020-11-22 12:15

I\'m trying to connect to a secure webservice.

I was getting a handshake failure even though my keystore and truststore have been set correctly.

After severa

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-22 12:49

    As an add here, you can use %> openssl s_client -connect host.example.com:443 and see the dump and check that all the main cert is valid against the client. You are looking for this at the bottom of the output. Verify return code: 0 (ok)

    If you add -showcerts it will dump all the info of the keychain that was sent along with the host certificate, which is what you loaded into your keychain.

提交回复
热议问题