cd /var/rem/etc/pki
sudo openssl req -nodes -newkey rsa:2048 -keyout <servername>-KeyFile.key -out <servername>.csr
e.g. CN=remoteexpert-serverA.mydomain.com
SAN=remote-expert.mydomain.com
where “remote-expert.mydomain.com” is the FQDN of the Content Switch VIP address for Remote Expert.
Note: before importing the Certs, decide and document passwords for the various keystores especially the password for file keystore.jks which location and password is configured the tomcat config file detailed below.
sudo openssl pkcs12 -export -out keystore.pkcs12 -in /home/<tacaccount>/<servername>.cer -inkey /var/rem/etc/pki/<servername>-KeyFile.key
sudo keytool -importkeystore -srckeystore keystore.pkcs12 -srcstoretype PKCS12 -destkeystore keystore.jks -deststoretype JKS
sudo vi /opt/cisco/server/tomcat/conf/server.xml
<Connector
port="8443" protocol="org.apache.coyote.http11.Http11Protocol"
maxThreads="2000"
acceptorThreadCount="2"
URIEncoding="UTF-8"
connectionTimeout="20000"
scheme="https" secure="true" SSLEnabled="true"
keystoreFile="/var/rem/etc/pki/<keystore-filename>.jks"
keystorePass="<enter-your-password-here>"
clientAuth="false" sslProtocol="TLS"
sslEnabledProtocols="TLSv1.2"
/>