Written by , Updated on February 12, 2021

The default Webmin listen on port 10000 with self singed SSL certificate. You will see a security warning in web browser like certificate is not trusted. Many of the organization do not allow to use self singed certificates for several reasons.

Lets Encrypt is a free and open certificate authority by the non-profit Internet Security Research Group (ISRG). Its provides free ssl certificates for the domains valid for 90 days. You can easily renew certificates before expiration manually or schedule it to renew automatically.

This tutorial will describe you to setup Let’s Encrypt SSL certificate with Webmin hostname.

Change Webmin Hostname

First, make sure you have a valid domain name configured with Webmin. Choose a domain name (subdomain) for Webmin and update dns entry to point domain to Webmin server.

Change the system hostname from webmin dashboard. Login to webmin using admin account access:

Adding Let’s Entrypt SSL to Webmin Hostname lets encrypt SSL TLS Webmin

This will change the hostname of the system, Also make an entry in /etc/hosts file to bind hostname with localhost ip address.

Configure Let’s Encrypt Certificate in Webmin

Now, you have configured a fully qualified domain as system hostname. Again make sure the domain is properly pointed to your Webmin server ip address. You can use online tool to verify dns records.

Let’s configure Let’s Encrypt SSL for Webmin:

  1. Go to Webmin (in left sidebar)
  2. Click Webmin Configuration
  3. Click on “SSL Encryption” as shown in screenshot

    Adding Let’s Entrypt SSL to Webmin Hostname lets encrypt SSL TLS Webmin

  4. Go to “Let’s Encrypt” tab”
  5. Enter your hostname under “Hostnames for certificate”. For example, I have used webmin.tecadmin.net.
  6. Select “Other directory” Under Website root directory for validation file and set path as “/var/www/html”
  7. Under “Months between automatic renewal”, set value to 1. This allows ssl to be auto renews before 1 month of expiry.

    Adding Let’s Entrypt SSL to Webmin Hostname lets encrypt SSL TLS Webmin

  8. Verify all details again and press Request Certificate button
  9. On successful, you will see the result like below.

    Adding Let’s Entrypt SSL to Webmin Hostname lets encrypt SSL TLS Webmin
  10. All done

Let’s Encrypt SSL certificate is successfully configured for the Webmin hostname.

Test SSL Certificate

Access the Webmin interface with https protocol using the system hostname on port 10000. You will see a valid ssl certificate in your browser.

For example: https://webmin.tecadmin.net:10000

Adding Let’s Entrypt SSL to Webmin Hostname lets encrypt SSL TLS Webmin

Conclusion

This tutorial described you to configure Let’s Encrypt SSL certificate with Webmin hostname.

You can also verify the SSL certificate using online ssl checker tool. Make sure to enter full url with port.