Improve the signing instructions

This commit is contained in:
Bob Mottram 2016-05-02 22:05:35 +01:00
parent 93aac9a07d
commit d44fc9e5a6
1 changed files with 715 additions and 715 deletions

View File

@ -692,19 +692,19 @@ function syncthing_remove_id {
function sign_gpg_key {
data=$(tempfile 2>/dev/null)
trap "rm -f $data" 0 1 2 5 15
dialog --title $"Sign a PGP/GPG key" \
dialog --title $"Sign a PGP/GPG key or website domain" \
--backtitle $"Freedombone User Control Panel" \
--inputbox $"Enter the Key ID, address or domain to be signed" 8 75 2>$data
--inputbox $"Enter the Key ID, address or domain to be signed.\n\nIf you are signing a website domain then include the https:// at the beginning.\n\nIf you are signing an ssh key then include ssh:// before the domain name." 14 75 2>$data
sel=$?
case $sel in
0)
SIGN_ADDRESS=$(<$data)
if [ ${#IMAGE_URL} -gt 2 ]; then
clear
fpr=$(gpg --with-colons --fingerprint $SIGN_ADDRESS | grep fpr | head -n 1 | awk -F ':' '{print $10}')
fpr=$(gpg --with-colons --fingerprint "$SIGN_ADDRESS" | grep fpr | head -n 1 | awk -F ':' '{print $10}')
if [[ $fpr == *"error"* ]]; then
gpg --search "$SIGN_ADDRESS"
fpr=$(gpg --with-colons --fingerprint $SIGN_ADDRESS | grep fpr | head -n 1 | awk -F ':' '{print $10}')
fpr=$(gpg --with-colons --fingerprint "$SIGN_ADDRESS" | grep fpr | head -n 1 | awk -F ':' '{print $10}')
fi
if [[ $fpr != *"error"* ]]; then
@ -735,7 +735,7 @@ function menu_encryption_keys {
2 $"Publish your PGP/GPG key so that others can find it" off \
3 $"Add someone's PGP/GPG key" off \
4 $"Remove someone's PGP/GPG key" off \
5 $"Sign a PGP/GPG key" off \
5 $"Sign a PGP/GPG key or website domain" off \
6 $"Refresh your PGP/GPG keys" off \
7 $"Add an ssh key for logging in" off \
8 $"Remove an ssh key for logging in" off \