generate_pgp_key(): add "https://Account_URL" to key uid

This commit is contained in:
2024-09-13 11:25:27 +03:00
parent 04aa3c7ad8
commit 1d540ffd23

View File

@@ -105,9 +105,14 @@ generate_pgp_key()
Subkey-Usage: encr
Subkey-Length: 1024
Name-Real: Account_URL
Name-Comment: $DM_ACCOUNT_URL
Name-Comment: http://$(basename $DM_ACCOUNT_URL)
Expire-Date: 0
EOF
#add "https://Account_URL" to key uid
echo -e "Account_URL\n\nhttps://$(basename $DM_ACCOUNT_URL)\nO\nsave\n" | \
gpg --passphrase "$DM_PGP_PASSWORD" --command-fd 0 --edit-key Account_URL adduid
tput setaf 2
cat <<-EOF