Hi,
This is a guide for how to secure OLS/LSWS webadmin console with a valid SSL cert (e.g. Let’s Encrypt cert of your website.)
-
verify the cert is working properly by access your site.
-
login to server SSH , navigate to “/etc/letsencrypt/live” , all Let’s Encrypt cert are stored there.
-
now go to the folder of domain you want to use to secure webadmin.
you will see 3 files
cert.pem, fullchain.pem and privkey.pem
[root@test ]# ls -l /etc/letsencrypt/live/example.me
Total 12
-rw-r--r-- 1 root root 1903 Mar 26 12:02 cert.pem
-rw-r--r-- 1 root root 3551 Mar 26 12:02 fullchain.pem
-rw------- 1 root root 1675 Mar 26 12:02 privkey.pem
- now navigate to “/usr/local/lsws/admin/conf” , you will see
webadmin.crt and webadmin.key
these are cert and key for webadmin https
we just need to replace the webadmin.key/crt with LE ones.
[root@test ]# cat /etc/letsencrypt/live/example.me/fullchain.pem > /usr/local/lsws/admin/conf/webadmin.crt
[root@test ]# cat /etc/letsencrypt/live/example.me/privkey.pem > /usr/local/lsws/admin/conf/webadmin.key
now restart it to make it effect.
systemctl restart lsws
access https://DOMAIN.COM:7080 you should now see it’s valid and secure.
![]()
thanks for the guide