From owner-freebsd-questions@freebsd.org Fri Jun 5 15:08:42 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D020432E59A for ; Fri, 5 Jun 2020 15:08:42 +0000 (UTC) (envelope-from ml@netfence.it) Received: from soth.netfence.it (net-2-44-121-52.cust.vodafonedsl.it [2.44.121.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mailserver.netfence.it", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49dmHs525Tz43nR for ; Fri, 5 Jun 2020 15:08:41 +0000 (UTC) (envelope-from ml@netfence.it) Received: from alamar.ventu (alamar.local.netfence.it [10.1.2.18]) (authenticated bits=0) by soth.netfence.it (8.15.2/8.15.2) with ESMTPSA id 055F8UQ8072041 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO) for ; Fri, 5 Jun 2020 17:08:33 +0200 (CEST) (envelope-from ml@netfence.it) X-Authentication-Warning: soth.netfence.it: Host alamar.local.netfence.it [10.1.2.18] claimed to be alamar.ventu Subject: Openssl on 11.x and expired certificates [was: IMAP && Server certificate has expired] To: freebsd-questions@freebsd.org References: <5e1a71cd-6837-47f1-b485-c583550db48a@unixarea.de> From: Andrea Venturoli Message-ID: <247ae2fd-a7e8-146b-be43-47ca247cca10@netfence.it> Date: Fri, 5 Jun 2020 17:08:30 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 49dmHs525Tz43nR X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=none) header.from=netfence.it; spf=pass (mx1.freebsd.org: domain of ml@netfence.it designates 2.44.121.52 as permitted sender) smtp.mailfrom=ml@netfence.it X-Spamd-Result: default: False [-2.51 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:2.44.121.52]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.96)[-0.965]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; NEURAL_SPAM_SHORT(0.16)[0.160]; DMARC_POLICY_ALLOW(-0.50)[netfence.it,none]; NEURAL_HAM_MEDIUM(-0.90)[-0.903]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:30722, ipnet:2.44.0.0/16, country:IT]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jun 2020 15:08:42 -0000 On 2020-06-01 00:16, Garance A Drosehn wrote: > There is a cert from AddTrust which expired early on Saturday. I > believe it was the cert for certificate-authority named USERTrust RSA. > This shouldn't have been a problem, because there is a newer cert for > that same CA which has not expired. > > I do not understand all the details, but apparently there is a bug in > versions of OpenSSL which are older than version 1.1. If the older > (now-expired) cert is known on some system, it is used instead of the > newer cert. And therefore that cert, and every cert which was generated > by that CA is also considered invalid. This problem hit us at RPI on > many Redhat systems yesterday. > > I also saw the problem in Mail.app on some of my older MacOS systems, > but Mail.app does not have this problem on MacOS catalina. I can see it too, on many sites. E.g. "openssl s_client -connect www.allmusic.com:https" passes verification on 12.1, but fails on 11.3. Deleting the expired certificate from /etc/ssl/cert.pem is enough to solve the problem. Is anyone looking into this? What is the official position/suggestion for those stuck on 11.x? Has at least a bug been reported? bye & Thanks av.