]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC: r287579
authorbapt <bapt@FreeBSD.org>
Tue, 15 Sep 2015 05:46:55 +0000 (05:46 +0000)
committerbapt <bapt@FreeBSD.org>
Tue, 15 Sep 2015 05:46:55 +0000 (05:46 +0000)
commit07bd68bf9d301675658c8c99a44ac63d403d0608
tree1548e6252547c77f8d6712b847c9b29eca6742d7
parentc6c0cd45579f43f207e8e2947ad33106d634728a
MFC: r287579

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
usr.sbin/pkg/config.c
usr.sbin/pkg/config.h
usr.sbin/pkg/pkg.c