View Source

h1. Enable https access to server
QuickBuild server by default runs on top of http protocol. Https can be enabled to encrypt passwords and data send to the server. Please follow below procedure to enable https access to QuickBuild server:
# Run keytool command to generate a keystore. Assume Sun JDK is installed at _/path/to/jdk_ and you want to generate keystore to _/path/to/keystore_. The command will be:
{code}
/path/to/jdk/bin/keytool -keystore /path/to/keystore -alias QuickBuild -genkey -keyalg RSA
{code}
You will be prompted for some settings including the keystore password and private key password.
# Change to directory _<QuickBuild server install dir>/bin_ and run command _config.(bat|sh)_. In the displayed config window, enable https access, specify https port, and specify keytool path and passwords provided in step 1.

Once https is enabled, you may access QuickBuild web interface and RESTful API through https protocol. And QuickBuild agents can be configured to connect to QuickBuild server through https protocol by editing the file _<agent install dir>/conf/node.properties_ and changing the _serverUrl_ accordingly.

We suggest to enable http and https access to QuickBuild server at the same time. While browser and RESTful API access are forced to go through https protocol with proper firewall settings, all agents can still talk to server via http protocol, which will perform bettern than https protocol considering the short and frequent interactions between agents and server.

If connections between server and certain agents go through insecure networks, you will need to configure those agents to connect to server via https protocol, and further, you may configure those agents to run themselves on https protocol to protect incoming connections from server and other agents, as introduced in next section.

h1. Enable https access to agents
Agent can be configured to run on top of https port so that other nodes in the grid are forced to connect to it securely. To do this:
# Run keytool command to generate a keystore. Assume Sun JDK is installed at _/path/to/jdk_ and you want to generate keystore to _/path/to/keystore_. The command will be:
{code}
/path/to/jdk/bin/keytool -keystore /path/to/keystore -alias QuickBuild -genkey -keyalg RSA
{code}
You will be prompted for some settings including the keystore password and private key password.
# Change to directory _<QuickBuild agent install dir>/bin_ and run command _config.(bat|sh)_. In the displayed config window, enable https access, and specify keytool path and passwords provided in step 1.