File: create_attestor.sh

package info (click to toggle)
gnome-keysign 1.3.0-5.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,460 kB
  • sloc: python: 5,143; xml: 126; makefile: 33; sh: 16
file content (13 lines) | stat: -rwxr-xr-x 618 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash -ex
# A simple helper for creating an environment for the producer of a certification

ATTESTOR_DIR=/tmp/gks-attestor

rm -rf "${ATTESTOR_DIR}.bak"
mkdir -p $ATTESTOR_DIR
mv -f "$ATTESTOR_DIR" "${ATTESTOR_DIR}.bak"
mkdir -p $ATTESTOR_DIR
echo -n | env GNUPGHOME=${ATTESTOR_DIR}  gpg --pinentry-mode loopback --batch --no-tty --yes --passphrase-fd 0 --quick-generate-key attestor@example.com
env GNUPGHOME=${ATTESTOR_DIR}  gpg --armor --export attestor@example.com > ${ATTESTOR_DIR}/attestor.pgp.asc

echo env \"GNUPGHOME=${ATTESTOR_DIR}\" python3 -m keysign.sign_and_encrypt  ATTESTEE_DIR/attestee.pgp.asc