mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-11 22:30:44 +01:00
Fix storage directory #41
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 @reetp on GitHub (Jan 22, 2016).
The certs get put in the following directory structure
/etc/letsencrypt.sh/certs/{some.domain}
/etc/letsencrypt.sh/certs/{other.domain}
I have a requirement to keep them in one directory which is not dictated by the domain names. This is handy in circumstances when the server with letsencrypt may not actually use the certificates itself.
The fix is quite easy - I can do a pull request but wanted you to check the following and see if it would be accepted:
in config.sh add variable if required:
LOCDIR="storage"
In letsencrypt.sh add the following line - defaults to domain name if LOCDIR not set:
Create certificate for domain(s)
sign_domain() {
domain="${1}"
Replace all instances of
/certs/${domain}
with
/certs/${LOCDIR}
@lukas2511 commented on GitHub (Jan 22, 2016):
You can use hooks to move certificates to other directories or even upload them to other servers, whatever you need.
@the-solipsist commented on GitHub (Mar 12, 2016):
@lukas2511 Would it be possible to include an example in hook.sh.example of how to move these automatically to /etc/ssl/private? It'd greatly help us noobs. Thanks!
@lukas2511 commented on GitHub (Mar 18, 2016):
@the-solipsist there are some examples in the wiki, i may add more, but in the repository i want to keep the hook example as clean as possible