title: How to disable common name check in SSLContext in java?
body: <p>I am using <code>SSLContext</code> so set up Jersey client, and need to disable the common name check in order to avoid unnecessary issues. However, I can find no documentation as to how we can do it correctly. So is the common name check disabled by default in <code>SSLContext</code> (assuming using TLS) or do we need to explicitly disable it? If so, how? Thanks.</p>