mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-11 22:30:44 +01:00
Symlinks not being updated, even thought new certificates are created #458
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @frederickjh on GitHub (Feb 13, 2020).
dehydrated creates symlinks to the current PEM-encoded certificate files. These are named
cert.pem(andcert.csr) for the certificate (resp. the CSR)chain.pemfor the intermediary certifcate, which the server needs to send toofullchain.pemfor the concatenation of the above twoprivkey.pemfor the file containing the private keyThese links were created when I first created certificates now new certificates are successfully created but the symlinks are not updated to point to the new files.
The relevant code is
307eaadddf/dehydrated (L1073-L1079)When I turn on shell debugging with:
and then run dehydrated it does not run these lines of code. I am running dehydrated with the following options:
dehydrated --force --cron --domain "subdomain.example.com *.subdomain.example.com".It the config file: CHALLENGETYPE="dns-01"
Any ideas as to why the symlinks are not being updated?
I see in this closed issue #368 that the
deploy_certhook can be used for this but I thought dehydrated should do this out of the box.Thanks in advance for any help you can give!
Frederick
@lukas2511 commented on GitHub (Feb 17, 2020):
Mh, it should definitively update those symlinks... does it maybe exit before updating the symlinks? If your hook-script doesn't allow for unknown hooks it might cause dehydrated to exit when trying to run the
sync_certhook. I'm going to change the behaviour of this in the next few days so that in cases like that dehydrated will exit with an appropriate error message instead of silently failing...@frederickjh commented on GitHub (Feb 17, 2020):
I did a bit more digging, only to find that the issue is not with dehydrated. It is with the hooks scripts I am using for DNSexit. When the hook fails it does so silently. I figured this out when I noticed not all of the files were being created and the pem file was 0 bytes. Sorry for filing this non-issue.