Re: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag

2010-02-04 Thread Ujwal Chinthala
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

RE: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag

2010-02-03 Thread Ujwal Chinthala
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

Re: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag

2010-02-02 Thread Ujwal Chinthala
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

RE: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag

2010-01-26 Thread Ujwal Chinthala
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

RE: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag

2010-01-22 Thread Ujwal Chinthala
; 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

Re: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag

2010-01-21 Thread Ujwal Chinthala
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

error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag

2010-01-20 Thread Ujwal Chinthala
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