mirror of
https://github.com/acme-dns/acme-dns.git
synced 2026-04-27 12:55:48 +03:00
[PR #225] Base the server's own name on "nsname", not "domain" #349
Labels
No labels
Documentation
Documentation
bug
enhancement
feature request
feature request
help wanted
pull-request
question
security
security
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/acme-dns#349
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
📋 Pull Request Information
Original PR: https://github.com/acme-dns/acme-dns/pull/225
Author: @blkeller
Created: 4/28/2020
Status: 🔄 Open
Base:
master← Head:nsname-is-own-name📝 Commits (2)
a438311Base the server's own name on nsname, not domain51788ceMerge branch 'master' into nsname-is-own-name📊 Changes
3 files changed (+16 additions, -11 deletions)
View changed files
📝
dns.go(+7 -2)📝
main.go(+8 -8)📝
main_test.go(+1 -1)📄 Description
Summary:
When
nsnameanddomainin the config are not identical, and the API is set to use Let's Encrypt for its own HTTPS needs, the API is unusable because it gets a cert for the name given indomain, but the API is accessed atnsname. All connections to the API then fail because the API cannot locate its own cert in the filesystem, though the cert would be invalid even if it could be located. Setting theapi_domainconfig variable has no effect because this setting has been deprecated.This bug is masked whenever
nsname == domain, so the problem would not be noticeable in this very common case.This PR fixes the problem by using
nsnameinstead ofdomainfor the API's Let's Encrypt cert's CN and SAN.Examples:
Where the config file includes these entries:
Without this patch:
With this patch:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.