Re: help on ssl authentication override, SSL Verify Depth, Cipher Suite etc
huican <[email protected]> Fri, 16 Apr 2010 23:24:53 -0700 (PDT)
| Newsgroups | gmane.comp.mozilla.devel.directory |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <2a1c749d-52bb-4889-b50b-b0606360c674@k41g2000yqf.googlegroups.com> |
Hello Anton, Thanks for your reply. On Apr 15, 8:48=A0pm, Anton Bobrov <[email protected]> wrote: > if you are looking for some code sample i dont have it for you. > while back i did implement interactive cert handling for LDAP > tools like ldapsearch, ldapmodify etc, similar to what you have > in Firefox when site certificate is invalid. that code never > made it to them tools because of bureaucracy and i dont have it > anymore. i dont remember what i was doing there exactly but you > should start with this NSS APIhttp://www.mozilla.org/projects/security/pk= i/nss/ref/ssl/sslfnc.html#... > > On 14/04/2010 18:56, huican wrote: > > > Thanks. Anton, > > > Do you have more detailed suggestions, especially for 1:). > > > For:> =A01:) And I am trying to let my ldap client (using c-sdk) to > > accept some > >> authentication cases, such as: > >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > >> =A0 =A0Certificate Has Expired. > >> =A0 =A0Allow Self Signed > >> =A0 =A0Certificate Not Yet Valid > >> =A0 =A0... > >> Can the c-sdk allow me to override them? > > > I still do know how. > > > For> =A02:) Also can NSS allow me to specify SSLVerifyDepth when > >> authentication the Cert from ldap server? > > > Probably NSS doesn't do that, so there is no way to achieve it. > > > For 3:) How can I specify the Cipher Suites I want to use for the ssl > >> connection? > > > I noticed that I can crack the lib API, such as: > > ldapssl_advclientauth_init to SSL_CipherPrefSetDefault to do that. > > So it is not a problem anymore. > > > Thanks > > > On Apr 14, 3:59 am, Anton Bobrov<[email protected]> =A0wrote: > >> yes, you gonna have to address that via NSS SSL API. > > >> On 14/04/2010 04:16, huican wrote: > > >>> Hello Anton, > > >>> Do you have any suggestions here? Is there any easy way to crack on > >>> the csdk level? or I have to crack it on the NSS lib, and how? > >>> I am using the ldap csdk 6.0.4.1. > > >>> Thanks > > >>> On Apr 12, 4:02 pm, huican<[email protected]> =A0 =A0wrote: > >>>> Hello, > > >>>> I read through the doc about the c-sdk about the "connection over > >>>> ssl". It is not very detailed, and now I have some questions. > > >>>> 1:) And I am trying to let my ldap client (using c-sdk) to accept so= me > >>>> authentication cases, such as: > >>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > >>>> =A0 =A0 Certificate Has Expired. > >>>> =A0 =A0 Allow Self Signed > >>>> =A0 =A0 Certificate Not Yet Valid > >>>> =A0 =A0 ... > >>>> Can the c-sdk allow me to override them? > > >>>> 2:) Also can NSS allow me to specify SSLVerifyDepth when > >>>> authentication the Cert from ldap server? > > >>>> 3:) How can I specify the Cipher Suites I want to use for the ssl > >>>> connection? > > >>>> Thanks > >>>> Huican Ping > > >>> _______________________________________________ > >>> dev-tech-ldap mailing list > >>> [email protected] > >>>https://lists.mozilla.org/listinfo/dev-tech-ldap > > > _______________________________________________ > > dev-tech-ldap mailing list > > [email protected] > >https://lists.mozilla.org/listinfo/dev-tech-ldap