]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Implement pubkey support for the bootstrap
authorbapt <bapt@FreeBSD.org>
Tue, 8 Sep 2015 21:25:36 +0000 (21:25 +0000)
committerbapt <bapt@FreeBSD.org>
Tue, 8 Sep 2015 21:25:36 +0000 (21:25 +0000)
commit57a6813e1e1c4dbe9eb54329ffaf8fef38b016f3
tree138ccb41661e15419adeb8f9a340f4d9569a550c
parent61177b5cd0efaf9efd60822a8ec834a9d810f96d
Implement pubkey support for the bootstrap

Note that to not interfer with finger print it expects a signature on pkg itself
which is named pkg.txz.pubkeysign

To genrate it:
echo -n "$(sha256 -q pkg.txz)" | openssl dgst -sha256 -sign /thekey \
    -binary -out ./pkg.txz.pubkeysig

Note the "echo -n" which prevent signing the '\n' one would get otherwise

PR: 202622
MFC after: 1 week
usr.sbin/pkg/Makefile
usr.sbin/pkg/config.c
usr.sbin/pkg/config.h
usr.sbin/pkg/pkg.c