File: create_attestee.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 (12 lines) | stat: -rwxr-xr-x 635 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash -ex
# A simple helper for creating an environment for the receiver of the newly produced certification

ATTESTEE_DIR=/tmp/gks-attestee

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