I have/inherited a maven project that's based on JERSEY JAX-RS. I'm having and issue with disabling CN checking so that I can connect to a repository outside my control. I have seen this similar issue and tried -Djsse.enableSNIExtension=false as I do have the same exact error; as well as adding a cxf.xml file as per specified on the cxf site but none of these work.
I think you can try to use HostNameVerifier and force verify method to return true as an alternative.
Thanks,
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.