[java] CertificateException: No name matching ssl.someUrl.de found

The server name should be same as the first/last name which you give while create a certificate