Mike Zeoli wrote:
> 
> Hello Everyone,
> 
> 
> 
> As stated before, this same certificate chain gets verified just fine when
> doing server authentication only.
> 
> I have debugged into the library and know the following additional
> information:
> - In x509_vrfy.c:check_chain_purpose(), in the server auth. only example,
> ctx->last_trusted is set to 1, while for my client and server authentication
> example, it is set to 2.  The function is dying on my intermediate
> certificate.  if last_trusted == 1. it just checks the validity of the
> server certificate, but when last_trusted==2, it assumes that my
> intermediate certificate is also untrusted, this causes X509_check_purpose()
> to return 1 which then sets ctx->error to X509_V_ERR_INVALID_CA.
> 
> Also, I do use load_verify_locations to load a trusted certificates file
> which contains both the root and intermediate CA certificates.
> 

Oddly enough it is telling you the intermediate CA is invalid. The
actual criteria it uses are mentioned in the 'x509' utility
documentation and there is a flag to check this yourself.

OpenSSL in the past tolerated invalid CAs but now it doesn't since it is
a dirty great big security whole.

I suggest you fix your intermediate CA by adding the appropriate
extensions to it, its probably missing the CA flag of basicConstraints.

If you can't work out the problem then post the certificate to the list.

Steve.
-- 
Dr Stephen N. Henson.   http://www.drh-consultancy.demon.co.uk/
Personal Email: [EMAIL PROTECTED] 
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the   OpenSSL project: http://www.openssl.org/
Business Email: [EMAIL PROTECTED] PGP key: via homepage.

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to