From owner-freebsd-hackers@freebsd.org Sun Aug 12 23:58:03 2018 Return-Path: Delivered-To: freebsd-hackers@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 75DF2105B9B1 for ; Sun, 12 Aug 2018 23:58:03 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gate2.funkthat.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E6B5F806DA; Sun, 12 Aug 2018 23:58:02 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (localhost [127.0.0.1]) by gold.funkthat.com (8.15.2/8.15.2) with ESMTPS id w7CNvspb073569 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 12 Aug 2018 16:57:54 -0700 (PDT) (envelope-from jmg@gold.funkthat.com) Received: (from jmg@localhost) by gold.funkthat.com (8.15.2/8.15.2/Submit) id w7CNvsVr073568; Sun, 12 Aug 2018 16:57:54 -0700 (PDT) (envelope-from jmg) Date: Sun, 12 Aug 2018 16:57:54 -0700 From: John-Mark Gurney To: Eric McCorkle Cc: Warner Losh , FreeBSD Hackers , Brooks Davis Subject: Re: A few build system questions Message-ID: <20180812235754.GI97145@funkthat.com> Mail-Followup-To: Eric McCorkle , Warner Losh , FreeBSD Hackers , Brooks Davis References: <20180802153357.GA25687@spindle.one-eyed-alien.net> <7f143985-2ebb-210a-e314-0deebd3d9f5b@metricspace.net> <7a14aee9-8205-4fc7-a7a0-a9ed2f33751d@metricspace.net> <9c3f08be-2a76-a726-16b2-c1e6a1aa4aa8@metricspace.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="SkvwRMAIpAhPCcCJ" Content-Disposition: inline In-Reply-To: <9c3f08be-2a76-a726-16b2-c1e6a1aa4aa8@metricspace.net> X-Operating-System: FreeBSD 11.0-RELEASE-p7 amd64 X-PGP-Fingerprint: D87A 235F FB71 1F3F 55B7 ED9B D5FF 5A51 C0AC 3D65 X-Files: The truth is out there X-URL: https://www.funkthat.com/ X-Resume: https://www.funkthat.com/~jmg/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? User-Agent: Mutt/1.6.1 (2016-04-27) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (gold.funkthat.com [127.0.0.1]); Sun, 12 Aug 2018 16:57:54 -0700 (PDT) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Aug 2018 23:58:03 -0000 --SkvwRMAIpAhPCcCJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Eric McCorkle wrote this message on Thu, Aug 02, 2018 at 22:29 -0400: > For future reference, this seems to be more or less what I'm after: >=20 > for f in /etc/trust/root/certs/*.pub.pem; do echo -n "static const char > `basename ${f%%.*}`_data[] =3D {"; openssl x509 -outform DER -in > /etc/trust/root/certs/local.pub.pem | hexdump -v -e '1/1 "0x%02x,"'; > echo "};"; done There's also file2c that does the conversion for you. --=20 John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." --SkvwRMAIpAhPCcCJ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJbcMmAXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2MEI1RTRGMTNDNzYyMDZDNjEyMDBCNjAy MDVGMEIzM0REMDA2QURBAAoJECBfCzPdAGraPc0P/3332Kicagy/4yxJo3JAt28i GJSMf7cTHZUO2H+bipeaGirmWZbB9kTYwEw03APixAngHqzpCeu4U0SSHRYy/D47 ABe0LHNpxF2RyaTCJd0kvwv3yQLuDTZix0JdDBSFQjIbqil7IYBGv8qNtAS86KXT ucFjdZ0NogPxCFTTcugHcIhAA95fFPpdfuqx+w81//bLUuFlsupWWzWjQPGAw+RE wzXE1MFRfwJelSraQDvrSIwnnXw8W13jecJvKfP/flhxqYSu/Akj7XEwZdJ8V6g+ gfu56fYd/UuXPRYuBucNbVCpa38tvBrlmGHrWAd81R/L0WnnlX+CaLB12htQb9AA mF3c76BSOQ92MdC/4VKegu+zTld9Izysu4fq6HpvRJccqlWAiz1YiEUKEzEd1LA2 ikGaMqg+gjnu4AXqeQNdUjae3OgpQyAceszzl9TrBXKOxMkhMtxXWPX7bfHayA7+ J5x8C20U/qGskxf9KbbwUwRrSzA3xWERZHrBRvnLy8TeU+mRvudw3xpeXwzqLxIC ZoIiUG6UZ65NM6JLjeDT4ZhALgorL70ZjVFlpmyypQkjo59Qr7c534Pf9NUPOSJW UGDx25M+fz1UPbkPEGOwyj9fi39T7dvJtTT4ofVJlhZc09S8/AnOm3kETU2BOw5y OG4vbh3YUkO8suxnzvoG =ekFd -----END PGP SIGNATURE----- --SkvwRMAIpAhPCcCJ--