Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions acme/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ type Challenge struct {
URL string `json:"url"`
Token string `json:"token,omitempty"`
Status string `json:"status"`
AccountURI string `json:"accounturi,omitempty"`
IssuerDomainNames []string `json:"issuer-domain-names,omitempty"`
Validated string `json:"validated,omitempty"`
Error *ProblemDetails `json:"error,omitempty"`
Expand Down
4 changes: 4 additions & 0 deletions wfe/wfe.go
Original file line number Diff line number Diff line change
Expand Up @@ -1625,6 +1625,10 @@ func (wfe *WebFrontEndImpl) makeChallenge(
}
if chalType == acme.ChallengeDNSPersist01 {
chal.IssuerDomainNames = append([]string(nil), wfe.caaIdentities...)
// Note: By using web.relativeEndpoint here, Pebble will reflect the Host header
// into the accountURI here. This would not be acceptable in a security-conscious
// context, but is okay for Pebble.
chal.AccountURI = wfe.relativeEndpoint(request, fmt.Sprintf("%s%s", acctPath, authz.Order.AccountID))
Comment thread
felixfontein marked this conversation as resolved.
}

// Add it to the in-memory database
Expand Down
Loading