Skip to content

Commit

Permalink
treewide: remove pre-generated certificates
Browse files Browse the repository at this point in the history
For software updates, security is quite crucial and using pre-generated
standard keys is not something that people should get used to.
We have a dedicated script to generate custom certificates:

  ./create-example-keys.sh

Thus this commit removes all pre-generated certificates together with
the RAUC_KEY_FILE and RAUC_CERT_FILE definitions in bundle recipes and
the SRC_URI modifications in rauc bbappends.

Instead add the README.rst section on generating keys we have for
meta-rauc-qemux86 to all platforms.

Signed-off-by: Enrico Jörns <[email protected]>
  • Loading branch information
ejoerns committed Aug 15, 2024
1 parent 157ca73 commit 6a35ff5
Show file tree
Hide file tree
Showing 35 changed files with 37 additions and 1,160 deletions.
8 changes: 8 additions & 0 deletions meta-rauc-beaglebone/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ It is also recommended, but not strictly necessary, to enable 'systemd'::

INIT_MANAGER = "systemd"

Create example authentication keys (from sourced environment)::

$ ../meta-rauc-community/create-example-keys.sh

This will place the keys in a directory ``example-ca/`` in your build dir and
configure your ``conf/site.conf`` to let ``RAUC_KEYRING_FILE``,
``RAUC_KEY_FILE`` and ``RAUC_CERT_FILE`` point to this.

Build the minimal system image::

$ bitbake core-image-minimal
Expand Down

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions meta-rauc-beaglebone/recipes-core/bundles/update-bundle.bb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,3 @@ RAUC_BUNDLE_DESCRIPTION = "RAUC demonstration bundle"
RAUC_BUNDLE_SLOTS = "rootfs"
RAUC_SLOT_rootfs = "core-image-minimal"
RAUC_SLOT_rootfs[fstype] = "ext4"

RAUC_KEY_FILE = "${THISDIR}/files/development-1.key.pem"
RAUC_CERT_FILE = "${THISDIR}/files/development-1.cert.pem"
80 changes: 0 additions & 80 deletions meta-rauc-beaglebone/recipes-core/rauc/files/ca.cert.pem

This file was deleted.

2 changes: 0 additions & 2 deletions meta-rauc-beaglebone/recipes-core/rauc/rauc-conf.bbappend

This file was deleted.

6 changes: 5 additions & 1 deletion meta-rauc-nxp/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,11 @@ You can increase the size of rootfs to contain software added when updating::

Create example authentication keys (from sourced environment)::

$ ../meta-rauc-community/create-example-keys.sh
$ ../meta-rauc-community/create-example-keys.sh

This will place the keys in a directory ``example-ca/`` in your build dir and
configure your ``conf/site.conf`` to let ``RAUC_KEYRING_FILE``,
``RAUC_KEY_FILE`` and ``RAUC_CERT_FILE`` point to this.

Build the minimal system image::

Expand Down
80 changes: 0 additions & 80 deletions meta-rauc-nxp/recipes-core/bundles/files/development-1.cert.pem

This file was deleted.

28 changes: 0 additions & 28 deletions meta-rauc-nxp/recipes-core/bundles/files/development-1.key.pem

This file was deleted.

3 changes: 0 additions & 3 deletions meta-rauc-nxp/recipes-core/bundles/update-bundle.bb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,3 @@ RAUC_BUNDLE_DESCRIPTION = "RAUC demonstration bundle"
RAUC_BUNDLE_SLOTS = "rootfs"
RAUC_SLOT_rootfs = "core-image-base"
RAUC_SLOT_rootfs[fstype] = "ext4"

RAUC_KEY_FILE ?= "${THISDIR}/files/development-1.key.pem"
RAUC_CERT_FILE ?= "${THISDIR}/files/development-1.cert.pem"
Loading

0 comments on commit 6a35ff5

Please sign in to comment.