Menu

Let's Encrypt on Virtualmin itself ??

Help
2019-06-14
2021-01-28
  • Vincèn Pujol

    Vincèn Pujol - 2019-06-14

    Hi

    I'm struggling to succeed to setup Let's Encrypt certificate for webmin itself on a host that won't host any virtual servers ! I found multiple documentations on Internet but all outdated on wrong ! Looked also in webmin documentation but not much more success !
    What should I indicate as Website root directory ? so Let's encrypt system works fine ?

    Thanks

    Vincèn

     
  • Ilia

    Ilia - 2019-06-14

    Vincèn, hi.

    What you need, is to go to Webmin/Webmin Configuration/SSL Encryption -> Let's Encrypt.

    Webmin root directory, is where its files are located. Usually it's /usr/libexec/webmin for RHEL systems (CentOS, Fedora and etc.) and /usr/share/webmin for Debian (Ubuntu, Debian and etc.).


    Aside, in case you have Virtualmin installed, as I understood from your title, and you're trying to request certificate for particular domain, just import it, using Virtualmin/Import Virtual Server page. Then you could manage your web-domain right from Virtulmin, including SSL Certificate

     
  • Vincèn Pujol

    Vincèn Pujol - 2019-06-14

    Hi ILia

    Thanks for your explanations and so I tried using the /usr/libexec/webmin path file for web root of webmin but it's not working ! I get that error: (host name and its ip are fully resolvable in dns !)):

    myhost.mydomain.com challenge did not pass: Fetching http://myhost.mydomain.com/.well-known/acme-challenge/23Q-7dnlg6WzCLQF33vQlNY56vBHcF5Q_O6Ynt4-gFo: Connection refused

    It looks to try a non https connection to check domain but my webmin doesn't allow non SSL access :( If i remove the non SSL redirection to SSL I get that error:

    Failed to request certificate : Website document directory does not exist

     

    Last edit: Vincèn Pujol 2019-06-14
  • Ilia

    Ilia - 2019-06-14

    Vincèn, h

    Webmin root and site root is not the same thing.

    Just create a domain using Virtualmin, while accessing your Webmin instance using IP address.

     
    • Michael VanDeMar

      I don't know for certain that Vincen was having the same issue as me, but I was just getting this error because webmin was putting quotes around the web root, ie. "/var/www/html". When I removed the quotes it proceeded to the next step (which is my case is a different error altogether).

      It seems like a bug if webmin is adding those quotes when it shouldn't be.

      -Michael

       

Log in to post a comment.

MongoDB Logo MongoDB