diff --git a/internal/certauthority/certauthority_test.go b/internal/certauthority/certauthority_test.go index 80948a77..016268be 100644 --- a/internal/certauthority/certauthority_test.go +++ b/internal/certauthority/certauthority_test.go @@ -261,7 +261,7 @@ func TestIssue(t *testing.T) { clock: func() time.Time { return now }, }, }, - wantErr: "could not parse CA certificate: asn1: syntax error: sequence truncated", + wantErr: "could not parse CA certificate: x509: malformed certificate", }, { name: "signing error", diff --git a/internal/oidc/token/token_handler_test.go b/internal/oidc/token/token_handler_test.go index bca9a3ce..9032dd10 100644 --- a/internal/oidc/token/token_handler_test.go +++ b/internal/oidc/token/token_handler_test.go @@ -103,7 +103,7 @@ var ( fositeInvalidPayloadErrorBody = here.Doc(` { "error": "invalid_request", - "error_description": "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed. Unable to parse HTTP body, make sure to send a properly formatted form request body." + "error_description": "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed. The POST body can not be empty." } `)