File: refresh-keys.sh

package info (click to toggle)
signify-openbsd-keys 2025.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 408 kB
  • sloc: sh: 39; makefile: 4
file content (31 lines) | stat: -rwxr-xr-x 668 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
# refreshes the public openbsd keys using their CVS server

set -eu

here=$(readlink -f $(dirname $0))
tmp=$(mktemp -d)

export CVS_RSH=ssh

cd $tmp
echo "VERIFY THE SERVER FINGERPRINT WITH THE LIST BELOW !!!"
cat <<EOF
(RSA) SHA256:pPcBY4E33vwreETbz5KJUIzZpWWzaZPhrpnLaFa7WuQ
(ECDSA) SHA256:kg2Zaqpd8ZuluPzlpFS9rEw0KR1UmxD9jSG6+2tr28A

EOF
echo "THEN DOUBLE-CHECK WITH https://www.openbsd.org/anoncvs.html !!!"

cvs -qd anoncvs@anoncvs.au.openbsd.org:/cvs get -P src/etc/signify
cd src/etc/signify/
mv *.pub $here

cd $here

echo "VERIFY THAT ONLY NEW FILES WERE ADDED"
git status
read

sha256sum *.pub > keys.sha256
gpg --detach-sign --armor keys.sha256