Browse Source

backport of commit 8ad61b4e29 (#18077)

Co-authored-by: DanStough <dan.stough@hashicorp.com>
pull/18084/head
hc-github-team-consul-core 1 year ago committed by GitHub
parent
commit
bc36b64a0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      agent/structs/config_entry_inline_certificate_test.go

4
agent/structs/config_entry_inline_certificate_test.go

@ -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{

Loading…
Cancel
Save