[pass] Importing tests

Jason A. Donenfeld Jason at zx2c4.com
Wed Apr 23 04:47:14 CEST 2014


At some point you're going to want to resolve the keys of a .gpg file or of
a key-id-name. Be sure to study the tricks used in reencrypt_path:

http://git.zx2c4.com/password-store/tree/src/password-store.sh#n87

Resolve ids from .gpg files:
gpg -v --list-only --keyid-format long "$passfile" 2>&1 | cut -d ' ' -f 5 |
sort -u

Resolve ids from key names:
gpg --list-keys --keyid-format long "${GPG_RECIPIENTS[@]}" | sed -n 's/sub
*.*\/\([A-F0-9]\{16\}\) .*/\1/p' | sort -u

Resolve ids from gpg.conf group:
gpg --list-config --with-colons | grep ^cfg:group:.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20140423/55d6f520/attachment-0001.html>


More information about the Password-Store mailing list