From c6d67f09f34d8203c5bad7171ed45ec8771c9764 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Tue, 22 Nov 2016 22:07:16 +0000 Subject: [PATCH] add CMS SHA1 signing test Reviewed-by: Rich Salz --- test/recipes/80-test_cms.t | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/recipes/80-test_cms.t b/test/recipes/80-test_cms.t index 40fcf7cc53..264c7d6073 100644 --- a/test/recipes/80-test_cms.t +++ b/test/recipes/80-test_cms.t @@ -107,6 +107,14 @@ my @smime_pkcs7_tests = ( "-CAfile", catfile($smdir, "smroot.pem"), "-out", "smtst.txt" ] ], + [ "signed content S/MIME format, RSA key SHA1", + [ "-sign", "-in", $smcont, "-md", "sha1", + "-certfile", catfile($smdir, "smroot.pem"), + "-signer", catfile($smdir, "smrsa1.pem"), "-out", "test.cms" ], + [ "-verify", "-in", "test.cms", + "-CAfile", catfile($smdir, "smroot.pem"), "-out", "smtst.txt" ] + ], + [ "signed content test streaming S/MIME format, 2 DSA and 2 RSA keys", [ "-sign", "-in", $smcont, "-nodetach", "-signer", catfile($smdir, "smrsa1.pem"), -- 2.25.1