I have been using SSL sockets for a messaging system recently.
I finally started using a CA issued certificate. I imported it into my keystore, set the keystore property
Surprisingly, this can mean that the server couldn't find a private key/certificate pair. In this case it is because you haven't specified the keystore password via javax.net.ssl.keyStorePassword.
javax.net.ssl.keyStorePassword