Sha256: 6f054b9883a594e5a760de419fed33613dcc489462792da03e903676b45c58c9

Contents?: true

Size: 649 Bytes

Versions: 17

Compression:

Stored size: 649 Bytes

Contents

require File.expand_path('../../test_helper', __FILE__)

module Stripe

  class CertificateBlacklistTest < Test::Unit::TestCase
    should "not trust revoked certificates" do
      assert_raises(Stripe::APIConnectionError) {
        Stripe::CertificateBlacklist.check_ssl_cert("https://revoked.stripe.com:444",
                                                    Stripe::DEFAULT_CA_BUNDLE_PATH)
      }
    end

    should "trust api.stripe.com" do
      assert_true Stripe::CertificateBlacklist.check_ssl_cert("https://api.stripe.com",
                                                              Stripe::DEFAULT_CA_BUNDLE_PATH)
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
stripe-1.20.4 test/stripe/certificate_blacklist_test.rb
stripe-1.20.3 test/stripe/certificate_blacklist_test.rb
stripe-1.20.2 test/stripe/certificate_blacklist_test.rb
stripe-1.20.1 test/stripe/certificate_blacklist_test.rb
stripe-1.20.0 test/stripe/certificate_blacklist_test.rb
stripe-1.19.0 test/stripe/certificate_blacklist_test.rb
stripe-1.18.0 test/stripe/certificate_blacklist_test.rb
stripe-1.17.3 test/stripe/certificate_blacklist_test.rb
stripe-1.17.2 test/stripe/certificate_blacklist_test.rb
stripe-1.17.1 test/stripe/certificate_blacklist_test.rb
stripe-1.16.1 test/stripe/certificate_blacklist_test.rb
stripe-1.16.0 test/stripe/certificate_blacklist_test.rb
stripe-1.15.0 test/stripe/certificate_blacklist_test.rb
stripe-1.14.0 test/stripe/certificate_blacklist_test.rb
stripe-1.13.0 test/stripe/certificate_blacklist_test.rb
stripe-1.12.0 test/stripe/certificate_blacklist_test.rb
stripe-1.11.0 test/stripe/certificate_blacklist_test.rb