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
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?
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
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
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
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
:
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)
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)
{
:
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