Previous Topic: Edit the JBoss run.bat File

Next Topic: Set Secure Server Properties


Edit the server.xml File

Edit the server.xml file by activating and inactivating sections and adding properties for SSL.

Follow these steps:

  1. Stop JBoss if it is running.
  2. Locate the server.xml file in the following sar file and open it for editing:
    gm_directory\Server\eurekify-jboss\server\eurekify\deploy\jboss-web.sar
    
  3. Locate the SSL <Connector port> tag in the following section:
    <!--
    <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
               maxThreads="150" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS" /> -->
    
  4. Remove the surrounding comment marks ("<!--" and "-->").

    You can now edit this tag.

  5. Add the following properties to the <Connector port> tag:
    keystoreFile="${jboss.server.home.dir}/conf/server.keystore" keystorePass="newPassword"
    
    keystoreFile

    Specifies the full pathname of the keystore file.

    keystorePass

    Specifies the keystore password.

    The <Connector port> tag now appears as follows:

    <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
    	maxThreads="150" scheme="https" secure="true"
    	clientAuth="false" sslProtocol="TLS"
    
    	keystoreFile="${jboss.server.home.dir}/conf/server.keystore"
    	keystorePass="newPassword" /> 
    
  6. Block default port 8080.
    1. Locate the following section
      <Connector protocol="HTTP/1.1" URIEncoding="UTF-8" port="8080" address=${jboss.bind.address}"
      
      connectionTimeout="20000" redirectPort="8443"  />
      
    2. Add the surrounding comment marks ("<!--" and "-->").

    Default port 8080 is blocked.

  7. Save and close the server.xml file.
  8. Start JBoss again.

    The server.xml file is edited.