mirror of
https://github.com/opnsense/tools.git
synced 2026-06-01 07:17:20 -05:00
14 lines
198 B
Bash
Executable File
14 lines
198 B
Bash
Executable File
#!/bin/sh
|
|
|
|
PUBKEY=${1}
|
|
PRIVKEY=${2}
|
|
|
|
read -t 30 SUM
|
|
[ -z "${SUM}" ] && exit 1
|
|
echo SIGNATURE
|
|
echo -n ${SUM} | openssl dgst -sign "${PRIVKEY}" -sha256 -binary
|
|
echo
|
|
echo CERT
|
|
cat "${PUBKEY}"
|
|
echo END
|