diff options
author | elijah <elijah@riseup.net> | 2013-02-05 21:20:30 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-02-05 21:20:30 -0800 |
commit | 8fbee620476db018ca096f1a448dbfde9f9eb95a (patch) | |
tree | 44afc4608edad4e9b8339bb4b87c51ae5b70fbf1 /certs/test/unit | |
parent | 27ef3129815acd5828064308fe1f5ea97f60bc06 (diff) |
certs -- added failing test that detects problem with certificate generation and out of order issuer field.
Diffstat (limited to 'certs/test/unit')
-rw-r--r-- | certs/test/unit/client_certificate_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/certs/test/unit/client_certificate_test.rb b/certs/test/unit/client_certificate_test.rb index 492a44a..71a1d90 100644 --- a/certs/test/unit/client_certificate_test.rb +++ b/certs/test/unit/client_certificate_test.rb @@ -11,4 +11,9 @@ class ClientCertificateTest < ActiveSupport::TestCase assert @sample.cert end + test "cert issuer matches ca subject" do + cert = OpenSSL::X509::Certificate.new(@sample.cert) + assert_equal ClientCertificate.root_ca.openssl_body.subject, cert.issuer + end + end |