Tools
Apply an SSL certificate to the Web Help Desk Virtual Appliance Management site
This article describes how to apply an SSL certificate to a Web Help Desk virtual appliance with an embedded virtual appliance management interface running on port 5480.
First published date
Last published date
Overview
Complete the steps in this article to apply an SSL certificate to the Web Help Desk virtual appliance (VA). This procedure applies to a SolarWinds Web Help Desk VA with an embedded virtual appliance management interface (VAMI) running on port 5480.
Access the VAMI site at https://[VA_HOST]:5480.
Product section
Resolution
Self-signed SSL Certificate
- SSH to the VA as user admin.
-
Switch to user root:
sudo su -
-
Create a backup folder and switch to that folder.
mkdir VAMI_BAK cd VAMI_BAK
-
Create a backup of the current self-generated certificates and OpenSSL configuration.
cp /opt/vmware/etc/sfcb/*.pem ./ cp /opt/vmware/etc/ssl/openssl.conf ./
-
Create a work directory for the generated self-signed certificates.
mkdir WORK
-
Switch to the work directory.
cd WORK
- Configure OpenSSL to put in the SSL Certificate details:
-
vi /opt/vmware/etc/ssl/openssl.conf
- Press A to enter edit mode
- Modify the following lines:
commonName=organizationName=organizationalUnitName=countryName=
- Save the file by pressing Esc, then :wq!
- Press Enter.
-
-
Run the
genSslCert.shscript./opt/vmware/share/sfcb/genSslCert.sh
-
Copy and overwrite the resulting files.
cp *.pem /opt/vmware/etc/sfcb/ -Rf cat file.pem server.pem > /opt/vmware/etc/lighttpd/server.pem
-
Restart the VAMI services:
/etc/init.d/vami-sfcb restart /etc/init.d/vami-lighttp restart
Signed SSL Certificate
If you configured a valid certificate for the Web Help Desk VA, add the certificate to the VA management site located at https://[VA_HOST]:5480.
-
Set the environment variables.
export JAVA_HOME=/usr/local/webhelpdesk/bin/jre export PATH=$JAVA_HOME/bin:${PATH} -
Extract the keypair from the keystore.jks file to a PFX file.
keytool -importkeystore -srckeystore /usr/local/webhelpdesk/conf/keystore.jks -srcstorepass changeit -srcalias tomcat -destkeystore keystore.pfx -deststoretype PKCS12 -deststorepass changeit -destalias tomcat
-
Extract the key file and set the following passphrase:
openssl pkcs12 -in keystore.pfx -nocerts -out file_pass.pem
-
Enter
changeitfor the password. -
Set a passphrase.
-
Convert the key file to a non-passphrase protected key using the passphrase in the previous step.
openssl rsa -in file_pass.pem -out file.pem-
-
Extract the signed certificate from the PFX file. When prompted, enter
changeitfor the keystore password.openssl pkcs12 -in keystore.pfx -clcerts -nokeys -out server.pem
-
Create a keypair that works with lighttpd (the web server for the VA management console).
cat file.pem server.pem > /opt/vmware/etc/lighttpd/server.pem
-
Restart the lighttpd services.
/etc/init.d/vami-lighttp restart