Both the HTTP and HTTPS protocol are supported for License Server and are enabled by default. We recommend that you connect via HTTPS to ensure secure, encrypted communication between License Server and the Parasoft products.
HTTPS requires a signed SSL certificate. License Server ships with a self-signed SSL certificate, which is used by default. Alternatively, you can use a custom self-signed or commercially signed certificate; see Enabling Custom SSL.
In this section:
The default Parasoft self-signed SSL certificate is shipped with License Server in a .keystore file. To use a custom SSL certificate:
LS_INSTALL>/app/tomcat/conf
directory.If you do not already have a .keystore file available, you can generate one by executing the following command:
keytool -genkey -keyalg RSA -alias selfsigned -keystore keystore.jks -storepass password -keysize 2048 |
This will create a keystore containing a private key and a self-signed certificate named keystore.jks with the password password
. The -keysize
setting is optional. The default keysize is 1024
.
selfsigned
.You can obtain commercial certificates from a certificate authority (CA), such as verisign.com or thawte.com by submitting a certificate signing request (CSR) to the CA.
Use the following command to create the CSR:
keytool -certreq -alias selfsigned -keystore keystore.jks -file cer- treq.csr |
selfsigned
.The CA will return a Root or Chain certificate and the newly signed certificate, both of which must be imported into your keystone. Use the following command to import your root certificate:
keytool -import -alias root -keystore keystore.jks -trustcacerts - file <filename_of_the_chain_certificate> |
Use the following command to import the new certificate:
keytool -import -alias dtp -keystore keystore.jks -file <your_certificate_filename> |
Change the protocol in the <LS_INSTALL>/data/conf/PSTSecConfig.xml
file to HTTP:
<pstsec-config> <remote-authentication> <enabled>false</enabled> <host>localhost</host> <port>8443</port> <protocol>http</protocol> </remote-authentication> </pstsec-config> |
Insure++ communicates with License Server over port 2002. All other Parasoft tools communicate with License Server over the standard HTTP/HTTPS ports. If you are not using License Server or are only using License Server with other Parasoft tools, you can disable port 2002 as a security best practice within your DTP infrastructure. The following instructions describe how to disable port 2002.
<LS_INSTALL>/app
directory.<LS_DATA_DIR>
/
LicenseServer/conf
directory.Add an <enabled>false</enabled>
element to the <Server>
element:
<?xml version="1.0" encoding="UTF-8"?> <Root> <Server> <enabled>false</enabled> <port>2002</port> <concurrent_connections_limit>100</concurrent_connections_limit> <start_deactivated>true</start_deactivated> </Server> ... </Root> |
<LS_INSTALL>/app
directory.Port 8005 is the default Tomcat shutdown port, but you can run into a port conflict on some Windows servers. To resolve this:
<LS_INSTALL>/app
directory as an administrator to stop License Server.<LSS_INSTALL>/app/tomcat/conf/
directory.<Server port="8005" shutdown="SHUTDOWN">
element and change the port value to a port that is not being used (for example, 8006).<LS_INSTALL>/app
directory as an administrator to restart License Server.