Evan Cross wrote:
> 
> Hi again,
>  I think i have finally found the problem I have been
> having. I re wrote to verify_callback function to something
> similar to that in s_cb.c.
>  I have a verify_depth set at zero but my depth read from
> X509_STORE_CTX_get_error_depth(ctx) is always 1.
>  My routine always shows the root certificate but complains
> that it can't find the root issuer which is wrong because
> it is the issuer!
>  I have a switch case in my routine similar to that of the
> verify_depth in s_cb and after the first error about the
> issuer the second error says that the cert chain is to long.
>  I am completley lost now. So I really need some help
> 

Looks like you've set the verify depth to something too small and its
complaining that it had to exceed the depth. The verify depth determines
how many certificates can be in a chain. It used to be useful when
OpenSSL couldn't properly validate CA certificates and if you allowed
untrusted intermediate certificates it would allow user certificates to
impersonate CAs.

However now it properly checks CA certificates its best just to set the
verify depth to a suitably large value (9 say) and leave it at that.

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