Re: Getting a pem from a p12

2010-01-20 Thread Massimiliano Ziccardi
(and I have no password!) You should ask the trust.keystore and .p12 file password to the one that sent them to you. Moreover, you should be sure you know what you are trying to get: do you want simply to convert the files from DER to PEM, or you want to extract all the certificates into PEM

Re: Error getting signer certificates from PKCS7

2008-06-03 Thread Massimiliano Ziccardi
in advance, Massimiliano Ziccardi On Fri, May 30, 2008 at 12:19 PM, Dr. Stephen Henson [EMAIL PROTECTED] wrote: On Fri, May 30, 2008, Massimiliano Ziccardi wrote: Hi all. The attached file is the PEM encoding of a file structured this way: SIGNATURE 1 COUNTER SIGNATURE 1 of SIGNATURE 1

Error getting signer certificates from PKCS7

2008-05-30 Thread Massimiliano Ziccardi
) *pSigners = PKCS7_get0_signers(m_pP7, NULL, 0); retruns only 1 certificate? Thanks in advance, Massimiliano Ziccardi test.pem Description: Binary data

Re: Parsing counter signatures - HELP - (UPDATED)

2008-05-21 Thread Massimiliano Ziccardi
Thank you Jimmy and Stephen! Thanks to your answer, I've finally been able to parse countersignatures at any depth! Regards, Massimiliano Ziccardi On Tue, May 20, 2008 at 5:43 PM, Dr. Stephen Henson [EMAIL PROTECTED] wrote: On Tue, May 20, 2008, Massimiliano Ziccardi wrote: I'm sure

Parsing counter signatures - HELP - (UPDATED)

2008-05-20 Thread Massimiliano Ziccardi
= NULL; ps = pSequence-data; PKCS7_SIGNER_INFO *cs = d2i_PKCS7_SIGNER_INFO(NULL, (const unsigned char**)ps, pSequence-length); printf (FOUND COUNTER SIGNATURE: %p\n, si); } } } Regards, Massimiliano Ziccardi test.txt.p7m Description: S/MIME encrypted

Re: Parsing counter signatures - HELP - (UPDATED)

2008-05-20 Thread Massimiliano Ziccardi
Sorry, I've received an error about the attachment, so I'm not sure you've got the e-mail. Follows the original e-mail. At the end, I've also included the PEM encoding of the P7M I tried to send you before (it was DER encoded). Regards, Massimiliano Ziccardi On Tue, May 20, 2008 at 9:25 AM

Re: Parsing counter signatures - HELP - (UPDATED)

2008-05-20 Thread Massimiliano Ziccardi
with Bouncycastle, and it has been straightforward). I've searched through the net for some documentation, but, as stated on the site, the OpenSSL documentation is very incomplete, and I couldn't find any useful information. Many thanks for your help. Massimiliano Ziccardi On Tue, May 20, 2008

Problem with ASN1_SEQUENCE

2008-05-19 Thread Massimiliano Ziccardi
OpenSSL...) ? Thank you all very much!! Regards. Massimiliano Ziccardi

Re: Problem with ASN1_SEQUENCE

2008-05-19 Thread Massimiliano Ziccardi
should be all inside the same ASN1 Sequence, right? How can I loop through all the ASN1 Sequence elements? Thanks you very much! Regards, Massimiliano Ziccardi On Mon, May 19, 2008 at 12:17 PM, Dr. Stephen Henson [EMAIL PROTECTED] wrote: On Mon, May 19, 2008, Massimiliano Ziccardi wrote: Hi

Re: Problem with ASN1_SEQUENCE

2008-05-19 Thread Massimiliano Ziccardi
the elements of a sequence... I've looked very much in the mailing list archive and in the FAQ, but I couldn't find any good answer... Thank you for your help and your time. Regards, Massimiliano Ziccardi On Mon, May 19, 2008 at 1:30 PM, Dr. Stephen Henson [EMAIL PROTECTED] wrote: On Mon, May 19, 2008