Skip to content

Commit

Permalink
test: actually use the key passed by parameter
Browse files Browse the repository at this point in the history
this was accidentally using `root_key`, which happens to be exactly
the same as the passed argument key in all the test cases using the
helper method
  • Loading branch information
grzuy committed Feb 28, 2021
1 parent 192ecdb commit 1d76321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def create_root_certificate(key)

certificate.subject = OpenSSL::X509::Name.new([["CN", common_name]])
certificate.issuer = certificate.subject
certificate.public_key = root_key
certificate.public_key = key
certificate.not_before = Time.now - 1
certificate.not_after = Time.now + 60

Expand Down

0 comments on commit 1d76321

Please sign in to comment.