Thanks, Joshua. This is very helpful.<br><br>-Jake<br><br><br><br><div><span class="gmail_quote">On 7/16/07, <b class="gmail_sendername">Joshua M. Miller</b> &lt;<a href="mailto:joshua@itsecureadmin.com">joshua@itsecureadmin.com
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi David,<br><br>If you are using a self-signed certificate (ie, the CN on the CA cert is
<br>the same domain as the CN on the LDAP cert) then OpenLDAP will reject<br>the certificate by default.<br><br>You can see from the message that it found the certificate by the<br>message &quot;certificate verify failed&quot; in the error message.
<br><br>If you want to keep using this certificate, you can add the following<br>line to your /etc/openldap/ldap.conf:<br><br>TLS_REQCERT never<br><br>This will allow ldapsearch to function while ignoring this error.<br><br>
Please note the consequences of this action in the man page for ldap.conf.<br><br>Good luck,<br>--<br>Joshua M. Miller - RHCE,VCP<br><br><br>J Davis wrote:<br>&gt; Hello,<br>&gt;<br>&gt; I have FDS 1.0.4 running using an SSL certificate generated by an
<br>&gt; Microsoft windows 2003 CA server.<br>&gt; I choose this method as opposed to the setupssl.sh script from the wiki<br>&gt; because I have read in the list archives that it is the best way to<br>&gt; avoid trust issues when setting up PassSync over SSL between FDS and AD.
<br>&gt; I&#39;m having a hard time finding references for configuring this properly<br>&gt; and I know very little about SSL certificates so I&#39;m making some guesses<br>&gt; and likely missing a crucial step or two.<br>
&gt; The problem is that when trying to bind to the FDS using SSL I get<br>&gt; certificate verification errors.<br>&gt;<br>&gt;&nbsp;&nbsp;&gt; # ldapsearch -x -H ldaps://localhost/<br>&gt;&nbsp;&nbsp;&gt; ldap_bind: Can&#39;t contact LDAP server (-1)
<br>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; additional info: error:14090086:SSL<br>&gt; routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed<br>&gt;<br>&gt; Here&#39;s how I set up the certificates...<br>&gt; 1. Generated a CSR using the FDS console wizard and submitted it to the
<br>&gt; MS CA.<br>&gt; 2. Imported the CA certificate (called &quot;it&quot;) and the signed<br>&gt; &quot;server-cert&quot; resulting from step 1 from the MS CA using the FDS admin<br>&gt; console.<br>&gt; 3. Enabled SSL (port 636) in the directory server using server-cert from
<br>&gt; step 1.<br>&gt;<br>&gt; I used certutil to display the list of certificates in the FDS cert db.<br>&gt;&nbsp;&nbsp;&gt; [alias]# ../shared/bin/certutil -L -d . -P slapd-&lt;instance&gt;-<br>&gt;&nbsp;&nbsp;&gt; server-cert&nbsp;&nbsp;&nbsp;&nbsp;u,u,u<br>
&gt;&nbsp;&nbsp;&gt; it&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CT,,<br>&gt;<br>&gt; Then verified that &quot;server-cert&quot; was considered valid.<br>&gt;&nbsp;&nbsp;&gt; [alias]# ../shared/bin/certutil -V -n server-cert -e -u V -d . -P<br>&gt; slapd-&lt;instance&gt;-
<br>&gt;&nbsp;&nbsp;&gt; Enter Password or Pin for &quot;NSS Certificate DB&quot;:<br>&gt;&nbsp;&nbsp;&gt; certutil-bin: certificate is valid<br>&gt;<br>&gt; I also verified that that I can connect using openssl client.<br>&gt;&nbsp;&nbsp;&gt; # openssl s_client -connect localhost:636 -showcerts -CAfile
<br>&gt; /path/to/it_ca.crt<br>&gt;&nbsp;&nbsp; --snip--<br>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; Verify return code: 0 (ok)<br>&gt;&nbsp;&nbsp;&gt; ---<br>&gt;<br>&gt; Any hints as to what I might be doing wrong are greatly appreciated.<br>&gt;<br>&gt; Thanks,<br>
&gt; -Jake<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; ------------------------------------------------------------------------<br>&gt;<br>&gt; --<br>&gt; Fedora-directory-users mailing list<br>&gt; <a href="mailto:Fedora-directory-users@redhat.com">
Fedora-directory-users@redhat.com</a><br>&gt; <a href="https://www.redhat.com/mailman/listinfo/fedora-directory-users">https://www.redhat.com/mailman/listinfo/fedora-directory-users</a><br><br>--<br>Fedora-directory-users mailing list
<br><a href="mailto:Fedora-directory-users@redhat.com">Fedora-directory-users@redhat.com</a><br><a href="https://www.redhat.com/mailman/listinfo/fedora-directory-users">https://www.redhat.com/mailman/listinfo/fedora-directory-users
</a><br></blockquote></div><br>