Improve the signing instructions
This commit is contained in:
parent
93aac9a07d
commit
d44fc9e5a6
|
@ -692,19 +692,19 @@ function syncthing_remove_id {
|
||||||
function sign_gpg_key {
|
function sign_gpg_key {
|
||||||
data=$(tempfile 2>/dev/null)
|
data=$(tempfile 2>/dev/null)
|
||||||
trap "rm -f $data" 0 1 2 5 15
|
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" \
|
--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=$?
|
sel=$?
|
||||||
case $sel in
|
case $sel in
|
||||||
0)
|
0)
|
||||||
SIGN_ADDRESS=$(<$data)
|
SIGN_ADDRESS=$(<$data)
|
||||||
if [ ${#IMAGE_URL} -gt 2 ]; then
|
if [ ${#IMAGE_URL} -gt 2 ]; then
|
||||||
clear
|
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
|
if [[ $fpr == *"error"* ]]; then
|
||||||
gpg --search "$SIGN_ADDRESS"
|
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
|
fi
|
||||||
|
|
||||||
if [[ $fpr != *"error"* ]]; then
|
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 \
|
2 $"Publish your PGP/GPG key so that others can find it" off \
|
||||||
3 $"Add someone's PGP/GPG key" off \
|
3 $"Add someone's PGP/GPG key" off \
|
||||||
4 $"Remove 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 \
|
6 $"Refresh your PGP/GPG keys" off \
|
||||||
7 $"Add an ssh key for logging in" off \
|
7 $"Add an ssh key for logging in" off \
|
||||||
8 $"Remove an ssh key for logging in" off \
|
8 $"Remove an ssh key for logging in" off \
|
||||||
|
|
Loading…
Reference in New Issue