Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 09 Sep 2015 09:21:24 -0400
From:      Shawn Webb <shawn.webb@hardenedbsd.org>
To:        freebsd-stable@freebsd.org
Cc:        Baptiste Daroussin <bapt@freebsd.org>, Marko =?utf-8?B?Q3VwYcSH?= <marko.cupac@mimar.rs>
Subject:   Re: 10.2-RELEASE-p2 lost ability to bootstrap pkg with signature_type="pubkey"
Message-ID:  <2724677.3oEEqWz8m7@hbsd-dev-laptop>
In-Reply-To: <20150909085620.GF38185@ivaldir.etoilebsd.net>
References:  <20150908123838.238e5e74@efreet> <20150909091412.350c51ed@efreet> <20150909085620.GF38185@ivaldir.etoilebsd.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--nextPart1978829.2bsiooR2eS
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

On Wednesday, 09 September 2015 10:56:20 AM Baptiste Daroussin wrote:
> On Wed, Sep 09, 2015 at 09:14:12AM +0200, Marko Cupa=C4=87 wrote:
> > On Tue, 8 Sep 2015 23:28:59 +0200
> >=20
> > Baptiste Daroussin <bapt@FreeBSD.org> wrote:
> > > On Tue, Sep 08, 2015 at 12:38:38PM +0200, Marko Cupa=C4=87 wrote:=

> > > > Hi,
> > > >=20
> > > > I just found out that 10.2-RELEASE-p2 lost ability to bootstrap=
 pkg
> > > > with signature_type=3D"pubkey".
> > > >=20
> > > > Quick search returns:
> > > > https://github.com/freebsd/pkg/issues/1309
> > > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D202622
> > > >=20
> > > > I guess it is not hard to switch repo to fingerprints, however =
I
> > > > would not expect to lose this functionality by updating to
> > > > patchlevel.
> > >=20
> > > Implemented in head: r287579 I will MFC it asap. And see if it ca=
nnot
> > > be added asap to a next patchlevel update.
> > >=20
> > > Best regards,
> > > Bapt
> >=20
> > Thanx!
> >=20
> > Just a few quick not-completely-related questions: poudriere has th=
e
> > ability to sign repos with PKG_REPO_SIGNING_KEY, but not with exter=
nal
> > command, right? Is there a plan to support it? Can I build packages=
 in
> > poudriere without PKG_REPO_SIGNING_KEY, and sign repo later on with=

> > external command?
>=20
> First yes I plan to add the ability to sign the package used to boots=
trap
> via PKG_REPO_SIGNING_KEY asap in poudriere.
>=20
> Second you can keep your current configuration of poudriere, the sign=
ing
> with pubkey works perfectly well. All you need to do is either via a
> poudriere post bulk hook or manually go in the directory where your
> packages lives (in the Latest directory) and
> echo -n "$(sha256 -q pkg.txz)" | openssl dgst -sha256 -sign /thekey \=

>     -binary -out ./pkg.txz.pubkeysig

I can't find any documentation in neither Poudriere's manpage nor in=20=

poudriere.conf.sample on how toadd a post bulk hook.

Is the signing_command option to `pkg repo` really only used in generat=
ing=20
pkg.txz.sig? Is there any formal documentation about the cryptography d=
esign=20
and architecture in relation to pkg's repositories?

Thanks,

=2D-=20
Shawn Webb
HardenedBSD

GPG Key ID:                0x6A84658F52456EEE
GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89  3D9E 6A84 658F 5245 6EEE
--nextPart1978829.2bsiooR2eS
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
Content-Transfer-Encoding: 7Bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAABCAAGBQJV8DJUAAoJEGqEZY9SRW7uOfcP/0SodYgEw60fXE43ilxc4WEX
fVPQhjCAkmzUo3KKqqOBNfXbjVeyeWe/6aULYx07ihqOUmF9X37i6MXprY0w0pYO
xJ1ytgIUyULc0Erluo8xcRs/yBYtuXh39cZGU34xfE7oD0UkyK+WZx2NT29cDt8K
7W+Rkzoimo1bxdKBGy8GPOgzvZH0A8QA6STy7XpuxVOkzJD1I3T47ZUd2qWCzcOa
NEBbiBJ2pK6fgiE+C9j1+Q9S/wN47cMD2f4JqO8Jg6OcBTkWIRqh/XO2E6cEOYma
3XIrOfmyGP7jpa/pTFIEf4gMc3IFAAdiNyFV63gbUJ6Hcz6RenRyMsK8TVvAkajR
ZGg6qjMwtLV20uDFVs9rHLTLXDYBwj6xOqMEA9yDONTI1CRKNn7w8j/SDCJg5NH2
9mGbh+RkjuZHD0GDUewXJ+KsM5rpGA+Slue5FZRP2JlrsFKckyy8G2GEgpxIzBG+
oIx3ziglB2YWwaITjU6FOeKJMy57F1XCh4E0ikTg6pe5Zk3t+83UgYAG6t+lOj5e
DslYE3tp/wkgcRJ0+vOJpltrTUxQpXI+3hXqI4AMFDN0y1w6MIMo+JVYbT85Kaoe
9/aFipHkWIHajEOzJ1R8fAYu95PUDWBbVZn5vFBOKLSSLkx2lyDKAuvR3I6tv4FH
qEBMkUj5Q3yiX1lfinZm
=J3L5
-----END PGP SIGNATURE-----

--nextPart1978829.2bsiooR2eS--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2724677.3oEEqWz8m7>