diff --git a/acme/order.go b/acme/order.go index 33bb914bb..c23befd91 100644 --- a/acme/order.go +++ b/acme/order.go @@ -312,7 +312,7 @@ func (o *Order) Finalize(ctx context.Context, db DB, csr *x509.CertificateReques //nolint:govet // ignore non-constant format string acmeError := NewDetailedError(ErrorUnauthorizedType, webhookErr.Error()) acmeError.AddSubproblems(Subproblem{ - Type: fmt.Sprintf("urn:smallstep:webhook:error:%s", webhookErr.Code), + Type: fmt.Sprintf("urn:smallstep:acme:error:%s", webhookErr.Code), Detail: webhookErr.Message, }) return acmeError diff --git a/acme/order_test.go b/acme/order_test.go index 6182fb2bf..6a0200cc2 100644 --- a/acme/order_test.go +++ b/acme/order_test.go @@ -636,7 +636,7 @@ func TestOrder_Finalize(t *testing.T) { }, }, err: NewDetailedError(ErrorUnauthorizedType, "The message (theCode)").AddSubproblems(Subproblem{ - Type: "urn:smallstep:webhook:error:theCode", + Type: "urn:smallstep:acme:error:theCode", Detail: "The message", }), }