summaryrefslogtreecommitdiff
path: root/test/openssl/test_pkcs12.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/openssl/test_pkcs12.rb')
-rw-r--r--test/openssl/test_pkcs12.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/openssl/test_pkcs12.rb b/test/openssl/test_pkcs12.rb
index 61fb447473..7ab501c480 100644
--- a/test/openssl/test_pkcs12.rb
+++ b/test/openssl/test_pkcs12.rb
@@ -180,6 +180,11 @@ Li8JsX5yIiuVYaBg/6ha3tOg4TCa5K/3r3tVliRZ2Es=
end
end
+ def test_dup
+ p12 = OpenSSL::PKCS12.create("pass", "name", TEST_KEY_RSA1024, @mycert)
+ assert_equal p12.to_der, p12.dup.to_der
+ end
+
private
def assert_cert expected, actual
[