Koozali.org: home of the SME Server

Letencrypt changing domains.txt

Offline jameswilson

  • ****
  • 739
  • +0/-0
    • Security Warehouse, trade security equipment
Letencrypt changing domains.txt
« on: May 21, 2017, 01:39:52 PM »
Ive been looking at this contrib and have got it working.
However whenever I do a console save or post upgrade etc then domains.txt file changes fropm what I manually edited to every domain on the server. This causes problems. Id assume this is because I ran

config setprop letsencrypt configure all
I'm assuming this will cause a problem at renewal time?

Offline jameswilson

  • ****
  • 739
  • +0/-0
    • Security Warehouse, trade security equipment
Re: Letencrypt changing domains.txt
« Reply #1 on: May 21, 2017, 05:29:09 PM »
Ive done a server reboot and now my main server isn't working. Thunderbird is timing out. I assume its because the domains.txt if full of non accesable domains. Id like to remove this but cant see a way from the wiki.
Alternativly id like it to work and get my email back. Wish id         left it alone now.

James

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Letencrypt changing domains.txt
« Reply #2 on: May 21, 2017, 06:38:54 PM »
just enable the domain(s)/hostname(s) you need

moreover, follow the wiki page: read it carefully.. it works

Offline DanB35

  • ****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Letencrypt changing domains.txt
« Reply #3 on: May 21, 2017, 09:49:06 PM »
config setprop letsencrypt configure all
If you ran this, then yes, what you're seeing is exactly what will happen (as the wiki says).  To undo it, run "config setprop letsencrypt configure none".  Then, as @Stefano says, enable the specific hosts and domains you want, and you should be good to go.
......

Offline jameswilson

  • ****
  • 739
  • +0/-0
    • Security Warehouse, trade security equipment
Re: Letencrypt changing domains.txt
« Reply #4 on: May 24, 2017, 09:26:46 PM »
super thanks dan and stefano

Offline ReetP

  • *
  • 3,731
  • +5/-0
Re: Letencrypt changing domains.txt
« Reply #5 on: May 26, 2017, 01:18:45 AM »
Please bear in mind that the current contrib was built to help simplify certificate generation, but it isn't necessarily perfect! Careful reading of the whole wiki page and a reasonable understanding of the contents is required. If you feel the page needs revising/clarifying please do so.

The domains.txt file is automatically regenerated in certain situations and is not designed for manual editing. I ought to add a warning at the top of the file I guess. I'll take a look when I've finished chilling on my break :-) :beer:
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline DanB35

  • ****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Letencrypt changing domains.txt
« Reply #6 on: May 26, 2017, 01:21:34 AM »
Most templated files do have a warning at the top saying that they're templated.  I'm not sure that dehydrated would allow that for domains.txt, though.  But even so, the general SME rule is that if you're editing something that was put there by a contrib, you're probably doing it wrong, and should be either creating custom template fragments or editing the relevant config database entries.
......

Offline ReetP

  • *
  • 3,731
  • +5/-0
Re: Letencrypt changing domains.txt
« Reply #7 on: May 26, 2017, 01:36:08 AM »
I think that might be the issue with domains.txt in that you can't add the standard header template. But it needs checking as I can't remember.

If it can't by default then we may need to look at a small patch to the dehydrated script (that may curry favour with the dev for a proper patch to the original!)
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation