From owner-freebsd-mono@freebsd.org Sun Jul 15 21:01:27 2018 Return-Path: Delivered-To: freebsd-mono@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 6D73E1028F56 for ; Sun, 15 Jul 2018 21:01:27 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 2CA1F70041 for ; Sun, 15 Jul 2018 21:01:27 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id E03801028F47; Sun, 15 Jul 2018 21:01:26 +0000 (UTC) Delivered-To: mono@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 CC5A11028F46 for ; Sun, 15 Jul 2018 21:01:26 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 64C1F70039 for ; Sun, 15 Jul 2018 21:01:26 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id C1CCF9C6A for ; Sun, 15 Jul 2018 21:01:25 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w6FL1PAU098299 for ; Sun, 15 Jul 2018 21:01:25 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w6FL1PO5098292 for mono@FreeBSD.org; Sun, 15 Jul 2018 21:01:25 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <201807152101.w6FL1PO5098292@kenobi.freebsd.org> X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@FreeBSD.org using -f From: bugzilla-noreply@FreeBSD.org To: mono@FreeBSD.org Subject: Problem reports for mono@FreeBSD.org that need special attention Date: Sun, 15 Jul 2018 21:01:25 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-mono@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Mono and C# applications on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jul 2018 21:01:27 -0000 To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- Open | 206593 | lang/mono: fix kevent-based file system monitor o 1 problems total for which you should take action. From owner-freebsd-mono@freebsd.org Fri Jul 20 17:24:47 2018 Return-Path: Delivered-To: freebsd-mono@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 A0CD6104CB50 for ; Fri, 20 Jul 2018 17:24:47 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 1C82485854 for ; Fri, 20 Jul 2018 17:24:47 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id CFC91104CB4C; Fri, 20 Jul 2018 17:24:46 +0000 (UTC) Delivered-To: mono@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 915CC104CB48; Fri, 20 Jul 2018 17:24:46 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2A3C18583F; Fri, 20 Jul 2018 17:24:43 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 6285D2147B; Fri, 20 Jul 2018 13:24:36 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Fri, 20 Jul 2018 13:24:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=l0eiCp11lqM2L1HEkcbWN+FOJu9xXXlB6ed0EBCAllE=; b=VFmZOWLX rPu4NJ1winKiYnJtxvumxxnAsD0bZncE6LyYPQmn75+MdkYmHyH97BTRSPYQvQty Uow3w8Pp9m+tW5ip3U7O/uEFiykhkEbfW0vhU7GPrNIrTxt5k9/VrMojNs77pORu MTzOWBvBuTtGTGyW5+dmOP6znvoadJiUGxqAOEDd6L7gMRTQwqWHbGQIuNH7GnDQ knIprEmEaZ5VsiUNWhHsMfkzyiQ2263AY6SbCqi4pEEI8YDXmFpdmlLNArIe9Fzb CI+krnGPtCLyU4VbWRcjxAXbsFyvr06R2gw9zQioNTv397P8LxhOoPet4QrR9y0B Dm09W2JZlLhZRA== X-ME-Proxy: X-ME-Sender: Received: from marks-macbook.lan (unknown [47.49.35.242]) by mail.messagingengine.com (Postfix) with ESMTPA id 9B13C1026A; Fri, 20 Jul 2018 13:24:35 -0400 (EDT) From: Mark Felder Content-Type: multipart/signed; boundary="Apple-Mail=_E32DFD88-2F76-4489-AA9F-A3F8DB6F5CD0"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: security/ca_root_nss: Add a ca-merge utility to permit including private CAs Message-Id: <44C404E7-2C4E-47A7-8E38-1721495D84B1@FreeBSD.org> Date: Fri, 20 Jul 2018 12:24:23 -0500 To: port-secteam@freebsd.org, "portmgr@FreeBSD.org" , "java@freebsd.org" , mono@FreeBSD.org X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-mono@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Mono and C# applications on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jul 2018 17:24:47 -0000 --Apple-Mail=_E32DFD88-2F76-4489-AA9F-A3F8DB6F5CD0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hello, I am writing you all about my review https://reviews.freebsd.org/D16352. = It's very messy at this point, so it's easier to re-compose myself here = and provide the complete plan. Problem: FreeBSD has no way to include private CAs in the trust store in = a persistent, reliable manner. Additionally we cannot blacklist CAs = easily either. Solution: Write a tool to do it. RHEL/CentOS already have this tool = called update-ca-trust(8) = https://www.unix.com/man-page/centos/8/update-ca-trust/ I have attempted to write a tool to be included with = security/ca_root_nss which is currently called "ca-merge". Phase one of = this tool should cover the ability to include private CAs easily. A = future revision should include blacklisting capabilities, but that is = going to be more complex to accomplish. This tool is written in posix sh = using only utilities in base. The following is the proposed change in = our ports/packages: The ca-root-nss.crt is no longer trusted root; we now generate = %%PREFIX%%/etc/ssl/cert.pem. All roads point to this file now. @postexec = of security/ca_root_nss will generate this file from the contents of = ca-root-nss.crt and do the required work if Java or Mono are installed = so they get the same trusted CAs. Currently Java ships their own trust = store which creates a very undesirable inconsistency. Additionally we = would include @postexec in Mono and Java packages to run ca-merge so the = instant they are installed they immediately have their trust stores = updated and ready for use. These are the proposed steps: 1) Get ca_root_nss with ca-merge committed in the tree 2) lang/mono needs only the @postexec added in pkg-plist so it's ready = at install time 3) Java ports will need updates to not install their cacerts keystore = file, but instead symlink to %%PREFIX%%/etc/ssl/cacerts 4) A somewhat large commit to the tree will be needed to update every = port that is compiled with special flags to make the software look at = %%PREFIX%%/etc/ssl/certs.pem instead of ca-root-nss.crt Known problems: I am concerned about Java. The process of building the cacerts keystore = is very annoying. You have to manually import every certificate file = with the keytool command and it is slow. The ca-merge command takes a = little while to churn through all the certs to build the keystore before = comparing with the one on-disk to decide if it needs to be updated. This = will slow down pkg build runs and pkg installs. The end result is that we should have working out of the box trust store = that is consistent across all software *and* permits you to include = private CAs. Please provide feedback. I don't want to bikeshed about it too much, = though. Let's get something in that works. We can always improve it = later. --Apple-Mail=_E32DFD88-2F76-4489-AA9F-A3F8DB6F5CD0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEzBAEBCgAdFiEEVTp08j41/a0LK3IYqgNgwT+IDgUFAltSGscACgkQqgNgwT+I DgXqWwf7B9LcDQJnLUMFk/R9wYLfLU+GwAd3P9gn+GKrqbxEYAlUkG6PiMnCdOqD yXduHu0Iy1E0m3l5vGpyGobv5estisznuBhbwlQugLNOuxzQzKXpLNu1eZz0jU/4 194vLWmI43E1+q1onGkKDx80X0OYUlFYPWkzN71Bp+uKL5kempieMt2rkY5o7ySh E/jY8jtqInV/QieYyeA7kEiV5ZX9215LCM2b+Te2vmWGMX7lY235sv+2B9CDJMwd SYbtrlCA+ALrWZO47TdETy6U91jKlHVnZ/7nKT24zdjP6vkaOHoZiuucXAxBcX5j iOEAqBSOD5AwHFEhxPhtSRoXL5O1OQ== =cUug -----END PGP SIGNATURE----- --Apple-Mail=_E32DFD88-2F76-4489-AA9F-A3F8DB6F5CD0--