[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: Start TLS extended request



> -----Original Message-----
> From: owner-openldap-software@OpenLDAP.org
> [mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of Siva Kollipara

> Hi,
>  thanks for your earlier response. I'd had a question earlier
> regarding the use of TLS_CACERTDIR and TLS_CACERTFILE.
>
> Is it that if I have to use ssl/tls with mandatory server
> authentication
> TLS_CACERTFILE **MUST** be set (either thro program or ldap.conf or
> .ldaprc) and TLS_CACERTDIR can **optionally** be set to a directory.
>
>    TLS_CACERTFILE	TLS_CACERTDIR
> 1    null		null	 	   fails - valid reason to fail
> 2    null		valid directory    fails - why?
> 3.a  correct CA file	null		   works - ok
> 3.b  incorrect CA file	null		   fails -
> valid reason to fail
> 4.a  correct CA file	valid directory	   works - ok
> 4.b  incorrect CA file	valid directory    works - the
> directory has the correct CA file
>
> I've tried these combinations and only situations where
> TLS_CACERTFILE is
> set to a CA certficate (even some CA not included in the test picture
> at all) works. for situation (2) my certificate verify fails with the
> following error:

Try reading the documentation again. TLS_CACERTDIR requires more than just a
directory containing CA certificate files. In general it's more bother than
it's worth.

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support