是否有人可以放下如何配置standlone.xml文件以在jboss 7.1.1管理控制台中启用SSH。
我尝试使用以下链接,但它不起作用。
Accessing JBoss Management Console over Https in JBossAS 7.1.2
提前致谢。
答案 0 :(得分:1)
keytool -genkeypair -alias serverkey -keyalg RSA -keysize 2048 -validity 7360 -keystore server.keystore -keypass mypassword -storepass mypassword -dname "cn=Server Administrator,o=Acme,c=GB"
将server.keystore复制到服务器的配置文件夹
接下来,在ManagementRealm配置中包含一个服务器标识定义,该定义引用我们的密钥库,如下所示:
<security-realm name="ManagementRealm"> <authentication> <local default-user="$local"/> <properties path="mgmt-users.properties" relative-to="jboss.server.config.dir"/> </authentication> <authorization map-groups-to-roles="false"> <properties path="mgmt-groups.properties" relative-to="jboss.server.config.dir"/> </authorization> <server-identities> <ssl> <keystore path="server.keystore" relative-to="jboss.server.config.dir" keystore-password="mypassword" alias="serverkey"/> </ssl> </server-identities> </security-realm>
<management-interfaces> <http-interface security-realm="ManagementRealm" http-upgrade-enabled="true"> <!-- <socket-binding http="management-http"/> --> <socket-binding https="management-https"/> </http-interface> </management-interfaces>
<socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9993}"/>