From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Enge Subject: Re: [PATCH] gnu: gnutls: Configure location of system-wide trust store Date: Wed, 25 Feb 2015 01:25:37 +0100 Message-ID: <20150225002537.GA6962@debian> References: <87r3u7di49.fsf@netris.org> <20150204123652.GA21908@debian.eduroam.u-bordeaux.fr> <87wq3jah2w.fsf@netris.org> <20150215091632.GA9692@debian> <87sie79km0.fsf@netris.org> <87mw441fdp.fsf@gnu.org> <87sidvhx0t.fsf@netris.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47159) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQPnU-0006zz-Hi for guix-devel@gnu.org; Tue, 24 Feb 2015 19:25:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQPnT-0005Nc-Ly for guix-devel@gnu.org; Tue, 24 Feb 2015 19:25:52 -0500 Content-Disposition: inline In-Reply-To: <87sidvhx0t.fsf@netris.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Mark H Weaver Cc: guix-devel@gnu.org On Tue, Feb 24, 2015 at 03:31:14PM -0500, Mark H Weaver wrote: > The single-file bundle is just a concatenation of all the individual PEM > data, starting with "-----BEGIN CERTIFICATE-----" and ending with > "-----END CERTIFICATE-----", including those delimiters. > The only caveat is that the individual PEM files are not required to > have a newline after the "-----END CERTIFICATE-----", but in the > single-file cert bundle, we must ensure that the newline is present. I just did a "cat" of two .pem files from nss-certs, and the result looked good. There are comment lines (starting with #) between the "-----END CERTIFICATE-----" and the following "-----BEGIN CERTIFICATE-----", which I hope is okay. > I think it belongs in the profile generation code for the benefit of > users running Guix packages on top of another distro, where they might > not have root access. They can simply set GIT_SSL_CAINFO and > SSL_CERT_FILE to ~/.guix-profile/etc/ssl/ca-certificates.crt > What do you think? Yes, that sounds like the right approach: Create a concatenation of all the files in ~/.guix-profile/etc/ssl/certs . Andreas