[GH-ISSUE #172] tls = "letsencrypt" and acme-dns.service #68

Closed
opened 2026-03-13 15:38:54 +03:00 by kerem · 3 comments
Owner

Originally created by @lateagain on GitHub (Jul 10, 2019).
Original GitHub issue: https://github.com/acme-dns/acme-dns/issues/172

Had a problem enabling ssl with tls = "letsencrypt" combined with the limited user service.

Followed the README to run as a service with user acme-dns and it only worked when run in the foreground. (could do with some logging for the certificate request).

Used lsof -p <pid of acme-dns> to see what the differences were.
The cwd for the service is "\" and it can't create the api-certs directory there.

Fixed by adding "WorkingDirectory=~" to the acme-dns.service file.

Originally created by @lateagain on GitHub (Jul 10, 2019). Original GitHub issue: https://github.com/acme-dns/acme-dns/issues/172 Had a problem enabling ssl with tls = "letsencrypt" combined with the limited user service. Followed the README to run as a service with user acme-dns and it only worked when run in the foreground. (could do with some logging for the certificate request). Used lsof -p \<pid of acme-dns\> to see what the differences were. The cwd for the service is "\\" and it can't create the api-certs directory there. Fixed by adding "WorkingDirectory=~" to the acme-dns.service file.
kerem 2026-03-13 15:38:54 +03:00
Author
Owner

@joohoi commented on GitHub (Sep 3, 2019):

Good to hear that you got it fixed. Another option to handle this would be to define a full path to config.cfg acme_cache_dir. This could be documented better in the installation instructions and / or the config.cfg itself.

<!-- gh-comment-id:527464824 --> @joohoi commented on GitHub (Sep 3, 2019): Good to hear that you got it fixed. Another option to handle this would be to define a full path to `config.cfg` `acme_cache_dir`. This could be documented better in the installation instructions and / or the `config.cfg` itself.
Author
Owner

@lateagain commented on GitHub (Sep 11, 2019):

I added a pull request (set working directory in the systemd service file) because with the default working directory the service can't create the "api-certs" directory for ssl certificate.

<!-- gh-comment-id:530486975 --> @lateagain commented on GitHub (Sep 11, 2019): I added a pull request (set working directory in the systemd service file) because with the default working directory the service can't create the "api-certs" directory for ssl certificate.
Author
Owner

@joohoi commented on GitHub (Oct 20, 2019):

Closing as resolved

<!-- gh-comment-id:544292597 --> @joohoi commented on GitHub (Oct 20, 2019): Closing as resolved
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/acme-dns#68
No description provided.