test: fix FIPS inline cert test message

pull/18076/head
DanStough 2023-07-11 10:55:57 -04:00
parent 7decc305b9
commit 8ad61b4e29
No known key found for this signature in database
GPG Key ID: 0D994ED7D73D7809
1 changed files with 3 additions and 1 deletions

View File

@ -162,7 +162,9 @@ func TestInlineCertificate(t *testing.T) {
PrivateKey: tooShortPrivateKey,
Certificate: "foo",
},
validateErr: "key length must be at least 2048 bits",
// non-FIPS: "key length must be at least 2048 bits"
// FIPS: "key length invalid: only RSA lengths of 2048, 3072, and 4096 are allowed in FIPS mode"
validateErr: "key length",
},
"mismatched certificate": {
entry: &InlineCertificateConfigEntry{