如何在wildfly 8.2.0服务器中配置ssl?
我想要我的Web应用程序的安全连接。 所以,我想为我的wildfly 8.2.0服务器配置ssl。 我在standalone / configuration文件夹中创建并存储了.keystore文件。
$ keytool -genkey -alias foo -keyalg RSA -keystore foo.keystore -validity 10950 Enter keystore password: secret
必须添加:
在standalone.xml文件中,但有标记:
当我用上面指定的标签替换它时会出现错误:
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[288,106] Message: Unexpected element '{urn:jboss:domain:web:1.1}subsystem'
我为wildfly 8.2.0配置了ssl。
第1步:创建密钥库
cd $WILDFLY_HOME/standalone/configuration keytool -genkey -alias localhost -keyalg RSA -keystore keystore.jks -keysize 4096
第2步:编辑configuration / standalone.xml
** **
步骤3:通过编辑standalone.xml为https添加监听器
** **
现在ssl已配置,我的网站是安全的。