java 验证客户端证书,如何验证是否将Java的客户端证书的相互验证方案

I setup 2way ssl with Camel and CXF using the http conduit element etc.

I make a webservice call to an external party. All certificates are correctly installed (incoming traffic is succesfull, this is configured in Tomcat). After this post about secure renegotiation I finally received a response from the other party: HTTP response 403, forbidden.

I've been debugging with javax.net.debug=all and this excellent explanation.

I can see in the logging that a secure connection is succesfully setup:

*** Finished

verify_data: { 141, 25, 184, 254, 93, 9, 10, 48, 135, 161, 213, 57 }

***

%% Cached client session: [Session-2, SSL_RSA_WITH_RC4_128_MD5]

and no other errors or warnings. How can I verify if my client certificate is sent to the server? (I can't use Wireshark but I have the javax.net.debug logging)

解决方案

I found the answer in this post and by comparing the javax.net.debug output to the client auth example.

I don't see CertificateVerify in my log, only the one way ssl steps, so there is no client certificate sent.

The cause was that I copied the CXF http conduit example from their website, but somehow the ciphersuite filter it contained was too strict.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值