From nobody Wed Jan 08 16:46:18 2025 X-Original-To: ports-bugs@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 4YSv225q3sz5klRZ for ; Wed, 08 Jan 2025 16:46:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YSv2246Jkz3yDn for ; Wed, 8 Jan 2025 16:46:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736354778; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ofn6zh/RT+hYLA1vyTPhsQ2lkBRaqFsG86VPZq9eVHg=; b=GfPkvtTs4pPd1w36vZK8yU1eHJUJ/iUJoKR2taApAMkompCm3Hnzncd9/b0rbeg8cONdzb aPrHGnXW1hSgfzhnT81YtfRRsMrvAn6YkOXZKLDUrjuDxY98giDdQSp9YL0HjYBlhBkS/Z cBb28wTZw65zGUt8XeA/GHllvt5cyp7cPlHGiUf8tGAlQ1YWAf5AukCA1rp6Z628dscSWe ezq/UutBjKEMvkvBPPpTKeQCA+wSQVT2pK7rKu2ymRGNbg2SB09ofpnIbjEXCn+LYaDdVb 1GnYiqfZeRtlVLZT5XjIZma1Ioe7AYzMn8d1dcZbQCRwuVe6AgWFya/azQFiFg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1736354778; a=rsa-sha256; cv=none; b=VCNAf3PkQw4Y5qUxvMu6Qhz4AMc/jFps8z6i7bpLX0YPQi8vfLvjwBxOtZoZiAaM8qmZXw mr3iE2pc0CFv51U89oXWe6Qv53G/OJvMzx0ngnrbNdsaGdNxUjZwbknufkny3gv7nGxwHv 3W/iqVLAwJskRpMBg/HbPE0r3pxJY/xkvOxNU++Kr3mnggf5Ha5YonHmjmn+CtmwaiQwlC tO0yDWZlSwxEc6Q65DPITFpLHOQTwJViv1nZoS7sFI5xMMUeiVp9vRDUULNV6xByM9wTfb WhO2yHqyK6CDeTknaSrB5Pr2BSTHLwqf3ZXdJ5ufBOXEdFU1OdLZV37vvT40YQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YSv2237N3z144j for ; Wed, 08 Jan 2025 16:46:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 508GkIBv015131 for ; Wed, 8 Jan 2025 16:46:18 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 508GkI07015130 for ports-bugs@FreeBSD.org; Wed, 8 Jan 2025 16:46:18 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 283932] www/p5-Tiny-HTTP: uses security/ca_root_nss but certctl is useless Date: Wed, 08 Jan 2025 16:46:18 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dvl@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-secteam@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283932 Bug ID: 283932 Summary: www/p5-Tiny-HTTP: uses security/ca_root_nss but certctl is useless Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-secteam@FreeBSD.org Reporter: dvl@FreeBSD.org Flags: maintainer-feedback?(ports-secteam@FreeBSD.org) Assignee: ports-secteam@FreeBSD.org One of the goals of certctl is to manage trusted certificates, in our case a private CA we use in-house. Using cerctl, tools which use OpenSSL succeed, tools which do not fail. I'm opening this PR in the hopes of improving those which do not. Case in point, p5-Tiny-HTTP will use the first file it finds in this list (= from https://github.com/Perl-Toolchain-Gang/HTTP-Tiny/blob/master/lib/HTTP/Tiny.= pm#L1667): foreach my $ca_bundle ( "/etc/ssl/certs/ca-certificates.crt", # Debian/Ubuntu/Gentoo et= c. "/etc/pki/tls/certs/ca-bundle.crt", # Fedora/RHEL "/etc/ssl/ca-bundle.pem", # OpenSUSE "/etc/openssl/certs/ca-certificates.crt", # NetBSD "/etc/ssl/cert.pem", # OpenBSD "/usr/local/share/certs/ca-root-nss.crt", # FreeBSD/DragonFly "/etc/pki/tls/cacert.pem", # OpenELEC "/etc/certs/ca-certificates.crt", # Solaris 11.2+ ) { return ( SSL_ca_file =3D> $ca_bundle ) if -e $ca_bundle; } Based on the above, the first item Tiny::HTTP will find on FreeBSD is the "OpenBSD" file: $ ls -l /etc/ssl/cert.pem -rw-r--r-- 1 root wheel 748902 Apr 18 2024 /etc/ssl/cert.pem $ pkg which /etc/ssl/cert.pem /etc/ssl/cert.pem was installed by package ca_root_nss-3.93_2 It will ignore what's in /etc/ssl/certs which is where certctl puts the pri= vate CA for us. OpenSSL users will find and honor the private CA, but not Tiny::= HTTP orders. I do have a patch which "fixes" Tiny::HTTP at the expense of mangling security/ca_root_nss $ git diff diff --git a/security/ca_root_nss/Makefile b/security/ca_root_nss/Makefile index ce23fe17c535..75c02ef56968 100644 --- a/security/ca_root_nss/Makefile +++ b/security/ca_root_nss/Makefile @@ -39,6 +39,7 @@ do-build: ${PERL} ${WRKDIR}/${BUNDLE_PROCESSOR} \ < ${WRKSRC}/${CERTDATA_TXT_PATH} > \ ${WRKDIR}/ca-root-nss.crt + cat ${FILESDIR}/our-ca.pem >> ${WRKDIR}/ca-root-nss.crt do-install: ${MKDIR} ${STAGEDIR}${PREFIX}/${CERTDIR} $=20 Where our-ca.pem is our private CA --=20 You are receiving this mail because: You are the assignee for the bug.=