coreos-au-key: add 'official' use flag and new public key

This commit is contained in:
Michael Marineau 2014-06-24 18:26:49 -07:00
parent 6e3ba222d1
commit 81c76fdc96
6 changed files with 38 additions and 25 deletions

View File

@ -1,24 +0,0 @@
# Copyright (c) 2013 CoreOS Inc. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=2
# This key pair is only used in development. An official production image will
# have the production keys inserted at build time. (see core_update_upload)
DESCRIPTION="CoreOS development auto update keys."
HOMEPAGE="http://github.com/coreos/"
SRC_URI=""
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 arm x86"
IUSE="cros_host"
src_install() {
KEY_DIR=/usr/share/update_engine/
insinto "${KEY_DIR}"
doins "${FILESDIR}"/update-payload-key.pub.pem
if use cros_host; then
doins "${FILESDIR}"/update-payload-key.key.pem
fi
}

View File

@ -0,0 +1,29 @@
# Copyright (c) 2013 CoreOS Inc. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=5
DESCRIPTION="CoreOS auto update signing keys."
HOMEPAGE="http://github.com/coreos/"
SRC_URI=""
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 arm x86"
IUSE="cros_host official"
# Do not enable offical and SDK at the same time,
# the SDK only needs developer keys.
REQUIRED_USE="?? ( cros_host official )"
# No source to unpack
S="${WORKDIR}"
src_install() {
insinto /usr/share/update_engine
if use official; then
newins "${FILESDIR}/official-v2.pub.pem" update-payload-key.pub.pem
else
newins "${FILESDIR}/developer-v1.key.pem" update-payload-key.key.pem
newins "${FILESDIR}/developer-v1.pub.pem" update-payload-key.pub.pem
fi
}

View File

@ -0,0 +1,9 @@
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7pO21yN+b6yx9P+wHzS2
clxGs18eWxfoleETLbFVmcXu783rgBP0bFjYfqrNZNaI1Ip6bxEYkPacg0xFg7ri
lNdO/cxJV5Ltj40wFlpmzJOAH8hx5SF8KWg2NV1I6TS8pp+CQqcvvOKu6AIcWfeY
11V7eJ8rWcDsnqpTg8T1VRxytsg2UjTMfQwzcGLTb8cQ8AV39ED5WC5NdS9Bld4h
XqS9Dx6Pe3JOQLZze6XIIwWuB2jxGpM1GWfRNm5nxvne3l7ggC970482a7STGK10
fD8//k8myVxleMAeQoMRXoRq9p3C84H4Bw8v2dX13kFFCgfEQj6SOZ5huXZKLPpB
LwIDAQAB
-----END PUBLIC KEY-----