As of LiteSpeed Web Server v5.2, self-signed SSL certificates are automatically created for the Web Admin GUI.
The following instructions are useful if an older version of LSWS is being used, a different self-signed certificate is wanted, or a non-self-signed certificate is needed.
LSWS reads the following files for its WebAdmin SSL configuration:
/usr/local/lsws/admin/conf/cert/admin.crt
/usr/local/lsws/admin/conf/cert/admin.key
/usr/local/lsws/admin/conf/cert/admin.cabundle
This configuration can be changed at any time by replacing these files directly.
Make sure the files are owned by lsadm:lsadm
. This can be achieved by running the following command:
chown -R lsadm:lsadm /usr/local/lsws/admin/conf/cert/*
Perform a graceful restart after making any changes. The changes will be applied, and Web Admin GUI will begin using the newly-supplied certificate.
The following will work for all versions of LSWS via the Web Admin GUI.
adminListener
No
to Yes
. Then hit Save.</path/to/ssl/key_file>
</path/to/ssl/cert_file>
Yes
</path/to/ssl/ca_bundle>
lsadm
. If not, run chown lsadm:lsadm
on each file so that the Web Admin GUI can read these files.