How do I make gpg-agent forget my passphrase automatically?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
4
down vote

favorite
1












I'm using Thunderbird with enigmail and gpg. From thunderbird/enigmail, I can't make the gpg-agent forget my passphrase, enigmail tells me I'm using gpg-agent for passphrase management so enigmail can't forget my passphrase.



Is there a way to make gpg-agent forget my passphrase periodically? To be honest, I only skimmed the manpage but it looked like there was nothingin there.










share|improve this question





















  • man gpg-agent | less -p default-cache...
    – jasonwryan
    Jul 18 '14 at 7:26














up vote
4
down vote

favorite
1












I'm using Thunderbird with enigmail and gpg. From thunderbird/enigmail, I can't make the gpg-agent forget my passphrase, enigmail tells me I'm using gpg-agent for passphrase management so enigmail can't forget my passphrase.



Is there a way to make gpg-agent forget my passphrase periodically? To be honest, I only skimmed the manpage but it looked like there was nothingin there.










share|improve this question





















  • man gpg-agent | less -p default-cache...
    – jasonwryan
    Jul 18 '14 at 7:26












up vote
4
down vote

favorite
1









up vote
4
down vote

favorite
1






1





I'm using Thunderbird with enigmail and gpg. From thunderbird/enigmail, I can't make the gpg-agent forget my passphrase, enigmail tells me I'm using gpg-agent for passphrase management so enigmail can't forget my passphrase.



Is there a way to make gpg-agent forget my passphrase periodically? To be honest, I only skimmed the manpage but it looked like there was nothingin there.










share|improve this question













I'm using Thunderbird with enigmail and gpg. From thunderbird/enigmail, I can't make the gpg-agent forget my passphrase, enigmail tells me I'm using gpg-agent for passphrase management so enigmail can't forget my passphrase.



Is there a way to make gpg-agent forget my passphrase periodically? To be honest, I only skimmed the manpage but it looked like there was nothingin there.







gpg thunderbird gpg-agent






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jul 18 '14 at 7:19









mart

3701410




3701410











  • man gpg-agent | less -p default-cache...
    – jasonwryan
    Jul 18 '14 at 7:26
















  • man gpg-agent | less -p default-cache...
    – jasonwryan
    Jul 18 '14 at 7:26















man gpg-agent | less -p default-cache...
– jasonwryan
Jul 18 '14 at 7:26




man gpg-agent | less -p default-cache...
– jasonwryan
Jul 18 '14 at 7:26










3 Answers
3






active

oldest

votes

















up vote
5
down vote













You can use the --default-cache-ttl option to set how long to keep an entry around:



eval $(gpg-agent --default-cache-ttl 300)


will cache for five minutes. You can also set this in your gpg-agent.conf file:



default-cache-ttl 300


The default is ten minutes (600 seconds). These timeouts will be reset when you use the key. max-cache-ttl sets the upper limit before reentering the passphrase.






share|improve this answer



























    up vote
    4
    down vote













    If you want to make gpg-agent forget your passphrase on demand (for instance, when your screensaver activates) you can send it a SIGHUP:



    $ killall -s HUP gpg-agent


    That'll generate a log file entry like this:



    2014-09-19 16:14:22 gpg-agent[1100] SIGHUP received - re-reading configuration and flushing cache





    share|improve this answer



























      up vote
      0
      down vote













      You can just kill it. This is the canonical way to kill gpg-agent:



      gpgconf --kill gpg-agent




      share




















        Your Answer








        StackExchange.ready(function()
        var channelOptions =
        tags: "".split(" "),
        id: "106"
        ;
        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',
        convertImagesToLinks: false,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: null,
        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%2funix.stackexchange.com%2fquestions%2f145233%2fhow-do-i-make-gpg-agent-forget-my-passphrase-automatically%23new-answer', 'question_page');

        );

        Post as a guest






























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes








        up vote
        5
        down vote













        You can use the --default-cache-ttl option to set how long to keep an entry around:



        eval $(gpg-agent --default-cache-ttl 300)


        will cache for five minutes. You can also set this in your gpg-agent.conf file:



        default-cache-ttl 300


        The default is ten minutes (600 seconds). These timeouts will be reset when you use the key. max-cache-ttl sets the upper limit before reentering the passphrase.






        share|improve this answer
























          up vote
          5
          down vote













          You can use the --default-cache-ttl option to set how long to keep an entry around:



          eval $(gpg-agent --default-cache-ttl 300)


          will cache for five minutes. You can also set this in your gpg-agent.conf file:



          default-cache-ttl 300


          The default is ten minutes (600 seconds). These timeouts will be reset when you use the key. max-cache-ttl sets the upper limit before reentering the passphrase.






          share|improve this answer






















            up vote
            5
            down vote










            up vote
            5
            down vote









            You can use the --default-cache-ttl option to set how long to keep an entry around:



            eval $(gpg-agent --default-cache-ttl 300)


            will cache for five minutes. You can also set this in your gpg-agent.conf file:



            default-cache-ttl 300


            The default is ten minutes (600 seconds). These timeouts will be reset when you use the key. max-cache-ttl sets the upper limit before reentering the passphrase.






            share|improve this answer












            You can use the --default-cache-ttl option to set how long to keep an entry around:



            eval $(gpg-agent --default-cache-ttl 300)


            will cache for five minutes. You can also set this in your gpg-agent.conf file:



            default-cache-ttl 300


            The default is ten minutes (600 seconds). These timeouts will be reset when you use the key. max-cache-ttl sets the upper limit before reentering the passphrase.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jul 18 '14 at 7:27









            Michael Homer

            44k6117155




            44k6117155






















                up vote
                4
                down vote













                If you want to make gpg-agent forget your passphrase on demand (for instance, when your screensaver activates) you can send it a SIGHUP:



                $ killall -s HUP gpg-agent


                That'll generate a log file entry like this:



                2014-09-19 16:14:22 gpg-agent[1100] SIGHUP received - re-reading configuration and flushing cache





                share|improve this answer
























                  up vote
                  4
                  down vote













                  If you want to make gpg-agent forget your passphrase on demand (for instance, when your screensaver activates) you can send it a SIGHUP:



                  $ killall -s HUP gpg-agent


                  That'll generate a log file entry like this:



                  2014-09-19 16:14:22 gpg-agent[1100] SIGHUP received - re-reading configuration and flushing cache





                  share|improve this answer






















                    up vote
                    4
                    down vote










                    up vote
                    4
                    down vote









                    If you want to make gpg-agent forget your passphrase on demand (for instance, when your screensaver activates) you can send it a SIGHUP:



                    $ killall -s HUP gpg-agent


                    That'll generate a log file entry like this:



                    2014-09-19 16:14:22 gpg-agent[1100] SIGHUP received - re-reading configuration and flushing cache





                    share|improve this answer












                    If you want to make gpg-agent forget your passphrase on demand (for instance, when your screensaver activates) you can send it a SIGHUP:



                    $ killall -s HUP gpg-agent


                    That'll generate a log file entry like this:



                    2014-09-19 16:14:22 gpg-agent[1100] SIGHUP received - re-reading configuration and flushing cache






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Sep 19 '14 at 21:16









                    amphetamachine

                    3,70512338




                    3,70512338




















                        up vote
                        0
                        down vote













                        You can just kill it. This is the canonical way to kill gpg-agent:



                        gpgconf --kill gpg-agent




                        share
























                          up vote
                          0
                          down vote













                          You can just kill it. This is the canonical way to kill gpg-agent:



                          gpgconf --kill gpg-agent




                          share






















                            up vote
                            0
                            down vote










                            up vote
                            0
                            down vote









                            You can just kill it. This is the canonical way to kill gpg-agent:



                            gpgconf --kill gpg-agent




                            share












                            You can just kill it. This is the canonical way to kill gpg-agent:



                            gpgconf --kill gpg-agent





                            share











                            share


                            share










                            answered 4 mins ago









                            MMGen

                            363




                            363



























                                 

                                draft saved


                                draft discarded















































                                 


                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function ()
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f145233%2fhow-do-i-make-gpg-agent-forget-my-passphrase-automatically%23new-answer', 'question_page');

                                );

                                Post as a guest













































































                                Popular posts from this blog

                                How to check contact read email or not when send email to Individual?

                                Christian Cage

                                How to properly install USB display driver for Fresco Logic FL2000DX on Ubuntu?