summaryrefslogtreecommitdiff
path: root/certs/test/unit/client_certificate_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'certs/test/unit/client_certificate_test.rb')
-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