How do I eliminate exceptions caused by Certificate mismatches with the server host name?
The ATNA profile says nothing about whether the DNS name of the host must match the name specified in the certificate. It assumes that posession of the certificate with the private key is sufficient to protect the connection. By default, the Java HttpsURLConnection verifies the DNS name of the host against that of the certificate. If you want to disable this, the easiest way is to add the following lines of code somewhere in the initialization of your application.
Related Questions
- Yes, youll need to get a digital certificate from a Certificate Authority such as VeriSign, Thawte, or Equifax Secure. Should I worry that my host is a reseller?
- How do I eliminate exceptions caused by Certificate mismatches with the server host name?
- How does it help eliminate food odors caused by bacteria?