Fix JSON property name for ACME policy
This commit is contained in:
parent
30d5d89a13
commit
a9f033ece5
2 changed files with 3 additions and 3 deletions
|
@ -53,8 +53,8 @@ type PolicyNames struct {
|
||||||
|
|
||||||
// X509Policy contains ACME account level X.509 policy
|
// X509Policy contains ACME account level X.509 policy
|
||||||
type X509Policy struct {
|
type X509Policy struct {
|
||||||
Allowed PolicyNames `json:"allowed"`
|
Allowed PolicyNames `json:"allow"`
|
||||||
Denied PolicyNames `json:"denied"`
|
Denied PolicyNames `json:"deny"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Policy is an ACME Account level policy
|
// Policy is an ACME Account level policy
|
||||||
|
|
|
@ -119,7 +119,7 @@ func (h *Handler) NewOrder(w http.ResponseWriter, r *http.Request) {
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, identifier := range nor.Identifiers {
|
for _, identifier := range nor.Identifiers {
|
||||||
// evalue the ACME account level policy
|
// evaluate the ACME account level policy
|
||||||
if err = isIdentifierAllowed(acmePolicy, identifier); err != nil {
|
if err = isIdentifierAllowed(acmePolicy, identifier); err != nil {
|
||||||
render.Error(w, acme.WrapError(acme.ErrorRejectedIdentifierType, err, "not authorized"))
|
render.Error(w, acme.WrapError(acme.ErrorRejectedIdentifierType, err, "not authorized"))
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue