automates listing of keyfiles

ADP-179_sops_manage_keys
LeeW 11 months ago
parent f6380e7668
commit a1fc113743

@ -26,10 +26,10 @@ function fn_extract_uid(){
echo "# Fingerprint | User Type | User ID" echo "# Fingerprint | User Type | User ID"
for gpgkeyfile in *automation*gpg.pub; do for gpgkeyfile in *automation*gpg.pub; do
u_type="autom" u_type="autom"
echo "$(fn_extract_fpr "${gpgkeyfile}") | ${u_type} | $(fn_extract_uid "${gpgkeyfile}")" echo "# $(fn_extract_fpr "${gpgkeyfile}") | ${u_type} | $(fn_extract_uid "${gpgkeyfile}")"
done done
for gpgkeyfile in $(ls *gpg.pub | grep -v automation); do for gpgkeyfile in $(ls *gpg.pub | grep -v automation); do
u_type="human" u_type="human"
echo "$(fn_extract_fpr "${gpgkeyfile}") | ${u_type} | $(fn_extract_uid "${gpgkeyfile}")" echo "# $(fn_extract_fpr "${gpgkeyfile}") | ${u_type} | $(fn_extract_uid "${gpgkeyfile}")"
done done
echo "# keys in https://git.dev-at.de/smardigo-hetzner/communication-keys" echo "# keys in https://git.dev-at.de/smardigo-hetzner/communication-keys"

Loading…
Cancel
Save