Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»Control Panel»Webmin»Adding Let’s Entrypt SSL to Webmin Hostname

    Adding Let’s Entrypt SSL to Webmin Hostname

    By RahulFebruary 12, 20212 Mins Read

    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.

    Advertisement

    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:

    Webmin change system hostname

    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

      Webmin SSL Center

    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.

      Webmin SSL Cert for Hostname

    8. Verify all details again and press Request Certificate button
    9. On successful, you will see the result like below.
      Webmin SSL installed
    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

    Webmin with Lets Encrypt Certificate

    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.

    Let's Encrypt SSL TLS Webmin
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp

    Related Posts

    Create Let's Encrypt SSL with Certbot

    How to Generate Let’s Encrypt SSL using Certbot

    Deleting a Certificate using Certbot

    How to Delete a Let’s Encrypt Certificate using Certbot

    How to Install Apache (HTTPD) on Debian Linux

    How to Install and Secure Apache on Debian11

    View 4 Comments

    4 Comments

    1. Issa on October 29, 2022 11:03 am

      Thank you so much

      Reply
    2. Spart on February 25, 2022 5:32 pm

      This did not work for me my webmin runs on a non standard port not the well know 10000

      Also there is no /var/www/html directory
      So I get:

      Failed to request certificate : Website document directory does not exist

      Ubuntu 20.04 install. The server runs a number of services.

      I want to be able to access webmin using SSL. To monitor the server.

      Any help or advice appreciated.

      Reply
    3. Bob on January 4, 2022 9:07 am

      Thanks for this post.
      I have follow this steps and on last one when Cert is issued is also I got a ..done!!!
      But problem is when I open again in browser my connection is still not secured.

      Have you any idea what can be the problem ?

      Reply
    4. Milan on November 15, 2021 8:02 am

      “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.”
      I wonder is it there options to add SSL for http://www.example.com:10000 for that port ? Or this must be resereved for domain name but not include port 1000 ?
      Thanks

      Reply

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • Configure Postfix to Use Gmail SMTP on Ubuntu & Debian
    • PHP Arrays: A Beginner’s Guide
    • Deploying Flask Application on Ubuntu (Apache+WSGI)
    • OpenSSL: Working with SSL Certificates, Private Keys and CSRs
    • How to Create and Read List in Python
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.