Originally created by @frederickjh on GitHub (Feb 13, 2020).
dehydrated creates symlinks to the current PEM-encoded certificate files. These are named
cert.pem (and cert.csr) for the certificate (resp. the CSR)
chain.pem for the intermediary certifcate, which the server needs to send too
fullchain.pem for the concatenation of the above two
privkey.pem for the file containing the private key
These 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.
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_cert hook 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
Originally created by @frederickjh on GitHub (Feb 13, 2020).
dehydrated creates symlinks to the current PEM-encoded certificate files. These are named
- `cert.pem` (and `cert.csr`) for the certificate (resp. the CSR)
- `chain.pem` for the intermediary certifcate, which the server needs to send too
- `fullchain.pem` for the concatenation of the above two
- `privkey.pem` for the file containing the private key
These 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 https://github.com/dehydrated-io/dehydrated/blob/307eaadddfd49aeafda6984f11e6731329372cd5/dehydrated#L1073-L1079
When I turn on shell debugging with:
```shell
set -x
PS4=':${LINENO} + '
```
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_cert` hook 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
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_cert hook. 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...
@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_cert` hook. 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...
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.
@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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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 https://github.com/dehydrated-io/dehydrated/blob/307eaadddfd49aeafda6984f11e6731329372cd5/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.