[pass] Importing tests

Jason A. Donenfeld Jason at zx2c4.com
Wed Apr 23 04:58:34 CEST 2014


These should help out:
http://git.zx2c4.com/password-store/commit/?id=67abc395d981b9b4a5f71fc00a8807195e2865e3

On Wed, Apr 23, 2014 at 4:47 AM, Jason A. Donenfeld <Jason at zx2c4.com> wrote:

> 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/75c6d7b6/attachment.html>


More information about the Password-Store mailing list