[pass] "No public key" - help?

Matthias Beyer mail at beyermatthias.de
Sat Mar 14 16:12:20 CET 2015


On 14-03-2015 15:10:41, Matthias Beyer wrote:
> On 14-03-2015 15:03:24, Lenz Weber wrote:
> > So now we have your GPG call.
> > 
> > On 14.03.2015 14:54, Matthias Beyer wrote:
> > > gpg2 -e -r 20CA0F94 -o /home/m/.password-store/test.gpg --quiet
> > > --yes --compress-algo=none --no-encrypt-to --batch --use-agent
> > 
> > I can only guess it's something in the path that will call a version
> > of gpg that does not interpret your current ~/.gnupg keystore correctly.
> > 
> > Give this a try:
> > 
> > PATH=/nix/store/ywz91g42p1fir3davm11k5affj64s7ar-coreutils-8.23/bin:/nix/store/wb5aj7k6237p0izlflfj3kvd69a18rcy-gnused-4.2.2/bin:/nix/store/zfr75gwya5cqfk531djpbhs0gnn41n5a-getopt-1.1.4/bin:/nix/store/bmn93al17l6ysbagg5jc6bm44xr83ylg-gnupg1compat-0/bin:/nix/store/4mhm1cl2mx8x30xi7wazzyla7g86crb8-git-2.3.0/bin:/nix/store/g75lq2kmfwx5sdqni6khv04kdklh3kq9-tree-1.7.0/bin:/nix/store/4kaxf8sf2c9k1v87bkwm52869wg25f60-pwgen-2.07/bin:/nix/store/d7b58pgi42n3wi24f93w98y114cgwhhf-xclip-0.12-svn-20140209/bin:/home/m/bin:/var/setuid-wrappers:/home/m/.nix-profile/bin:/home/m/.nix-profile/sbin:/home/m/.nix-profile/lib/kde4/libexec:/nix/var/nix/profiles/default/bin:/nix/var/nix/profiles/default/sbin:/nix/var/nix/profiles/default/lib/kde4/libexec:/run/current-system/sw/bin:/run/current-system/sw/sbin:/run/current-system/sw/lib/kde4/libexec:/home/m/archive/bin
> > bash -c "gpg2 --version"
> > 
> > If it's not 2.1.*, you have your culprit.
> 
> FUCK:
> 
>     gpg (GnuPG) 2.0.26
>     libgcrypt 1.6.2
>     Copyright (C) 2013 Free Software Foundation, Inc.
>     License GPLv3+: GNU GPL version 3 or later
>     <http://gnu.org/licenses/gpl.html>
>     This is free software: you are free to change and redistribute it.
>     There is NO WARRANTY, to the extent permitted by law.
> 
>     Home: ~/.gnupg
>     Unterstützte Verfahren:
>     Öff. Schlüssel: RSA, RSA, RSA, ELG, DSA
>     Verschlü.: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
>                CAMELLIA128, CAMELLIA192, CAMELLIA256
>                Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
>                Komprimierung: nicht komprimiert, ZIP, ZLIB, BZIP2
> 
> This looks too bad.
> 
> I guess I will now report back to the NixOS package repos, as this is not
> pass-related as far as I understand.
> 
> *looking for the password-store ML archive now*
> 


Just for completeness and future reference:

The actual solution for the problem was rather trivial. I had to override the
gnupg package for the password-manager executeable, by specifying

    {
        packageOverrides = super:
            let
            self = super.pkgs;
        in {
            pass = super.pass.override { gnupg = self.gnupg21; };
        };
    }

in my ~/.nixpkgs/config.nix file.

The actual gnupg package should be kept in sync with the one used on the
commandline or elsewhere.

So this problem got solved! Thanks to everybody helping me out!

-- 
Mit freundlichen Grüßen,
Kind regards,
Matthias Beyer

Proudly sent with mutt.
Happily signed with gnupg.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20150314/0f231ee5/attachment.asc>


More information about the Password-Store mailing list