Webmin with LetsEncrypt

If you’re using Webmin, you probably noticed that Webmin (by default) uses self signed certificate for secure access

Also, if you already have valid Let’s Encrypt certificate which is automatically renewed, you can easily use the same cert for you Webmin

Open Webmin config file

nano /etc/webmin/miniserv.conf

check the default port and change it (if you want/like)

port=10000

be sure that line

ssl=1

exists.

Remove the next line

keyfile=/etc/webmin/miniserv.pem

and replace it with

keyfile=/etc/letsencrypt/live/SUBDOMAIN.YOURDOMAIN.TLD/privkey.pem
certfile=/etc/letsencrypt/live/SUBDOMAIN.YOURDOMAIN.TLD/cert.pem
extracas=/etc/letsencrypt/live/SUBDOMAIN.YOURDOMAIN.TLD/chain.pem

Save the changes and restart Webmin

service webmin restart

Leave a Reply

Your email address will not be published. Required fields are marked *