I'm trying to verify a non-detached PKCS7 using the package OpenCA::SV.
The PKCS7 has been created using Microsoft Crypto API.
The verify procedure fails and show me the following errors:
Signature Informations (PKCS#7):
Depth: 1
Serial Number: 00
Subject: [EMAIL PROTECTED]/CN=Sergio
Sagliocco/OU=demo CA - Gualino/O=CSP/C=IT
Verify Return: 1
Signed Attributes:
Depth: 0
Serial Number: 01
Subject: /CN=Sergio Sagliocco/C=IT
Verify Return: 1
Signed Attributes:
2603:error:0407006A:rsa routines:RSA_padding_check_PKCS1_type_1:block
type is not 01:rsa_pk1.c:100:
2603:error:04067072:rsa routines:RSA_EAY_PUBLIC_DECRYPT:padding check
failed:rsa_eay.c:396:
2603:error:21071069:PKCS7 routines:PKCS7_signatureVerify:signature
failure:pk7_doit.c:816:
I've created PKCS7 without PKCS9 signed attributes (because I don't know
how to insert them!)
Does anyone know how to solve my problem?
Thanks!
Sergio
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]