Skip to content

Commit

Permalink
Merge pull request #23 from chef/nikhil/CHEF-3994-X509_STORE_add_cert…
Browse files Browse the repository at this point in the history
…-error

This resolves an issue where "berks install" fails due to a cert is already being in the hash table.
  • Loading branch information
nikhil2611 authored Sep 27, 2023
2 parents 514f9cb + 123b1e5 commit 11b4a6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/berkshelf/ssl_policies.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def initialize
def add_trusted_cert(cert)
@store.add_cert(cert)
rescue OpenSSL::X509::StoreError => e
raise e unless e.message == "cert already in hash table"
raise e unless e.message.match(/cert already in hash table/)
end

def trusted_certs_dir
Expand Down

0 comments on commit 11b4a6d

Please sign in to comment.