Hi,
I used X509_add1_ext_i2d(x509Cert, NID_subject_key_identifier, keyid, 0, 0);
to set the SKID value and it works now!!
Thanks for all the help!!
-Ujwal
Hi,
I modified the code as you mentioned, I am just trying to verify if signing the
certificate using private key works.
I signed the certificate using private key.
But I still get the same error from CMS_verify. It complains about "signer
certificate not found".
Is this the right way to create
Hmm, that could be a problem.
This code is going to run on a box which is shipped to the customer.
So I don't believe we want to ship these boxes with private keys in them
:)__
OpenSSL Project htt
Hi,
Thanks for all the help. I modified the code based on your comments.
Basically, I am trying to verify a CMS data signed by a C# program. So I have
the base 64 decoded CSM data stored as nBytes a BYTE array.
I have to verify the data(nBytes) using the DSA params and public key which is
hard
;
x509Cert = d2i_X509(NULL, &p, nLength); // Problem occurs here, x509Cert
is NULL and the error is the same as before <--
STACK_OF(X509) *st=sk_X509_new_null(); // I want to use this stack of
x509 in CMS_verify
sk_X509_push(st, x509Cert);
-Ujwal
From: Ujwal Chinthala
Sent: Wedn
routines:ASN1_TEMPLATE_EX_D2I:nested asn1
error:tasn_dec.c:578:Field=d.sign, Type=PKCS7
Please find the binary file you requested attached.
Thanks,
-Ujwal
From: Ujwal Chinthala
Sent: Tuesday, January 19, 2010 4:41 PM
To: 'openssl-users@openssl.org'
Subject: error:0D0680A8:asn
Hi,
I am new to OpenSSL.
I am trying to verify the compressed XML data, signed using PKCS#7. Then a four
byte crc is appended to it and the whole data is now base64 encoded.
All the above is done using windows libraries. The verification works fine in
windows.
Now I am trying to verify the abo