当我在管理界面上配置了HTTPS的Wildfly服务器上使用jboss-cli.sh运行命令时,出现以下消息:
Accept certificate? [N]o, [T]emporarily, [P]ermanently
如何避免这种情况?
解决方案是将javax.net.ssl.trustStore
系统属性设置为自签名证书:
./jboss-cli.sh -Djavax.net.ssl.trustStore=/opt/wildfly/domain/configuration/https.store --user=admin --password=password --connect --controller=https-remoting://10.0.0.1:9990 -c "deploy /tmp/hawtio.war --all-server-groups"