Menu

#5353 Letsencrypt

1.940
closed-fixed
Ilia
LETSENCRYPT (5)
6
2020-01-20
2020-01-17
Jaret
No

We have a problem in FreeBSD with certificate createion using Letsnecrypt (acme.sh), trying to assign a certificate to Webmin.

Requesting a new certificate for webmin.domain.com, using the website directory /usr/home/webmin/public_html ..
.. request failed : Expected full certificate file /etc/letsencrypt/live/webmin.domain.com/fullchain.pem was not found

The location needs to be changed from /etc/letsencrypt/live to /usr/local/etc/letsencrypt/live to find the certificate.

Discussion

  • Ilia

    Ilia - 2020-01-17

    Install certbot package:

    pkg install py37-certbot
    
     
  • Jaret

    Jaret - 2020-01-18

    I tried with the py-certbot port and as well with acme.sh (which are essentially the same). Both report the exact same above issue in Webmin. Webmin expects /etc/letsencrypt/live/ to be the default location, but it's not anymore. You may want to check it out for yourself in a VM install. If it were possible change the default location Webmin expects in a module configuration for Letsencrypt, that would mitigate any future issues with Letsencrypt save locations across many operating systems should things change on those operating systems.

     

    Last edit: Jaret 2020-01-18
  • Ilia

    Ilia - 2020-01-19
    • status: open --> closed-fixed
     
  • Jamie Cameron

    Jamie Cameron - 2020-01-19

    Or as a work-around, you can run ln -s /usr/local/etc/letsencrypt /etc/letsencrypt

     
    • Jaret

      Jaret - 2020-01-20

      Yeah I know. I did the workaround. I'm finding bugs to report so things work properly. If some settings for location options could be added to the module it would be good for all platforms, to set their own settings for the letsencrypt file drop location rather than using workarounds.

       
      • Jamie Cameron

        Jamie Cameron - 2020-01-20

        Since /usr/local/etc is the default path for certs on FreeBSD, we'll have Webmin check that directory as well in the next release.

         

Log in to post a comment.