rocksolid-light/Rocksolid_Light/rslight/scripts/create_gpg_keys.sh

12 lines
271 B
Bash
Executable File

#!/bin/bash
gnupghome="$1"
server_pub_key="$2"
fingerprint="$3"
domain="$4"
export GNUPGHOME=$gnupghome
gpg --batch --passphrase '' --quick-gen-key $domain default default 0
gpg --export -a $domain > $server_pub_key
gpg --fingerprint $domain | sed '2!d' > $fingerprint