Say I have two Java apps that I wrote: Ping.jar
and Pong.jar
and they get deployed and ran on two separate servers (Ping.jar
deploys to srv-01.myorg.com
and Pong.jar
deploys to srv-02.myorg.com
), and these two apps need to communicate with each other (2-way) via SSL. Let's also assume that each app has its own SSL Certificate.
- How do I, a Java programmer, code
Ping
andPong
to verify each other's SSL cert? Does each CA provide some kind of RESTful API that I can hit with, say,HttpClient
? Does Java have its own certificate-verifying API? Are there open source third party JARs or services I can use?
I was surprised by how little turned up when I searched for this online.