Jboss配置SSL证书
路径
D:\P2CSSC\CSSCTest\p2-application\tools\wildfly10.1.0\standalone\configuration\standalone.xml
#转换JKS和PFX格式证书工具地址
https://www.myssl.cn/tools/merge-jks-cert.html
配置证书路径path="cert\jboss.jks"
配置证书密码keystore-password="123456789"
<security-realm name="ApplicationRealm">
<server-identities>
<ssl>
<keystore path="cert\jboss.jks" relative-to="jboss.server.config.dir" keystore-password="Qn3ji6FY6hdXKeY"/>
</ssl>
</server-identities>
<authentication>
<local default-user="$local" allowed-users="*" skip-group-loading="true"/>
<properties path="application-users.properties" relative-to="jboss.server.config.dir"/>
</authentication>
<authorization>
<properties path="application-roles.properties" relative-to="jboss.server.config.dir"/>
</authorization>
</security-realm>
security-realm="ApplicationRealm" <security-realm name="ApplicationRealm"> 这两个名称保持一致
<subsystem xmlns="urn:jboss:domain:undertow:3.1">
<buffer-cache name="default"/>
<server name="default-server">
<http-listener name="default" socket-binding="http" redirect-socket="https" enable-http2="true"/>
<https-listener name="https" socket-binding="https" security-realm="ApplicationRealm" enable-http2="true"/>
<host name="default-host" alias="localhost">
<location name="/" handler="welcome-content"/>
<filter-ref name="server-header"/>
<filter-ref name="x-powered-by-header"/>
</host>
</server>
<servlet-container name="default">
<jsp-config trim-spaces="true"/>
<websockets/>
</servlet-container>
<handlers>
<file name="welcome-content" path="${jboss.home.dir}/welcome-content"/>
</handlers>
<filters>
<response-header name="server-header" header-name="Server" header-value="WildFly/10"/>
<response-header name="x-powered-by-header" header-name="X-Powered-By" header-value="Undertow/1"/>
</filters>
</subsystem>