Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions utility_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,15 +428,11 @@ func preChallenge(acct Account, auth Authorization, chal Challenge) {
case ChallengeTypeDNSAccount01:
acctHash := sha256.Sum256([]byte(acct.URL))
acctLabel := strings.ToLower(base32.StdEncoding.EncodeToString(acctHash[0:10]))
scope := "host"
if auth.Wildcard {
scope = "wildcard"
}
setReq := struct {
Host string `json:"host"`
Value string `json:"value"`
}{
Host: "_" + acctLabel + "._acme-" + scope + "-challenge." +
Host: "_" + acctLabel + "._acme-challenge." +
auth.Identifier.Value + ".",
Value: EncodeDNS01KeyAuthorization(chal.KeyAuthorization),
}
Expand Down Expand Up @@ -481,11 +477,7 @@ func postChallenge(acct Account, auth Authorization, chal Challenge) {
case ChallengeTypeDNSAccount01:
acctHash := sha256.Sum256([]byte(acct.URL))
acctLabel := strings.ToLower(base32.StdEncoding.EncodeToString(acctHash[0:10]))
scope := "host"
if auth.Wildcard {
scope = "wildcard"
}
host := "_" + acctLabel + "._acme-" + scope + "-challenge." +
host := "_" + acctLabel + "._acme-challenge." +
auth.Identifier.Value + "."
clearReq := struct {
Host string `json:"host"`
Expand Down