How to configure the Control-M EM Web Server to use SSL, so that Self Service, Batch Impact Manager (BIM) and Automation API can be reached over https?
|
This example walks you through creating a certificate signing request (CSR) to send to a certificate authority (CA) and installing the obtained certificate on the Control-M Web Server running on host example.bmc.com. 1. Generate a key pair. Make sure the alias is tomcat. This creates a keystore file named new_tomcat.jks that now holds a key pair (private/public). This file will be used for the certificate request and later will hold the certificates. Note that all configuration files mentioned below exist in the ctm_em/etc/emweb/tomcat/conf/ directory and all commands should be be run from that location. Run these commands:
cd ~/ctm_em/etc/emweb/tomcat/conf
keytool -genkey -alias tomcat -keyalg RSA -keystore new_tomcat.jks -keysize 2048
Enter keystore password:
Re-enter new password:
What is your first and last name?
[Unknown]: example.bmc.com
What is the name of your organizational unit?
[Unknown]: Control-M
What is the name of your organization?
[Unknown]: BMC Software Inc
What is the name of your City or Locality?
[Unknown]: Houston
What is the name of your State or Province?
[Unknown]: Texas
What is the two-letter country code for this unit?
[Unknown]: US
Is CN=example.adprod.bmc.com, OU=Control-M, O=BMC Software Inc, L=Houston, ST=Texas, C=US correct?
[no]: yes
Enter key password for <tomcat>
(RETURN if same as keystore password): PRESS ENTER - It's mandatory that the key's password and the keystore's password match
2. Create a csr (certificate sign request). This will create a .csr (certreq.csr) file. This file should be sent to a Certificate Authority (CA) for signing. Make sure to ask for a root chain certificate.
keytool -certreq -alias tomcat -file certreq.csr -keystore new_tomcat.jks
Enter keystore password:
cd ~/ctm_em/etc/emweb/tomcat/conf keytool -import -alias primary -trustcacerts -file "root.crt" -keystore new_tomcat.jks keytool -import -alias secondary -trustcacerts -file "secondary.crt" -keystore new_tomcat.jks keytool -import -alias tomcat -trustcacerts -file "cert.crt" -keystore new_tomcat.jks The -alias parameter must be set to tomcat for the new certificate for this server (third command). For the root or intermediate certificates, the alias can be any unique name of your choice (first two commands).
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" maxThreads="150" scheme="https" secure="true" clientAuth="false" sslProtocols="TLSv1, TLSv1.1, TLSv1.2" keystoreFile="conf/new_tomcat.jks" keystorePass="yournewpassword" />
|