#!/bin/bash # # Copyright (C) 2017 by Enrico Joerns # Copyright (C) 2016 by Jan Luebbe # # See CREDITS for details about who has contributed to this project. # # For further information about the PTXdist project and license conditions # see the README file. # # --- # # Demo script that generates certificate files required to sign and verify # RAUC update tool bundles. # set -xe ORG="Test Org" CA="rauc CA" # After the CRL expires, signatures cannot be verified anymore CRL="-crldays 5000" BASE="$(pwd)/rauc-openssl-ca" if [ -e $BASE ]; then echo "$BASE already exists" exit 1 fi mkdir -p $BASE/dev/{private,certs} touch $BASE/dev/index.txt echo 01 > $BASE/dev/serial cat > $BASE/openssl.cnf </config/rauc/rauc.key.pem cp rauc-openssl-ca/rauc.cert.pem /config/rauc/rauc.cert.pem Place the keyring file in your platform-dir's projectroot/ folder: cp rauc-openssl-ca/ca.cert.pem /projectroot/etc/rauc/ca.cert.pem =============================================================================== EOF