+ # tmp gpghome dir
+ export GNUPGHOME=$(mktemp -d)
+
+ # trap to remove tmp dir if break
+ trap "rm -rf $GNUPGHOME" EXIT
+
+ gpg --quiet --import <"$HOST_KEY_FILE"
+
+ HOST_FINGERPRINT=$(gpg --quiet --list-keys --with-colons --with-fingerprint \
+ | grep '^fpr:' | cut -d: -f10 )
+
+ # list the host key info
+ gpg --list-key --fingerprint --list-options show-unusable-uids 2>/dev/null
+
+ # list the pgp fingerprint