在JBoss EAP 6.4中禁用主机名验证

时间:2019-03-09 09:10:58

标签: ssl jboss cxf hostname

我想设置我的开发环境以避免在https连接中验证主机名:我成功在cacerts中导入了che证书,但出现此错误

Caused by: java.io.IOException: The https URL hostname does not match the Common Name (CN) on the server certificate in the client's truststore.  Make sure server certificate is correct, or to disable this check (NOT recommended for production) set the CXF client TLS configuration property "disableCNCheck" to true.

我试图将此行添加到standalone.xml(在system-properties内部)

<property name="org.jboss.security.ignoreHttpsHost" value="true"/>

此系统属性已在JVM中正确设置(由System.getProperty看到),但我仍然遇到上述异常:在不编辑应用程序代码的情况下,如何避免主机名验证的方法是什么?

我不想使用disableCNCheck,因为这将是对级别代码的更改。

0 个答案:

没有答案
相关问题