Fix not to use default SocketFactory. It doesn't work if there are more than two private keys in the keystore file.