I am trying to setup a secure connection to a java run SSLServerSocket.
I have created my own root CA, and have signed the certificate that the Java SSLServerSocket usin
Technote 2232, "HTTPS Server Trust Evaluation", should have all the answers you need. There is documentation and several examples of how to evaluate server trust.