Koozali.org: home of the SME Server
Obsolete Releases => SME 9.x Contribs => Topic started by: jameswilson 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?
-
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
-
just enable the domain(s)/hostname(s) you need
moreover, follow the wiki page: read it carefully.. it works
-
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.
-
super thanks dan and stefano
-
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:
-
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.
-
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!)