Replace self-signed certificates in Kasm Workspaces
Overview
During installation, the system creates self-signed certificates used when connecting to the web UI. Administrators replace these with valid, trusted certificates for the domain Kasm is published on. An alternative is to place Kasm Server behind a self-managed reverse proxy such as NGINX or Caddy. For that configuration, see the reverse proxy documentation. This guide replaces the self-signed certificates with trusted certificates.
Prerequisites
- A working Kasm Workspaces deployment with
sudoaccess on each Web App role server. - A trusted certificate and key in PEM format. Acquiring certificates is outside the scope of this guide.
For multi-server installations, repeat these steps on each Web App role.
Replace the certificates
-
Stop the Kasm services:
sudo systemctl stop kasm -
Replace the
kasm_nginx.crtandkasm_nginx.keyfiles:sudo cp <your_cert> /opt/kasm/current/certs/kasm_nginx.crtsudo cp <your_key> /opt/kasm/current/certs/kasm_nginx.key -
Start the Kasm services:
sudo systemctl start kasm -
After 30 seconds, confirm that NGINX is running correctly:
sudo docker ps | grep kasm_proxy -
Confirm that the container has been running for more than 30 seconds.
Video tutorial
This video walks through installing an SSL certificate on a Kasm Workspaces instance using Let's Encrypt.