Re: Read a PEM

2008-12-19 Thread Moribius
Thanks a lot, a "cert=X509_new()" was missing! I can now load the certif with the second method, the first one still crashes! -- View this message in context: http://www.nabble.com/Read-a-PEM-tp21056958p21091823.html Sent from the OpenSSL - User mailing list archive at

Re: Read a PEM

2008-12-18 Thread Dr. Stephen Henson
On Thu, Dec 18, 2008, Moribius wrote: > > fp is not NULL; > > But perhaps my certificate has special contents, I can't imagine another > origin for that problem. > I can't post the certificate because it's a private one, sorry. > > So can anyone explain me how to process whith specials content?

Re: Read a PEM

2008-12-18 Thread Mounir IDRASSI
cert.pem"; X509* cert; BIO* bio_cert = BIO_new_file(certificateFile.c_str(), "rb"); PEM_read_bio_X509(bio_cert, &cert, NULL, NULL); Same problem! :confused: Moribius wrote: Hi every body. I need some help because I'm trying to read a PEM file using PE

Re: Read a PEM

2008-12-18 Thread Moribius
My version of OpenSSL is the last (0_9_8i). -- View this message in context: http://www.nabble.com/Read-a-PEM-tp21056958p21072435.html Sent from the OpenSSL - User mailing list archive at Nabble.com. __ OpenSSL Project

Re: Read a PEM

2008-12-18 Thread Moribius
I try to read the name like that: X509_NAME * name=NULL; name=X509_get_subject_name(cert); Anderror!!! :confused: Moribius wrote: > > Hi every body. > > I need some help because I'm trying to read a PEM file using PEM_read_X509 > function, > it's co

Re: Read a PEM

2008-12-18 Thread Mounir IDRASSI
have a stack trace of the crash? What version of openssl are you using? Can you post the pem file you are using? Maybe it has some special content encoding. Cheers, -- Mounir IDRASSI IDRIX http://www.idrix.fr Moribius wrote: Hi every body. I need some help because I'm trying to read

Re: Read a PEM

2008-12-18 Thread Mounir IDRASSI
: Hi every body. I need some help because I'm trying to read a PEM file using PEM_read_X509 function, it's compiling but crash on this function when I execute the code. This code is very simple and I don't understand what is the problem! int main (int argc, char * * argv)

Read a PEM

2008-12-18 Thread Moribius
Hi every body. I need some help because I'm trying to read a PEM file using PEM_read_X509 function, it's compiling but crash on this function when I execute the code. This code is very simple and I don't understand what is the problem! int main (int argc, char * * argv) {

Re: OpenSSL newbie Question [Regd: java class to read a PEM file]

2006-11-28 Thread Julius Davies
: Hi, Isvaran, The Commons-SSL "KeyStoreBuilder" utility might help you. http://juliusdavies.ca/commons-ssl/utilities.html You could also take a look at the PKCS8Key, PEMUtil and PEMItem classes. http://juliusdavies.ca/commons-ssl/javadocs/ Good luck! yours, Julius On 11/27/06, D