cloud.tencent.com
is used as an example.jboss-7.1.1
version is used as an example.443
on the JBoss server so that HTTPS can be enabled after the certificate is installed. For more information, see How Do I Enable Port 443 for a VM?.Name | Description |
Server IP address | IP address of the server, which is used to connect the PC to the server. |
Username | The username used to log in to the server. |
Password | The password used to log in to the server. |
.jks
certificate./usr/local
directory./usr/local
directory.cloud.tencent.com
certificate file package to the local directory.
After decompression, you can get the certificate file of the corresponding type, which includes the cloud.tencent.com_jks
folder.cloud.tencent.com_jks
cloud.tencent.com.jks
: keystore filekeystorePass.txt
: password file (if you have set a private key password, this file will not be generated)/usr/local/jboss-7.1.1/standalone/configuration
directory, run the mkdir cert
command to create the cert
folder.cloud.tencent.com.jks
from the local directory to the cert
folder./usr/local/jboss-7.1.1/standalone/configuration
directory, change the port configuration and add certificate configuration in the standalone.xml
file.<interfaces><interface name="management"><inet-address value="${jboss.bind.address.management:127.0.0.1}"/></interface><!--Enable remote access--><interface name="public"><inet-address value="${jboss.bind.address:0.0.0.0}"/></interface><interface name="unsecure"><inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/></interface></interfaces><socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}"><socket-binding name="management-native" interface="management" port="${jboss.management.native.port:9999}"/><socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/><socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9443}"/><socket-binding name="ajp" port="8009"/><!--Change the HTTP port--><socket-binding name="http" port="80"/><!--Change the HTTPS port--><socket-binding name="https" port="443"/><socket-binding name="osgi-http" interface="management" port="8090"/><socket-binding name="remoting" port="4447"/><socket-binding name="txn-recovery-environment" port="4712"/><socket-binding name="txn-status-manager" port="4713"/><outbound-socket-binding name="mail-smtp"><remote-destination host="localhost" port="25"/></outbound-socket-binding></socket-binding-group>
${jboss.bind.address:127.0.0.1}
to ${jboss.bind.address:0.0.0.0}
.<subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false"><connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/><connector name="https" protocol="HTTP/1.1" scheme="https" socket-binding="https" secure="true"><ssl name="https" password="******" certificate-key-file="../standalone/configuration/cert/cloud.tencent.com.jks" cipher-suite="TLS_RSA_WITH_AES_256_CBC_SHA,TLS_DHE_RSA_WITH_AES_256_CBC_SHA,TLS_DHE_DSS_WITH_AES_128_CBC_SHA,SSL_RSA_WITH_3DES_EDE_CBC_SHA,SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA,SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA" protocol="TLSv1,TLSv1.1,TLSv1.2"/></connector><virtual-server name="default-host" enable-welcome-root="true"><alias name="localhost"/><alias name="example.com"/></virtual-server></subsystem>
/usr/local/jboss-7.1.1/bin
directory and run the ./standalone.sh
command to start the JBoss server.
https://cloud.tencent.com
.
Was this page helpful?