diff --git a/lib/berkshelf/ssl_policies.rb b/lib/berkshelf/ssl_policies.rb index 3a691a14d..ea7888094 100644 --- a/lib/berkshelf/ssl_policies.rb +++ b/lib/berkshelf/ssl_policies.rb @@ -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