From nobody Sat Aug 13 09:51:26 2022 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4M4bR643g4z4YSNj for ; Sat, 13 Aug 2022 09:51:30 +0000 (UTC) (envelope-from tijl@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4M4bR63cN3z3SnM; Sat, 13 Aug 2022 09:51:30 +0000 (UTC) (envelope-from tijl@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660384290; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3rgzJySKmLW78VIJaDm28br3JCLtECx2x56E/LWavqY=; b=qMyLGak9hENGaKJ+1hUaAmSV/cVN0v4ILPo8FiOHasSpulQzneuQ7oPS+Bee7RYRukgh6V xFXgffmDlMDuyiwvEGHQmdLYcg5TqV9+YdEBHANDTvd8Wgm9gitLMaKxUzKKUcPYLp/aL+ sHEEe+VE7a37bd/SaXJJGmIufOrFSBsipHw1FX+mEpYd8rr1qx6mXq7JcK7dq3pWIIucT4 DfPNb4cAH4v0gqFNXNSdILfZiPFZLlasioTv6HnD9nHOJWCjIMUYYpJsryZCNXsA6sEoMj jEQp/KD64OJNr/Q6+gMnhVzNOW5Ak33FG1ckCgXR9VW3rJNRml2YIfFMtxeSOA== Received: from localhost (unknown [IPv6:2a02:a03f:894b:4700:3cf8:e3c1:2cb7:aa31]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: tijl) by smtp.freebsd.org (Postfix) with ESMTPSA id 4M4bR56VRKzfLs; Sat, 13 Aug 2022 09:51:29 +0000 (UTC) (envelope-from tijl@FreeBSD.org) Date: Sat, 13 Aug 2022 11:51:26 +0200 From: =?UTF-8?B?VMSzbA==?= Coosemans To: Andrea Venturoli Cc: novel@FreeBSD.org, freebsd-ports@freebsd.org Subject: Re: Again on security/gnutls certificate store Message-ID: <20220813115126.2deda35d@FreeBSD.org> In-Reply-To: <02cb8bc2-8d91-8d58-e764-baab240680bf@netfence.it> References: <02cb8bc2-8d91-8d58-e764-baab240680bf@netfence.it> List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660384290; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3rgzJySKmLW78VIJaDm28br3JCLtECx2x56E/LWavqY=; b=dCctXXlzO604LDWETEMa1ogqh/h80q07zKRHk3cguKcaGDYe5x+IKUzirhLHMQXBTJapzE 3BQH+WkdljGveRWOxeCtaPtX4mce3bEcF00QAzWpXc6DXyT7bT3fWdtcI3w/CMqY7gOp6m ajjnp2sETG8NOUu1XJZWgbIfo6g134rDTv39/rPCCiUaO0rwHdUzCDFcxJ4aGeP4rPoiRR hszEZ75wjL3WzPrA9ynJKhtnxnWYvfbtV+cSkPForfoeEA+wAwyv6PU3r75rcXHt4bt3HX 1St+xtKzqBlk/OnnNc18LwohIzVnOhfl8mJGDB/AEV/uZ1SJMTr+vze4Pz2/vQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660384290; a=rsa-sha256; cv=none; b=ODHhm6JO00PiLlne9zpcdMd4R80C+TDHi/M0mPxV/DZJ8c9Sg7IoxwrCdNvzSjPZ/K0pag HQeY0AcWvHmh93swfl+Pri1QDm47eV642P6Xkr5Nd3+4Y3S3vyz223srGPsIkykMEMnOaN xBz72VLyu5lslOe6XtMi2ENt9rXKOXM8eCFT0YsPEJT1e/diS+DUKG9tb3f0eQ84Ue7U8v Jn2jXkILUBuJVq7XBtcsmAkB0A7IMaRlsJRDhYOvhXHJr2f9XQeMOnHoyzgnJtABZxF582 nFGBgLDcuk+h25ynJtedvbB5BthjqVtfOnPvVZ02dWciDmkN8Jb67c6yfMWSdQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N On Sat, 13 Aug 2022 10:35:21 +0200 Andrea Venturoli wrote: > Hello. > > I'm building my ports with Poudriere using quarterly branch. Also I need > a private CA (whose cert is is correctly hashed in /etc/ssl/certs). > > Some time ago, since gnutls didn't pick up my cert, I reported #260723 > (security/gnutls uses only security/ca_root_nss as certificate store) > This bug was referring to the case where P11KIT option was off. > > Recently, however, building net/glib-networking will fail unless P11KIT > option is ON. > In this latter case gnutls delegates certificate management to p11-kit > (forgive me if this is not 100% correct, but I think this is enough in > this context), which, again, doesn't pick up my cert. > > So I'm asking what to do: > _ reopen the old bug (the problem is still the same, but with a > different configuration)? > _ open a new bug, still against gnutls? > _ open a bug against p11-kit? > > bye & Thanks > av. Try this patch for p11-kit. If it works you can file a bug against p11-kit, because I believe ports are supposed to move away from ca_root_nss. --- a/security/p11-kit/Makefile +++ b/security/p11-kit/Makefile @@ -25,7 +25,7 @@ MESON_ARGS= -Dbash_completion=enabled \ -Dlibffi=enabled \ -Dnls=false \ -Dtrust_module=enabled \ - -Dtrust_paths=${LOCALBASE}/share/certs/ca-root-nss.crt + -Dtrust_paths=/etc/ssl/certs OPTIONS_DEFINE= DOCS MANPAGES TEST OPTIONS_SUB= yes