]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC: r287579
authorbapt <bapt@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 15 Sep 2015 05:46:55 +0000 (05:46 +0000)
committerbapt <bapt@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 15 Sep 2015 05:46:55 +0000 (05:46 +0000)
commit3eb826c4be257ae8124e0114e9aa673541484a5d
tree1548e6252547c77f8d6712b847c9b29eca6742d7
parent2fbae0a4aaeb0262dbc1a5f5b5864f6b154e2249
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

git-svn-id: svn://svn.freebsd.org/base/stable/10@287809 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/pkg/config.c
usr.sbin/pkg/config.h
usr.sbin/pkg/pkg.c