diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2016-11-22 22:07:16 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2016-11-25 20:52:45 +0000 |
commit | fb3b70c0bdc676f857e438754345487d5da1c84e (patch) | |
tree | 0ff80c72831cb6dd6c4f80350a8b850874eb8bf3 /test | |
parent | 825930389eec03116da88017fc9e46334196b79c (diff) |
add CMS SHA1 signing test
Reviewed-by: Rich Salz <rsalz@openssl.org>
(cherry picked from commit c6d67f09f34d8203c5bad7171ed45ec8771c9764)
Diffstat (limited to 'test')
-rw-r--r-- | test/recipes/80-test_cms.t | 8 |
1 files changed, 8 insertions, 0 deletions
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"), |