Re: Problem using ldaps with two different CA cert files

2008-09-11 Thread Rich Megginson
Michael Ströder wrote: > Rich Megginson wrote: > >> Is it possible to use two different CA certs in a single python-ldap >> app? >> > > There are two options: > > 1. Stuff all trusted CA certs into one "PEM" file and use > ldap.set_option(ldap.OPT_X_TLS_CACERTFILE, '/path/to/allcacerts.pem

Re: Problem using ldaps with two different CA cert files

2008-09-11 Thread Michael Ströder
Rich Megginson wrote: > Is it possible to use two different CA certs in a single python-ldap > app? There are two options: 1. Stuff all trusted CA certs into one "PEM" file and use ldap.set_option(ldap.OPT_X_TLS_CACERTFILE, '/path/to/allcacerts.pem') 2. Copy all CA certs in a directory and use

Problem using ldaps with two different CA cert files

2008-09-10 Thread Rich Megginson
The following code does not work in a couple of different places: import sys import ldap, ldap.ldapobject ldap.set_option(ldap.OPT_DEBUG_LEVEL, 255) ldap.set_option(ldap.OPT_X_TLS_CACERTFILE, '/path/to/ca1.pem') conn1 = ldap.ldapobject.LDAPObject('ldaps://server1.domain:636') #conn1.set_option(lda