summaryrefslogtreecommitdiff
path: root/certs/test/unit
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-02-05 21:20:30 -0800
committerelijah <elijah@riseup.net>2013-02-05 21:20:30 -0800
commit8fbee620476db018ca096f1a448dbfde9f9eb95a (patch)
tree44afc4608edad4e9b8339bb4b87c51ae5b70fbf1 /certs/test/unit
parent27ef3129815acd5828064308fe1f5ea97f60bc06 (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.rb5
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