Menu

Passphrase is not buffered

lsmod
2015-07-15
2015-07-15
  • lsmod

    lsmod - 2015-07-15

    After i upgraded my Debian from 7 to 8 i have the problem that the passphrase is not hold in the memory and must be entered every time again when i open an email.

    The settings say it should be stored for 30 minutes but it is not stored.

    Please help

     
  • lsmod

    lsmod - 2015-07-15

    Maybe the reason is to be found here.

    But before the upgrade it works with an older version of KDE 4.

    This is KDE 4.14.2
    Thunderbird/Icedove 31.7.0
    Enigmail 1.8.2

     
  • Ludwig Hügelschäfer

    Your system seems to use KDE-wallet, intercepting the gpg-agent. You either have to correct the KDE-wallet settings or to make KDE-wallet not intercepting the gpg-agent connection any more. This is either a topic for KDE or your distribution support.

     
  • Boolean Isnull

    Boolean Isnull - 2015-07-15

    Do you have the use-standard-socket in ~/.gnupg/gpg-agent.conf ?

    I had the same problem and this solved it.

     
  • lsmod

    lsmod - 2015-07-15

    Thanks for the tips.

    1. I found the kdewallet settings within the system settings and deactivated kdewallet.
      After a new login it did make no difference - it still asked every time for the passphrase.

    2. My gpg-agent.conf is this one:
      $ cat ~/.gnupg/gpg-agent.conf
      default-cache-ttl 1800
      max-cache-ttl 999999
      pinentry-program /usr/bin/pinentry-qt4

    How can i add the socket?

    I think this could be the problem because:

    $ gpg-connect-agent <<EOT

    GETINFO version
    EOT
    gpg-connect-agent: can't connect to the agent: IPC "connect" Aufruf fehlgeschlagen

    I have an additional problem opening mails i have encrypted completely with attachments.
    When i try to open them in the send folder i got the attached error.

    In the log i find:

    2015-07-15 09:49:34.464 [DEBUG] enigmailCommon.jsm: getPassphrase:
    2015-07-15 09:49:34.464 [DEBUG] enigmail.js: Setting useAgent to true for gpg2 >= 2.0.16
    2015-07-15 09:49:34.464 [CONSOLE] enigmail> /usr/bin/gpg2 --charset utf-8 --display-charset utf-8 --batch --no-tty --status-fd 2 --max-output 6800 --decrypt --use-agent
    2015-07-15 09:49:34.471 [DEBUG] enigmail> DONE
    2015-07-15 09:49:34.501 [DEBUG] enigmail.js: Setting useAgent to true for gpg2 >= 2.0.16
    2015-07-15 09:49:34.506 [DEBUG] enigmailCommon.jsm: decryptMessageEnd: uiFlags=8, verifyOnly=false, noOutput=false
    2015-07-15 09:49:34.506 [DEBUG] enigmailCommon.jsm: decryptMessageEnd: stderrStr=
    gpg: Keine gültigen OpenPGP-Daten gefunden.
    [GNUPG:] NODATA 1
    [GNUPG:] NODATA 2
    gpg: decrypt_message failed: Unbekannter Systemfehler

    2015-07-15 09:49:34.506 [DEBUG] enigmailCommon.jsm: parseErrorOutput: status message:
    gpg: Keine gültigen OpenPGP-Daten gefunden.
    [GNUPG:] NODATA 1
    [GNUPG:] NODATA 2
    gpg: decrypt_message failed: Unbekannter Systemfehler

    2015-07-15 09:49:34.506 [DEBUG] enigmailCommon.jsm: parseErrorOutput: statusFlags = 00004000
    2015-07-15 09:49:34.506 [DEBUG] enigmailCommon.jsm: parseErrorOutput(): return with errorMsg = gpg: Keine gültigen OpenPGP-Daten gefunden.
    gpg: decrypt_message failed: Unbekannter Systemfehler
    2015-07-15 09:49:34.506 [DEBUG] enigmailCommon.jsm: decryptMessageEnd: process: NODATA 1
    2015-07-15 09:49:34.506 [DEBUG] enigmailCommon.jsm: decryptMessageEnd: process: NODATA 2
    2015-07-15 09:49:34.506 [DEBUG] enigmailCommon.jsm: decryptMessageEnd: command execution exit code: 2

     

    Last edit: lsmod 2015-07-15
  • lsmod

    lsmod - 2015-07-15

    I added now
    use-standard-socket
    in the config file ~/.gnupg/gpg-agent.conf

    This really solved my problems.
    It only asks one time for the passphrase.
    Thank you "Boolean Isnull" !

    But the problem with decrypting still exists.
    It's another problem - shall i open a new thread for it?

     

    Last edit: lsmod 2015-07-15
  • Patrick Brunschwig

    "Entschlüsselung unvollständig" (= decryption incomplete) is a sign that you're using an IMAP server, but the mail is not dowloaded completely.

    You have two options to solve this:
    a) go to Enigmail > Preferences > Advanced and DISable the option "Only download attachments when opened (IMAP only)
    b) right-mouse click on the folder, switch to the tab "Synchronization" and enable the option "Select this folder for offline use". Then click on the "Download now" button to download all mails.

     
  • lsmod

    lsmod - 2015-07-15

    Yes - that's it - Thank you!

    And yes - i m using my own IMAP server for decentralized storing and accessing our mails from different PC's.
    So the first option a) with "Anhänge nur herunterladen, wenn diese geöffnet werden sollen (nur bei IMAP)" must be deactivated.

    Hmm - reading this it should be possible and correct that this option is enabled.
    I hope other users will find this hint here, although there will be not to much out there with an own email server.

    Now everything seems to be fine.

    So the gpg-connect-agent is not needed in KDE?

     

    Last edit: lsmod 2015-07-15
    • Patrick Brunschwig

      The option is off by default. You probably accidentally modified it.

       

Log in to post a comment.

MongoDB Logo MongoDB