GPG cache options don't work

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











up vote
-1
down vote

favorite












There is an option named default-cache-ttl that controls how long the agent will remember the password to the private key. However, when I put it in the config file it doesn't work - instead, gpg complains:



gpg: /home/jan/.gnupg/gpg.conf:8: invalid option


My version of GPG is



$ gpg2 --version
gpg (GnuPG) 2.1.11









share|improve this question

























    up vote
    -1
    down vote

    favorite












    There is an option named default-cache-ttl that controls how long the agent will remember the password to the private key. However, when I put it in the config file it doesn't work - instead, gpg complains:



    gpg: /home/jan/.gnupg/gpg.conf:8: invalid option


    My version of GPG is



    $ gpg2 --version
    gpg (GnuPG) 2.1.11









    share|improve this question























      up vote
      -1
      down vote

      favorite









      up vote
      -1
      down vote

      favorite











      There is an option named default-cache-ttl that controls how long the agent will remember the password to the private key. However, when I put it in the config file it doesn't work - instead, gpg complains:



      gpg: /home/jan/.gnupg/gpg.conf:8: invalid option


      My version of GPG is



      $ gpg2 --version
      gpg (GnuPG) 2.1.11









      share|improve this question













      There is an option named default-cache-ttl that controls how long the agent will remember the password to the private key. However, when I put it in the config file it doesn't work - instead, gpg complains:



      gpg: /home/jan/.gnupg/gpg.conf:8: invalid option


      My version of GPG is



      $ gpg2 --version
      gpg (GnuPG) 2.1.11






      gpg gpg-agent






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 25 mins ago









      Jan Warchoł

      351317




      351317




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          Wrong config file. This option concerns gpg-agent only, and (somewhat surprisingly) it has a separate configuration file - .gnupg/gpg-agent.conf. Put the option there and it works (configuration for GPG 2.1, earlier versions use different option names):



          $ cat .gnupg/gpg-agent.conf
          # remember the password longer (1 hour since last usage, 5 hours max)
          default-cache-ttl 3600
          max-cache-ttl 18000





          share|improve this answer




















            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: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            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%2f474611%2fgpg-cache-options-dont-work%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            Wrong config file. This option concerns gpg-agent only, and (somewhat surprisingly) it has a separate configuration file - .gnupg/gpg-agent.conf. Put the option there and it works (configuration for GPG 2.1, earlier versions use different option names):



            $ cat .gnupg/gpg-agent.conf
            # remember the password longer (1 hour since last usage, 5 hours max)
            default-cache-ttl 3600
            max-cache-ttl 18000





            share|improve this answer
























              up vote
              0
              down vote













              Wrong config file. This option concerns gpg-agent only, and (somewhat surprisingly) it has a separate configuration file - .gnupg/gpg-agent.conf. Put the option there and it works (configuration for GPG 2.1, earlier versions use different option names):



              $ cat .gnupg/gpg-agent.conf
              # remember the password longer (1 hour since last usage, 5 hours max)
              default-cache-ttl 3600
              max-cache-ttl 18000





              share|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                Wrong config file. This option concerns gpg-agent only, and (somewhat surprisingly) it has a separate configuration file - .gnupg/gpg-agent.conf. Put the option there and it works (configuration for GPG 2.1, earlier versions use different option names):



                $ cat .gnupg/gpg-agent.conf
                # remember the password longer (1 hour since last usage, 5 hours max)
                default-cache-ttl 3600
                max-cache-ttl 18000





                share|improve this answer












                Wrong config file. This option concerns gpg-agent only, and (somewhat surprisingly) it has a separate configuration file - .gnupg/gpg-agent.conf. Put the option there and it works (configuration for GPG 2.1, earlier versions use different option names):



                $ cat .gnupg/gpg-agent.conf
                # remember the password longer (1 hour since last usage, 5 hours max)
                default-cache-ttl 3600
                max-cache-ttl 18000






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 25 mins ago









                Jan Warchoł

                351317




                351317



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f474611%2fgpg-cache-options-dont-work%23new-answer', 'question_page');

                    );

                    Post as a guest