From owner-freebsd-bugs@freebsd.org Fri Dec 4 08:58:07 2015 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1C81EA40FFA for ; Fri, 4 Dec 2015 08:58:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 08DD91418 for ; Fri, 4 Dec 2015 08:58:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id tB48w6NZ004341 for ; Fri, 4 Dec 2015 08:58:06 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 205011] openssl: verify error:num=20:unable to get local issuer certificate Date: Fri, 04 Dec 2015 08:58:07 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 10.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: oliver@openbrackets.net X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Dec 2015 08:58:07 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205011 Bug ID: 205011 Summary: openssl: verify error:num=20:unable to get local issuer certificate Product: Base System Version: 10.1-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Many People Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: oliver@openbrackets.net The openssl in 10.1 release fails to verify some server certificates using /usr/local/share/certs/ca-root-nss.crt. FreeBSD 10 & 10.2 both work fine. This may be an upstream issue with openssl, but I have not been able to find any reported issues. To Reproduce: $ openssl s_client -connect api.textmarketer.co.uk:443 depth=2 C = US, O = "thawte, Inc.", OU = Certification Services Division, OU = "(c) 2006 thawte, Inc. - For authorized use only", CN = thawte Primary Root CA verify error:num=20:unable to get local issuer certificate ... The same command on 10.2 (or 10) results in: $ openssl s_client -connect api.textmarketer.co.uk:443 depth=2 C = US, O = "thawte, Inc.", OU = Certification Services Division, OU = "(c) 2006 thawte, Inc. - For authorized use only", CN = thawte Primary Root CA verify return:1 ... This error message is widely reported as being due to path issues to the CA bundle. In fact on 10.1 a similar command even fails to verify other server certs with a different root CA: $openssl s_client -connect google.com:443 depth=3 C = US, O = Equifax, OU = Equifax Secure Certificate Authority verify error:num=20:unable to get local issuer certificate However the google.com Equifax secure root CA can be made to work with 10.1 if you specify the -CAfile $ openssl s_client -CAfile /usr/local/share/certs/ca-root-nss.crt -connect google.com:443 depth=3 C = US, O = Equifax, OU = Equifax Secure Certificate Authority verify return:1 This is NOT the case for the original Thawte example: $ openssl s_client -CAfile /usr/local/share/certs/ca-root-nss.crt -connect api.textmarketer.co.uk:443 depth=2 C = US, O = "thawte, Inc.", OU = Certification Services Division, OU = "(c) 2006 thawte, Inc. - For authorized use only", CN = thawte Primary Root CA verify error:num=20:unable to get local issuer certificate On FreeBSD 10 or 10.2 all CA root certs tested verify fine, with the default install without the need for CAfile. Having to pass -CAfile might be acceptable, as this is just a "packaging and OS integration issue on paths", however the fact that even with the correct -CAfile SOME root certs do NOT verify, leads me to believe that something more fundamental is broken with the openssl version in FreeBSD 10.1, which is: OpenSSL 1.0.1l-freebsd 15 Jan 2015 This was tested and verified on a clean install of 10.1-RELEASE. (NOTE: openssl from ports also works fine, even on 10.1, this report is about the openssl in the base system). -- You are receiving this mail because: You are the assignee for the bug.