#!/bin/busybox ash
set -euo pipefail

## This shell script creates test keys for the OpenPGP tests

sq key generate \
	--own-key \
	--name "OpenPGP Test Key" \
	--email "openpgp@example.org" \
	--output openpgp_test_key.pgp \
	--rev-cert openpgp_test_key.rev \
	--without-password \
	--overwrite \
	--expiration 10y
sq key delete \
	--cert-file=openpgp_test_key.pgp \
	--output=openpgp_test_key.cert
