Skip to content

Commit

Permalink
enable dns-account-01 on config-next
Browse files Browse the repository at this point in the history
  • Loading branch information
orangepizza committed Feb 6, 2024
1 parent b1d737a commit 32061ac
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ type SMTPConfig struct {
// it should offer.
type PAConfig struct {
DBConfig `validate:"-"`
Challenges map[core.AcmeChallenge]bool `validate:"omitempty,dive,keys,oneof=http-01 dns-01 tls-alpn-01,endkeys"`
Challenges map[core.AcmeChallenge]bool `validate:"omitempty,dive,keys,oneof=http-01 dns-01 tls-alpn-01 dns-account-01,endkeys"`
}

// CheckChallenges checks whether the list of challenges in the PA config
Expand Down
2 changes: 1 addition & 1 deletion core/objects.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const (
// IsValid tests whether the challenge is a known challenge
func (c AcmeChallenge) IsValid() bool {
switch c {
case ChallengeTypeHTTP01, ChallengeTypeDNS01, ChallengeTypeTLSALPN01:
case ChallengeTypeHTTP01, ChallengeTypeDNS01, ChallengeTypeTLSALPN01, ChallengeTypeDNSAccount01:
return true
default:
return false
Expand Down
3 changes: 2 additions & 1 deletion test/config-next/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@
"challenges": {
"http-01": true,
"dns-01": true,
"tls-alpn-01": true
"tls-alpn-01": true,
"dns-account-01": true
}
},
"syslog": {
Expand Down
3 changes: 2 additions & 1 deletion test/config-next/cert-checker.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"challenges": {
"http-01": true,
"dns-01": true,
"tls-alpn-01": true
"tls-alpn-01": true,
"dns-account-01": true
}
},
"syslog": {
Expand Down
3 changes: 2 additions & 1 deletion test/config-next/ra.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@
"challenges": {
"http-01": true,
"dns-01": true,
"tls-alpn-01": true
"tls-alpn-01": true,
"dns-account-01": true
}
},
"syslog": {
Expand Down

0 comments on commit 32061ac

Please sign in to comment.