AW: WINDOWS - Adding passphrase to gpg via command line

Mike Kaufmann m.kaufmann at infotech.li
Fri Jun 17 07:24:02 CEST 2016


Hi

>I'm at a loss, frankly. I don't understand. You're using GnuPG v2.1.11, you can use the key itself, but the agent isn't aware of having it! That does not compute. I can only think of one thing. Are you really using GnuPG v2.1.11, or do you have GnuPG 1.4 co-installed and are you using that? If the latter, that's >not going to work with keygrips. If the name of the binary you're invoking is "gpg", what does "gpg --version" say? 

In the following lines you can see the results of all the commands, that you have mentioned in the mails before:

gpg --homedir C:\ESA\EIOPA\PreProd\DCCR -k
C:/ESA/EIOPA/PreProd/DCCR/pubring.kbx
-------------------------------------
pub   rsa2048/29FDE3FE 2016-03-21 [SC] [verfällt: 2017-04-30]
uid      [  ultimativ] LI001_DCCR_PreProd (Sender Company) <sender at sendercompany.com>
sub   rsa2048/ADA7F402 2016-03-23 [E] [verfällt: 2017-04-30]

pub   rsa2048/0B46586F 2016-01-28 [SC] [verfällt: 2017-04-30]
uid      [  unbekannt] Registers_PP (Register test environment 2016) <receiver at receivercompany.com>
sub   rsa2048/32D2EF29 2016-01-28 [E] [verfällt: 2017-04-30]


gpg --homedir C:\ESA\EIOPA\PreProd\DCCR -K
C:/ESA/EIOPA/PreProd/DCCR/pubring.kbx
-------------------------------------
sec   rsa2048/29FDE3FE 2016-03-21 [SC] [verfällt: 2017-04-30]
uid      [  ultimativ] LI001_DCCR_PreProd (Sender Company) <sender at sendercompany.com>
ssb   rsa2048/ADA7F402 2016-03-23 [E] [verfällt: 2017-04-30]


gpg --homedir c:\ESA\EIOPA\PreProd\DCCR --with-keygrip -K 29FDE3FE sec rsa2048/29FDE3FE 2016-03-21
sec   rsa2048/29FDE3FE 2016-03-21 [SC] [verfällt: 2017-04-30]
      Keygrip = C9FE2B0938FC146E088A9D563AED4892A6ACB6FB
uid      [  ultimativ] LI001_DCCR_PreProd (Sender Company) <sender at sendercompany.com>
ssb   rsa2048/ADA7F402 2016-03-23 [E] [verfällt: 2017-04-30]
      Keygrip = 74EC3FAA93CD49446EC6825C3EBEB2C336CCBE2A


gpg-connect-agent
> havekey C9FE2B0938FC146E088A9D563AED4892A6ACB6FB
ERR 67108881 Kein geheimer Schl³ssel <GPG Agent>
> havekey 74EC3FAA93CD49446EC6825C3EBEB2C336CCBE2A
ERR 67108881 Kein geheimer Schl³ssel <GPG Agent>


gpg --version
gpg (GnuPG) 2.1.12
libgcrypt 1.7.0
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://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: C:/Users/mika.INTERN/AppData/Roaming/gnupg
Unterstützte Verfahren:
Öff. Schlüssel: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Verschlü.: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
          CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Komprimierung: nicht komprimiert, ZIP, ZLIB, BZIP2


I use the following command to sign a file:
gpg --homedir c:\ESA\EIOPA\PreProd\DCCR --output C:\ESA\EIOPA\Export\LI001_DATPPP_EIOPA_000001_16.asc --armor -u sender at sendercompany.com --digest-algo SHA512 --sign c:\ESA\EIOPA\LI001_DATPPP_EIOPA_000001_16.csv


Regards
Mike


More information about the Gnupg-users mailing list