Problem with d2i functions and RSA keys in C

2007-03-05 Thread Florian MANACH
ot the same problem and also using d2i_RSAPublicKey instead of d2i_RSA_PUBKEY. Thank you for your replies. -- Florian Manach NUMLOG [EMAIL PROTECTED] (+33)0130791616 __ OpenSSL Project

Re: Problem with d2i functions and RSA keys in C

2007-03-05 Thread Florian MANACH
Hi Marek, thx for the answer This functions return : 804b298 and 804b0d0 That seems to be a pointer on a RSA object and that seems to mean that there is no error. Regards, -- Florian Manach NUMLOG [EMAIL PROTECTED] (+33)0130791616 Marek Marcola a écrit : Hello, clefpub

Re: Problem with d2i functions and RSA keys in C

2007-03-05 Thread Florian MANACH
only n and e so this checking can not be performed. But, should this function core dump in this situation ? Probably not. Best regards, -- Florian Manach NUMLOG [EMAIL PROTECTED] (+33)0130791616 __

Re: Problem with d2i functions and RSA keys in C

2007-03-05 Thread Florian MANACH
My soft is running well now... Thx a lot Marek, Best regards, Florian MANACH a écrit : The RSA_check_key doesn't core dump with the private key if I remove the one with the public key. I'll try to continue in this way and I'll let you know. Thanks a lot, Best regards,

Re: PKCS7_encrypt leads to a segfault

2007-04-13 Thread Florian MANACH
There is a mistake in what I wrote : if(!(out=BIO_new_file(ficDest,"rb"))) { return -1; } is actually if(!(out=BIO_new_file(ficDest,"wb"))) { return -1; } Florian Manach NUMLOG [EMAIL PROTECTED] (+33)0130791616 Florian MANACH a écrit : Hi, I'm trying to

PKCS7_encrypt leads to a segfault

2007-04-13 Thread Florian MANACH
p 2006) compiled on Linux Mandrake 10.1. Thank you for your help. -- Florian Manach NUMLOG [EMAIL PROTECTED] (+33)0130791616 __ OpenSSL Project http://www.openssl.org User Support Mailing

Re: PKCS7_encrypt leads to a segfault

2007-04-13 Thread Florian MANACH
lly don't understand what's going on. Florian Manach NUMLOG [EMAIL PROTECTED] (+33)0130791616 Dr. Stephen Henson a écrit : On Fri, Apr 13, 2007, Florian MANACH wrote: Hi, I'm trying to create a PKCS7 encryption software and I have some issues doing it. My call to the PKCS7_encry

Re: PKCS7_encrypt leads to a segfault

2007-04-16 Thread Florian MANACH
According to an argument of the command line : cipher=EVP_aes_256_cbc() or cipher=EVP_des_ede3_cbc() Florian Manach NUMLOG [EMAIL PROTECTED] (+33)0130791616 Dr. Stephen Henson a écrit : On Fri, Apr 13, 2007, Florian MANACH wrote: Hello Steve and thank you for the answer. You were right. I

How to verify a certificate against several others

2007-07-05 Thread Florian MANACH
/* Certs in DER */ verify_ctx=X509_STORE_CTX_new() X509_STORE_CTX_init(verify_ctx,store,cert,NULL) X509_verify_cert(verify_ctx) It never returns 1. Does anybody have an idea ? Regards -- Florian Manach NUMLOG [EMAIL PROTECTED]

Re: How to verify a certificate against several others

2007-07-05 Thread Florian MANACH
No, I didn't even know that function. What does it do ? -- Florian Manach NUMLOG [EMAIL PROTECTED] (+33)0130791616 Goetz Babin-Ebell a écrit : --On Donnerstag, Juli 05, 2007 14:55:59 +0200 Florian MANACH <[EMAIL PROTECTED]> wrote: I have a directory where I store CA root cert

Re: How to verify a certificate against several others

2007-07-06 Thread Florian MANACH
OK I see but It's always not working after c_rehash ./root c_rehash ./certs c_rehash ./crls -- Florian Manach NUMLOG [EMAIL PROTECTED] (+33)0130791616 Goetz Babin-Ebell a écrit : Hello Florian, --On Donnerstag, Juli 05, 2007 17:59:01 +0200 Florian MANACH <[EMAIL PROTECTED]> wrot

Re: EC

2007-07-06 Thread Florian MANACH
Here is the part that seems to be wrong -outform DER -out ec-key.pem -inform DER -in ec-key.der Try with the same filename in both commands. -- Florian Manach NUMLOG [EMAIL PROTECTED] (+33)0130791616 C K KIRAN-KNTX36 a écrit : Hi All, I am trying the below commands what is going wrong

Re: How to verify a certificate against several others

2007-07-10 Thread Florian MANACH
Hi Goetz, I saw that it needs PEM format... but even if I convert the certs in PEM, links are created but my app still returns an error on verification. Thx again for your help. -- Florian Manach NUMLOG [EMAIL PROTECTED] (+33)0130791616 Goetz Babin-Ebell a écrit : Hello Florian, --On

Re: How to verify a certificate against several others

2007-07-11 Thread Florian MANACH
Hi Goetz, Thx again for your help, I finally found what was going wrong with my code. I was setting a flag to force CRL verification but I did not have a CRL stored for the CA. Now everything is running well. Thx again for your help. Regards ! -- Florian Manach NUMLOG [EMAIL PROTECTED