From owner-freebsd-questions@freebsd.org Tue Mar 26 11:00:36 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 87EFB154CB58 for ; Tue, 26 Mar 2019 11:00:36 +0000 (UTC) (envelope-from yasu@utahime.org) Received: from gate.utahime.jp (gate.utahime.jp [183.180.29.210]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 59A4D8B62F for ; Tue, 26 Mar 2019 11:00:33 +0000 (UTC) (envelope-from yasu@utahime.org) Received: from eastasia.home.utahime.org (eastasia.home.utahime.org [192.168.174.1]) (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) (No client certificate requested) by gate.utahime.jp (Postfix) with ESMTPS id 8C2C836B4D for ; Tue, 26 Mar 2019 20:00:24 +0900 (JST) Received: from localhost (rolling.home.utahime.org [192.168.174.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by eastasia.home.utahime.org (Postfix) with ESMTPSA id 28FF227468; Tue, 26 Mar 2019 20:00:24 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.101.1 at eastasia.home.utahime.org Date: Tue, 26 Mar 2019 19:58:21 +0900 (JST) Message-Id: <20190326.195821.2023506369953085466.yasu@utahime.org> To: freebsd-questions@freebsd.org Subject: Re: security/ca_root_nss missing Let's Encrypt X3 certificate From: Yasuhiro KIMURA In-Reply-To: References: X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 59A4D8B62F X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of yasu@utahime.org designates 183.180.29.210 as permitted sender) smtp.mailfrom=yasu@utahime.org X-Spamd-Result: default: False [0.03 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-0.52)[-0.523,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+a:spf-authorized.utahime.org]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.83)[-0.827,0]; RCVD_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[utahime.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MX_GOOD(-0.01)[mx.utahime.org]; MID_CONTAINS_FROM(1.00)[]; NEURAL_SPAM_SHORT(0.05)[0.054,0]; IP_SCORE(0.14)[ip: (0.31), ipnet: 183.180.0.0/16(0.15), asn: 2519(0.31), country: JP(-0.07)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:2519, ipnet:183.180.0.0/16, country:JP]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Mar 2019 11:00:36 -0000 From: Andrea Venturoli Subject: security/ca_root_nss missing Let's Encrypt X3 certificate Date: Tue, 26 Mar 2019 11:16:51 +0100 > I'm having trouble connecting (e.g. with fetch) to TLS servers which > are using a Let's Encrypt certificate. > > The exact message depends on the client I use, but it goes along this > line: >>Protocol error (TLS code: >>X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY) >>SSL Certficate error: certificate issuer (CA) not known: >> /C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3 What server application you use? Let's Encrypt Authority X3 is signed by DST Root CA X3. And DST Root CA X3 is included in security/ca_root_nss. So if you configured server application properly it should be able to use server sertificates issued by Let's Encrypt. For example * Web page of FreeBSD Project (https://www.freebsd.org/) uses server sertificates issued by Let's Encrypt. * If security/ca_root_nss is installed fetch(1) uses it as CA certificate. * fetch(1) can access web page of FreeBSD Project successfully as following. yasu@eastasia[2017]% fetch -v -o /dev/null https://www.freebsd.org/ resolving server address: www.freebsd.org:443 SSL options: 82004854 Peer verification enabled Using CA cert file: /usr/local/etc/ssl/cert.pem Verify hostname TLSv1.2 connection established using ECDHE-RSA-CHACHA20-POLY1305 Certificate subject: /CN=www.freebsd.org Certificate issuer: /C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3 requesting https://www.freebsd.org/ remote size / mtime: 25662 / 1553597683 /dev/null 25 kB 134 kBps 00s yasu@eastasia[2018]% --- Yasuhiro KIMURA