fixed java.security.cert.CertificateException: No name matching bug