How to convert X509 object into a description string?

2008-05-24 Thread Zhihai Wang
Dear all, How to convert an X509 object retrieved from d2i_X509 into a descriptive string? Or how to convert a DER format array retrieved from i2d_X509 into a descriptive string? Or are there any APIs easy to use to retrieve entries in a certificate object such as "issuerName" and "serialNumber"

Re: [Base64 Decoding] Bug when decoding??

2008-05-24 Thread karim Bendadda
Thank you Steve for help. I tried to use the BIO_FLAGS_BASE64_NO_NL flag in my code. This works fine. Thank you everybody again for help. On Fri, May 23, 2008 at 12:24 PM, Dr. Stephen Henson <[EMAIL PROTECTED]> wrote: > On Fri, May 23, 2008, karim Bendadda wrote: > > > Hi Stephen, > > > >

argument 2 of 'd2i_RSA_PUBKEY' from incompatible pointer type

2008-05-24 Thread Thomas Mangold
Hello, I try to serialise a RSA key into a buffer. I tried both pairs int i2d_RSAPublicKey(RSA *a, unsigned char **pp); RSA * d2i_RSAPublicKey(RSA **a, unsigned char **pp, long length); and RSA * d2i_RSA_PUBKEY(RSA **a, unsigned char **pp, long length); int i2d_RSA_PUBK

Re: Certificate verification fails on MIPS architecture

2008-05-24 Thread Lutz Jänicke
Till Elsner schrieb: Hi, I'm running a program using some OpenSSL features for certificate handling on an MIPS architecture (Linksys WRT router with OpenWRT firmware). On an x86 Linux everything works fine, but on the router the certficate verification using X509_verify_cert fails. The certi

Same password for leaked private key

2008-05-24 Thread Laurent Birtz
Hello, due to the recent vulnerability in Debian related to SSL I am regenerating some SSL certificates used in my organization. My certificates are issued with the following command, which prompt for a password: openssl req -new -x509 -keyout ca_key.pem -out ca_cert.pem -days 3650 I am wonderi