docs: public static HostnameVerifier createIncorrectHostnameVerifier(
        final String requestHostname, final String certPrincipalName) {
  
      return new HostnameVerifier() {
  
        @Override
        public boolean verify(String hostname, SSLSession session) {
  
          try {
  
            String principalName = session.getPeerPrincipal().getName();
  
            if (hostname.equals(requestHostname) && principalName.equals(certPrincipalName))
              return true;
  
          } catch (SSLPeerUnverifiedException e) {
          }
  
          return HttpsURLConnection.getDefaultHostnameVerifier().verify(hostname, session);
        }
      };
    }