test -createsfiles {was_signed.dat signer.certs} "Verifying signature in DER format" {
grep "Verif" [openssl "cms -verify -inform der -in cms_signed2_2_$length.asn -noverify -signer signer.certs -out was_signed.dat"]
-} 0 {Verification successful
+} 0 {CMS Verification successful
}
test "Signed data is extracted correctly" {
test -createsfiles {was_signed.dat signer.certs} "Verifying opaque signature in S/MIME format" {
grep "Verif" [openssl "cms -verify -in cms_signed2_2_$length\_op.msg -noverify -signer signer.certs -out was_signed.dat"]
-} 0 {Verification successful
+} 0 {CMS Verification successful
}
test "Signed data is extracted correctly" {
test -createsfiles {was_signed.dat signer.certs} "Verifying detached signature in DER format" {
grep "Verif" [openssl "cms -verify -in cms_signed2_2_$length\_det.asn -noverify -signer signer.certs -out was_signed.dat -content signed2.dat -inform der"]
-} 0 {Verification successful
+} 0 {CMS Verification successful
}
test "Signed data is extracted correctly" {
test -createsfiles {was_signed.dat signer.certs} "Verifying signature in S/MIME format" {
grep "Verif" [openssl "cms -verify -in cms_signed2_2_$length.msg -noverify -signer signer.certs -out was_signed.dat -inform smime"]
-} 0 {Verification successful
+} 0 {CMS Verification successful
}
test "Signed data is extracted correctly" {