I use SSL to communicate between two components written in Java. I can\'t use a CA, so I have to self-sign everything. Unfortunately, this means that when I try to handshake, I
Why would you need to do this, you are not validating that the client is who they say they are you are only using the certs to encrypt the comms, so a custom trust manager that allows all certs is all you need. What you are asking is possible and from memory also involves a custom trust manager to validate the certificates and store them in the keystore. I can't remember the details, but at least you know it is possible to do it.