From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22637 invoked by alias); 6 Aug 2019 15:23:48 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 22629 invoked by uid 89); 6 Aug 2019 15:23:48 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.1 spammy=ssl, issuer, H*c:alternative, alert X-HELO: mail-qk1-f194.google.com Received: from mail-qk1-f194.google.com (HELO mail-qk1-f194.google.com) (209.85.222.194) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 06 Aug 2019 15:23:46 +0000 Received: by mail-qk1-f194.google.com with SMTP id w190so63166262qkc.6 for ; Tue, 06 Aug 2019 08:23:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=c09SxEQgEK+OxZlqCqxcD3w4UKKFJv3E+t4qn1ldUis=; b=NKCnMkwtj2d+WUXGuxuxj5kKHlK+c7vu4p0EzViK8fR2Fyp/DHRdPveeWqRM3mIrd+ eC69VjyTZ5IiD5C/SzGEv+8nSYf+jxAnrOYqi7lW7eoKwWwycsFn+j+d0IJgdG/rnecp C/4KXPZsuNEe0EB3H9UK9M8NG4NtqQxSvxE7hixb9m+gyeOKT28ZMdFEyK/eaR5vLHc4 spDTgSKpNWbF1lGEsr1zqbvMch+4gjBY/5k2ojSnWbS/toDhsMfimRDJOCsJaUCy/Wpr LxCbCS3rW6/zcZGDcraAIRTtaaetBuUotowkHuJ/cVuXjJ5H/kjaOW/TL0HQ2M17Gua6 pRSw== MIME-Version: 1.0 References: <87ftmje5zb.fsf@Rainer.invalid> <874l2y4ulo.fsf@Rainer.invalid> <228DE7899A9CF9C913C8B1B8@192.168.1.39> <38c09027-12a9-4b38-b28c-fb3683815928@SystematicSw.ab.ca> In-Reply-To: <38c09027-12a9-4b38-b28c-fb3683815928@SystematicSw.ab.ca> From: David Goldberg Date: Tue, 06 Aug 2019 15:23:00 -0000 Message-ID: Subject: Re: Openldap 2.4.48-1 vs my company's pki To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2019-08/txt/msg00073.txt.bz2 Thank you, Brian that got me to a local build. Unfortunately that has the same error as the binary installation of 2.4.48. Here are relevant snippets of the output from each version: 2.4.42 which works: TLS trace: SSL_connect:before/connect initialization TLS trace: SSL_connect:SSLv2/v3 write client hello A TLS trace: SSL_connect:SSLv3 read server hello A TLS certificate verification: depth: 2, err: 0, subject: /CN=3DMYCOMPANY BA ROOT, issuer: /CN=3DMYCOMPANY BA ROOT TLS certificate verification: depth: 1, err: 0, subject: /DC=3DORG/DC=3DMYCOMPANY/CN=3DMYCOMPANY BA NPE CA-3, issuer: /CN=3DMYCOMPAN= Y BA ROOT TLS certificate verification: depth: 0, err: 0, subject: /O=3Dmycompany.tld/OU=3DServers/CN=3Duds.mycompany.tld, issuer: /DC=3DORG/DC=3DMYCOMPANY/CN=3DMYCOMPANY BA NPE CA-3 TLS trace: SSL_connect:SSLv3 read server certificate A TLS trace: SSL_connect:SSLv3 read server key exchange A TLS trace: SSL_connect:SSLv3 read server done A TLS trace: SSL_connect:SSLv3 write client key exchange A TLS trace: SSL_connect:SSLv3 write change cipher spec A TLS trace: SSL_connect:SSLv3 write finished A TLS trace: SSL_connect:SSLv3 flush data TLS trace: SSL_connect:SSLv3 read finished A 2.4.48 which doesn=E2=80=99t: TLS trace: SSL_connect:before SSL initialization TLS trace: SSL_connect:SSLv3/TLS write client hello TLS trace: SSL_connect:SSLv3/TLS write client hello TLS trace: SSL_connect:SSLv3/TLS read server hello TLS certificate verification: depth: 2, err: 19, subject: /CN=3DMYCOMPANY BA ROOT, issuer: /CN=3DMYCOMPANY BA ROOT TLS certificate verification: Error, self signed certificate in certificate chain TLS trace: SSL3 alert write:fatal:unknown CA TLS trace: SSL_connect:error in error TLS: can't connect: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed (self signed certificate in certificate chain). I'm stumped at this point. Thanks On Mon, Aug 5, 2019, 18:41 Brian Inglis wrote: > On 2019-08-05 14:06, David Goldberg wrote: > > On Mon, Aug 5, 2019, 15:25 Quanah Gibson-Mount wrote: > >> On Monday, August 05, 2019 9:22 AM -0400 David Goldberg wrote: > >>> Sorry, was away from work over the weekend. I just tested with openssl > >>> s_client and it works just fine. Version is 1.1.1. there is no self > >>> signed certificate. It's signed with the company pki rather than > >>> commercial and I've properly installed that chain. The problem send to > be > >>> with the new build, at least the weird ldd output leads me to that > >>> conclusion. I'll try to find some time to build from source and see if > it > >> Do you mean you connected to the ldap server using OpenSSL s_client to > >> confirm that works? If that works and the ldapsearch (or other ldap > >> client) binary does not, then you likely have a global /etc/ldap.conf > (or > >> whereever this build looks for it) or a ~/.ldaprc file that defines the > >> path or file to find the CA certificate that would need updating. > > Correct, openssl s_client works, as does the older build of ldapsearch. > I > > can't find any .ldaprc nor ldap.conf files on my system. > > Unfortunately I've only set up my system for end user purposes. Building > > from source will be a challenge. Any guidance (a link is fine) on what > > packages to install to set that up? And do I need to worry about the > > .cygport and patch files in the source distribution or will configure > pick > > them up? > > Install the cygport package and all its dependencies, plus the openldap > source > package, plus any build dependency packages named in the openldap.cygport > DEPEND=3D"" list. > > Change to the directory containing openldap.cygport and type: > > $ cygport openldap.cygport download all test > > and deal with any missing lib*-devel packages or other issues arising > during the > build. > > -- > Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada > > This email may be disturbing to some readers as it contains > too much technical detail. Reader discretion is advised. > > -- > Problem reports: http://cygwin.com/problems.html > FAQ: http://cygwin.com/faq/ > Documentation: http://cygwin.com/docs.html > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > > -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple