From owner-freebsd-java@freebsd.org Sun Jul 15 21:00:41 2018 Return-Path: Delivered-To: freebsd-java@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 5572D1028AF4 for ; Sun, 15 Jul 2018 21:00:41 +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 E2F2A97CA5 for ; Sun, 15 Jul 2018 21:00:40 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 9CF311028AE2; Sun, 15 Jul 2018 21:00:40 +0000 (UTC) Delivered-To: java@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 8ABD81028AE1 for ; Sun, 15 Jul 2018 21:00:40 +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 25A5197C9E for ; Sun, 15 Jul 2018 21:00:40 +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 65F029AAD for ; Sun, 15 Jul 2018 21:00:39 +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 w6FL0dBc061556 for ; Sun, 15 Jul 2018 21:00:39 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w6FL0dT7061545 for java@FreeBSD.org; Sun, 15 Jul 2018 21:00:39 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <201807152100.w6FL0dT7061545@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: java@FreeBSD.org Subject: Problem reports for java@FreeBSD.org that need special attention Date: Sun, 15 Jul 2018 21:00:39 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jul 2018 21:00:41 -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 | 221213 | java/linux-oracle-jdk18: Does not work with NONE- 1 problems total for which you should take action. From owner-freebsd-java@freebsd.org Fri Jul 20 17:00:26 2018 Return-Path: Delivered-To: freebsd-java@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 A8E8F104BFA8 for ; Fri, 20 Jul 2018 17:00:26 +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 667218492D for ; Fri, 20 Jul 2018 17:00:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 241AC104BF9C; Fri, 20 Jul 2018 17:00:26 +0000 (UTC) Delivered-To: java@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 11F15104BF99 for ; Fri, 20 Jul 2018 17:00: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 89CF184928 for ; Fri, 20 Jul 2018 17:00:25 +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 C6A26267AE for ; Fri, 20 Jul 2018 17:00:24 +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 w6KH0OiU054420 for ; Fri, 20 Jul 2018 17:00:24 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w6KH0OXq054408 for java@FreeBSD.org; Fri, 20 Jul 2018 17:00:24 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: java@FreeBSD.org Subject: [Bug 229329] java/openjdk8: allow user to trust extra local certificates Date: Fri, 20 Jul 2018 17:00:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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 Many People X-Bugzilla-Who: feld@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: java@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jul 2018 17:00:26 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D229329 Mark Felder changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |feld@FreeBSD.org --- Comment #6 from Mark Felder --- (In reply to Palle Girgensohn from comment #1) I disagree. CentOS/RHEL have solved this problem which makes them a great platform for Enterprise Java apps. It's our responsibility to solve this ourselves. Please see this review: https://reviews.freebsd.org/D16352 --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-java@freebsd.org Fri Jul 20 17:24:47 2018 Return-Path: Delivered-To: freebsd-java@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 9F18D104CB4F 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 1F42485855 for ; Fri, 20 Jul 2018 17:24:47 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id CFC06104CB4A; Fri, 20 Jul 2018 17:24:46 +0000 (UTC) Delivered-To: java@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-java@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jul 2018 17:24:48 -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--