diff options
author | elijah <elijah@riseup.net> | 2015-08-07 20:17:10 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2015-08-07 20:17:10 -0700 |
commit | 883b2eadb7b28756978c4009cb9f92e7177a9dba (patch) | |
tree | 5b4fa18a28c0534ca8a9f9b337a86d40f0e9eb31 /test/unit/client_certificate_test.rb | |
parent | 1493e0ca5e32bf25d9778e7326ea70d5ebfe74e6 (diff) |
do not include random cruft in the common name of smtp client certificates
Diffstat (limited to 'test/unit/client_certificate_test.rb')
-rw-r--r-- | test/unit/client_certificate_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/client_certificate_test.rb b/test/unit/client_certificate_test.rb index 036e724..7f7e14b 100644 --- a/test/unit/client_certificate_test.rb +++ b/test/unit/client_certificate_test.rb @@ -3,7 +3,7 @@ require 'test_helper' class ClientCertificateTest < ActiveSupport::TestCase test "new cert has all we need" do - sample = ClientCertificate.new + sample = ClientCertificate.new(:common_name => 'test') assert sample.key assert sample.cert assert sample.to_s @@ -16,7 +16,7 @@ class ClientCertificateTest < ActiveSupport::TestCase end test "cert issuer matches ca subject" do - sample = ClientCertificate.new + sample = ClientCertificate.new(:prefix => 'test') cert = OpenSSL::X509::Certificate.new(sample.cert.to_pem) assert_equal ClientCertificate.root_ca.openssl_body.subject, cert.issuer end |