Fix JSON property name for ACME policy

This commit is contained in:
Herman Slatman 2022-04-15 10:58:29 +02:00
parent 30d5d89a13
commit a9f033ece5
No known key found for this signature in database
GPG key ID: F4D8A44EA0A75A4F
2 changed files with 3 additions and 3 deletions

View file

@ -53,8 +53,8 @@ type PolicyNames struct {
// X509Policy contains ACME account level X.509 policy
type X509Policy struct {
Allowed PolicyNames `json:"allowed"`
Denied PolicyNames `json:"denied"`
Allowed PolicyNames `json:"allow"`
Denied PolicyNames `json:"deny"`
}
// Policy is an ACME Account level policy

View file

@ -119,7 +119,7 @@ func (h *Handler) NewOrder(w http.ResponseWriter, r *http.Request) {
}
for _, identifier := range nor.Identifiers {
// evalue the ACME account level policy
// evaluate the ACME account level policy
if err = isIdentifierAllowed(acmePolicy, identifier); err != nil {
render.Error(w, acme.WrapError(acme.ErrorRejectedIdentifierType, err, "not authorized"))
return