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.
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 certreq.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> |
Edit the server.xml configuration file located in the <LS_INSTALL>/app/tomcat/conf/ directory to configure Tomcat. Locate the <Connector port="8443" . . .> node in the Catalina service (<Service name="Catalina">) and modify the nested <Certificate ...> node:
<Connector port="8443" protocol="org.apache.coyote.http11.Http11Nio2Protocol" SSLEnabled="true"
maxThreads="150" scheme="https" maxHttpHeaderSize="16384" secure="true" clientAuth="false"
compressableMimeType="text/html,text/xml,text/plain,application/json,text/css,application/javascript,text/javascript"
compression="on" compressionMinSize="128" sslProtocol="TLS" >
<SSLHostConfig sslProtocol="TLS" >
<Certificate certificateKeystoreFile="conf/.keystore" certificateKeyAlias="$ALIAS" certificateKeystorePassword="$PASSWORD"/>
<Cipher ciphers="TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA256,TLS_RSA_WITH_AES_256_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256"/>
</SSLHostConfig>
</Connector> |
Copy the keystore.jks file to the tomcat/conf directory and rename the file to .keystore. $PASSWORD is the user password specified when the keystore was created. $ALIAS is the alias assigned to the desired certificate in the keystore.
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.