Hi Edward,
The file type is PEM and SSL_use_certificate_file works fine. The problem is
with the SSL_use_certificate_chain_file.
let I put some points for more clarification.
In my application all the certificates are in PEM format and
1. Client wiil not validate the server certificate.
2. Server certificate is signed by only one root CA.
3. The file which i mentioned in the SSL_use_certificate_chain_file contains
only the servercertificate and not the root CA.
4. The application works fine when I use SSL_use_certificate_fileinstead of
SSL_use_certificate_chain_file
5. In case of connection between SSL client and server in windows, both the
function SSL_use_certificate_file and SSL_use_certificate_chain_file works
fine evne the file doesn't contain the root CA certificate.
Thanks,
Sendil
- Original Message
From: Edward Chan [EMAIL PROTECTED]
To: openssl-users@openssl.org
Sent: Tuesday, 26 December, 2006 4:19:04 AM
Subject: RE: SSL_use_certificate_chain_file error
Is the cert PEM or ASN1 encoded? I think SSL_use_certificate_chain_file() only
works with PEM. Are you passing SSL_FILETYPE_ASN1 for the type parameter to
SSL_use_certificate_file()? If so, that might explain why one works and the
other doesn't.
Ed
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sendil kumar
Sent: Sunday, December 24, 2006 10:39 PM
To: openssl-users@openssl.org
Subject: SSL_use_certificate_chain_file error
Hi All,
When I connect a SSL client from windows to SSL server in unix, the
SSL_use_certificate_chain_file errors out and returns zero and when I see the
error stack there were no errors in it but at that same time when I use
SSL_use_certificate_file it runs fine. I was unable to trace the error. Could
you please help me, this is a P1 bug reported in my application by the user and
I need to solve this as quickly as possible.
Thanks,
Sendil Kumar,
Software Engineer,
Brooks Software,
India.
Inbox full of spam? Get leading spam protection and 1GB storage with All New
Yahoo! Mail.
Send instant messages to your online friends http://uk.messenger.yahoo.com