Configuring SSL for the Tomcat server
To provide communication security among applications, configure SSL for the Apache Tomcat server. If you enabled SSL as part of installation, SSL is already configured. Otherwise, follow this procedure.
Before you begin
Perform the Smart IT and BMC Digital Workplace installation.
Video demonstration: Configuring SSL for BMC Digital Workplace and Smart IT
To configure SSL for the Tomcat server
For more information about creating a certificate, see http://tomcat.apache.org/tomcat-8.0-doc/ssl-howto.html.
- Generate a self-signed certificate by running the following command:
%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA -keystore \path\to\my\keystore
A .keystore file is generated in %USERPROFILE% (Windows) or $HOME (Linux), and the file is protected with a password. - Place the generated file in the CATALINA_BASE/external-conf folder.
Update CATALINA_BASE/conf/server.xml to enable HTTPS Connector:
<Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
keystoreFile="${catalina.base}/external-conf/.keystore" keystorePass="Bmcmyit1"
clientAuth="false" sslProtocol="TLS"
sslEnabledProtocols="TLSv1.2,TLSv1.1,SSLv2Hello"/>A sample server.xml file can be found in the bsmapps\main\server\external\tomcat\conf folder.
- Restart the Tomcat server.
- To check the configuration, open https://localhost:8443/ux/rest/version in a browser.
Upon initial access, a warning about an non-trusted certificate appears (because this is a self-signed certificate, not generated by a trusted CA). - Click OK to continue.
Where to go from here
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*