Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to avoid certificate prompt when using jboss-cli with a https connection

Tags:

wildfly

When I run a command with jboss-cli.sh against a Wildfly server that has HTTPS configured on the management interface, I get the message:

Accept certificate? [N]o, [T]emporarily, [P]ermanently

How can I avoid this?

like image 953
Phyxx Avatar asked Sep 18 '25 03:09

Phyxx


1 Answers

The solution is to set the javax.net.ssl.trustStore system property to the self signed certificate:

./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"
like image 107
Phyxx Avatar answered Sep 19 '25 21:09

Phyxx



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!