Should now be in smetest. Mirrors might take a while to sync. I had to add a quick patch as I forgot to remove some debugging lines !
yum --enablerepo=smetest install smeserver-letsencrypt dehydrated
The contrib will default to the v1 API.
We have a couple of new keys:
API version
API: can be set 1, 2, auto (defaults to 1)
hostOverride
By default only hosts that are 'Self' are allowed. This allows you to set other hosts that are not on your server where you need a certificate, but the host does not have http access. e.g. I have a private gitlab host that only runs https and on a different port and want a certificate for that machine.
You will now not necessarily need a domains.txt template override as per the wiki.
Note that the domains.txt file can now create a set of certificates per domain and store them in separate directories.
e.g.
example.com smtp.example.com mail.example.com
www.example.comtestdomain.com smtp.testdomain.com mail.testdomain.com
www.testdomain.comYou will get a set of directories like this:
/etc/dehydrated/certs/example.com (contains a certificate for all hosts at this domain)
/etc/dehydrated/certs/domain.com (contains a certificate for all hosts at this domain)
HOWEVER. Currently the contrib does NOT currently work with this method. It will take ALL hosts and ALL domains and create ONE certificate. That is due to the way they are deployed currently
I need to look at a patch so that it creates certificates that are relevant to THIS server, and others that are for different servers.
I'll look at that in due course.
hostOverride yes/no (defaults to no)
To change we need to do the following
config setprop letsencrypt API auto
signal-event console-save
dehydrated -c -x
dehydrated --cleanup