gpg-agent: how to limit the passphrase cache retention time












3















I'm using Thunderbird/Enigmail, and the plugin tells me that the process in charge of the passphrase cache is gpg-agent. The retention time of the passphrase is too long for me (possibly, the entire session). I would like to make it shorter, but so far I have failed to do so.



gpg-agent seems to be run without a default-cache-ttl argument (according to ps), so according to the manual it should use the default value, 600 seconds. It's obviously not the case. It should also use the default value for max_cache_ttl (2 hours), but it's not the case either.



I tried to create a gpg-agent.conf file in my ~/.gnupg with a custom value for default-cache-ttl, but it seems to have no effect (I have restarted my session in order to restart gpg-agent).



Either I'm trying to tweak the wrong process, or it doesn't behave according to its specifications, or there is something I don't understand.
How can I efficiently shorten this passphrase retention time?










share|improve this question



























    3















    I'm using Thunderbird/Enigmail, and the plugin tells me that the process in charge of the passphrase cache is gpg-agent. The retention time of the passphrase is too long for me (possibly, the entire session). I would like to make it shorter, but so far I have failed to do so.



    gpg-agent seems to be run without a default-cache-ttl argument (according to ps), so according to the manual it should use the default value, 600 seconds. It's obviously not the case. It should also use the default value for max_cache_ttl (2 hours), but it's not the case either.



    I tried to create a gpg-agent.conf file in my ~/.gnupg with a custom value for default-cache-ttl, but it seems to have no effect (I have restarted my session in order to restart gpg-agent).



    Either I'm trying to tweak the wrong process, or it doesn't behave according to its specifications, or there is something I don't understand.
    How can I efficiently shorten this passphrase retention time?










    share|improve this question

























      3












      3








      3


      3






      I'm using Thunderbird/Enigmail, and the plugin tells me that the process in charge of the passphrase cache is gpg-agent. The retention time of the passphrase is too long for me (possibly, the entire session). I would like to make it shorter, but so far I have failed to do so.



      gpg-agent seems to be run without a default-cache-ttl argument (according to ps), so according to the manual it should use the default value, 600 seconds. It's obviously not the case. It should also use the default value for max_cache_ttl (2 hours), but it's not the case either.



      I tried to create a gpg-agent.conf file in my ~/.gnupg with a custom value for default-cache-ttl, but it seems to have no effect (I have restarted my session in order to restart gpg-agent).



      Either I'm trying to tweak the wrong process, or it doesn't behave according to its specifications, or there is something I don't understand.
      How can I efficiently shorten this passphrase retention time?










      share|improve this question














      I'm using Thunderbird/Enigmail, and the plugin tells me that the process in charge of the passphrase cache is gpg-agent. The retention time of the passphrase is too long for me (possibly, the entire session). I would like to make it shorter, but so far I have failed to do so.



      gpg-agent seems to be run without a default-cache-ttl argument (according to ps), so according to the manual it should use the default value, 600 seconds. It's obviously not the case. It should also use the default value for max_cache_ttl (2 hours), but it's not the case either.



      I tried to create a gpg-agent.conf file in my ~/.gnupg with a custom value for default-cache-ttl, but it seems to have no effect (I have restarted my session in order to restart gpg-agent).



      Either I'm trying to tweak the wrong process, or it doesn't behave according to its specifications, or there is something I don't understand.
      How can I efficiently shorten this passphrase retention time?







      gnupg passphrase enigmail






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jun 11 '13 at 12:44









      EusebiusEusebius

      218313




      218313






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Let me begin by saying I had the exact same issue...



          I found and post a solution for configuring GPG passphrase cache retention time on Ubuntu on another question.



          There is however a minor issue with the second method (disabling the GPG component of the GnomeKeyring) and Thunderbird/Enigmail: when the cache is cleared, you may get a message saying the password is wrong before any actual prompt for it; just click OK (to retry) and you will get the prompt.






          share|improve this answer

























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f306820%2fgpg-agent-how-to-limit-the-passphrase-cache-retention-time%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Let me begin by saying I had the exact same issue...



            I found and post a solution for configuring GPG passphrase cache retention time on Ubuntu on another question.



            There is however a minor issue with the second method (disabling the GPG component of the GnomeKeyring) and Thunderbird/Enigmail: when the cache is cleared, you may get a message saying the password is wrong before any actual prompt for it; just click OK (to retry) and you will get the prompt.






            share|improve this answer






























              0














              Let me begin by saying I had the exact same issue...



              I found and post a solution for configuring GPG passphrase cache retention time on Ubuntu on another question.



              There is however a minor issue with the second method (disabling the GPG component of the GnomeKeyring) and Thunderbird/Enigmail: when the cache is cleared, you may get a message saying the password is wrong before any actual prompt for it; just click OK (to retry) and you will get the prompt.






              share|improve this answer




























                0












                0








                0







                Let me begin by saying I had the exact same issue...



                I found and post a solution for configuring GPG passphrase cache retention time on Ubuntu on another question.



                There is however a minor issue with the second method (disabling the GPG component of the GnomeKeyring) and Thunderbird/Enigmail: when the cache is cleared, you may get a message saying the password is wrong before any actual prompt for it; just click OK (to retry) and you will get the prompt.






                share|improve this answer















                Let me begin by saying I had the exact same issue...



                I found and post a solution for configuring GPG passphrase cache retention time on Ubuntu on another question.



                There is however a minor issue with the second method (disabling the GPG component of the GnomeKeyring) and Thunderbird/Enigmail: when the cache is cleared, you may get a message saying the password is wrong before any actual prompt for it; just click OK (to retry) and you will get the prompt.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Apr 13 '17 at 12:23









                Community

                1




                1










                answered Nov 23 '13 at 14:41









                Jonas MalacoJonas Malaco

                8291913




                8291913






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f306820%2fgpg-agent-how-to-limit-the-passphrase-cache-retention-time%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                    Mangá

                    Eduardo VII do Reino Unido