Skip to content

Commit

Permalink
Use the chain CA certificate to validate user certificate
Browse files Browse the repository at this point in the history
An imcomplete certification chain is not expected to be valid.
  • Loading branch information
smortex committed Jul 3, 2024
1 parent 168055d commit b119eff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/unit/mcollective/util/choria_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ module Util
end

it "should pass for valid client cert w/intermediate CA/ca combos" do
choria.stubs(:ca_path).returns("spec/fixtures/intermediate/ca.pem")
choria.stubs(:ca_path).returns("spec/fixtures/intermediate/certs/ca_chain_ca.pem")
expect(choria.valid_certificate?(File.read("spec/fixtures/intermediate/chain-rip.mcollective.pem"), "rip.mcollective")).to be_truthy
end
end
Expand Down

0 comments on commit b119eff

Please sign in to comment.