From nobody Fri Sep 22 07:57:27 2023 X-Original-To: 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 4RsPkb5nQ6z4tT8L for ; Fri, 22 Sep 2023 07:57:27 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RsPkb4Zkzz4XBX for ; Fri, 22 Sep 2023 07:57:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695369447; a=rsa-sha256; cv=none; b=Z6/NBLoutCDtSvdg6FY8nkbNC44JunlmwnRTK3Qe8Gb6GCMBGEDEoVbJRQummJ1WgiOewG YZwDZXmeh7HHjOJgVB0tZ/jiaY5McELcNg2c8rj+07SCMPI3xKXavnbjL4PdxqrLYb1E/J +Pr/ZOYtVrdoVF7OP5zRAUqs+C0n1GW4tNY60VD5PMBZemFK9V660lRUEUwIfZN+2gDVgx NLR4BALfruJBlaFOo+0p+dq7/jTr92Y7Bn0wq6UIsZlfjvcxtZxc+uHl1T7d7Y8y213ZzK zz7/p/RyW8cySssqR9H4VgpvRdEGO0+5KOFgglZ7ljVH3WB8LaClMbctJjm6Rw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695369447; 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=yJMw+0p2Y6dHr3dAoMRM8EyK+kxAWJput9D7ntJO9c0=; b=iZETsNb9g5dsu2y+hux8lPD9HTkvwogsJUJa3NX0wNxj0JFZRGsyrSSv8HVurnAnbND1Sn CfR4J5UI9xy8fW+VcBg5XJkUGf3+lyYS6Aj0dfYqcs0Ykpx5qU6DSxmQTRTgFGg82ltL0e Uya+rWumZvbj3KFK6DONpQag21miC9EhV9owvSlh56nSTa8akwF3KO0rnhzG1rornW1rmU D0GnzOfeuUQP/kw4tWbWxKxGvs75CmbenA1l7JMYpE93kxLLXvhEyXmAeEBW0Ipu61DfDy gau2natVBTE4BniyeCi7l+q6dcshrclrwBlEaX2eQss25RFFtJPE4M7IVk9CSQ== 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 4RsPkb3P1yz1Byx for ; Fri, 22 Sep 2023 07:57:27 +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 38M7vRPQ024297 for ; Fri, 22 Sep 2023 07:57:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 38M7vRcf024296 for bugs@FreeBSD.org; Fri, 22 Sep 2023 07:57:27 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: bugs@FreeBSD.org Subject: [Bug 274016] certctl(8): deprecate and remove usage of /usr/local/etc/ssl/certs and /usr/local/etc/ssl/blacklisted as source for custom CA certs Date: Fri, 22 Sep 2023 07:57:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 12.4-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: michael.osipov@siemens.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274016 Bug ID: 274016 Summary: certctl(8): deprecate and remove usage of /usr/local/etc/ssl/certs and /usr/local/etc/ssl/blacklisted as source for custom CA certs Product: Base System Version: 12.4-STABLE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: michael.osipov@siemens.com While discussing Bug 269473 me and others discovered that it is an abuse of /usr/local/etc/ssl/certs and likely /usr/local/etc/ssl/blacklisted. certctl(8) defines the following input directories: > TRUSTPATH List of paths to search for trusted certificates. > Default: /usr/share/certs/trusted > /usr/local/share/certs > /usr/local/etc/ssl/certs >=20 > BLACKLISTPATH List of paths to search for blacklisted certificat= es. > Default: /usr/share/certs/blacklisted > /usr/local/etc/ssl/blacklisted TRUSTPATH: /usr/local/etc/ssl/certs When any OpenSSL derivate is installed from ports, is expects that its reha= sh algorithm puts hashed links to /usr/local/etc/ssl/certs. This is not suppos= ed to be an input directory to another hashing process, but solely output to p= orts hashing and input for any ports OpenSSL derivate. An implementation detail = so to speak. The actual subject hashing is an implementation detail and not publically documented unless you read the source code. In that spirit, this dir should be deprecated and removed w/o replacement s= ince we have /usr/local/share/certs for custom certs beyond base. BLACKLISTPATH: /usr/local/etc/ssl/blacklisted. This is logically identical to the above. /usr/local/etc/ssl serves as OPENSSLDIR. The actual, logical path should be /usr/local/share/certs/blacklisted. Identic= al approach, introduce new one, deprecate and remove old one. I am certain that I have discussed this to some degree with Kyle Evans (kevans@), but he has left the topic, unfortunately. --=20 You are receiving this mail because: You are the assignee for the bug.=