{"id":10,"date":"2010-09-15T09:41:52","date_gmt":"2010-09-15T09:41:52","guid":{"rendered":"https:\/\/thebc.ch\/blog\/?p=10"},"modified":"2013-02-01T13:18:27","modified_gmt":"2013-02-01T12:18:27","slug":"working-with-pinentry","status":"publish","type":"post","link":"https:\/\/thebc.ch\/blog\/?p=10","title":{"rendered":"Working with Pinentry"},"content":{"rendered":"<p>In Linux, if you work with applications like claws-mail or psi, and you use encryption, you have to entry your password every time you read a new mail or receive a new chat message. This sucks really! This article describes how pinentry remembers your password for a given time.<br \/>\nCheck your gpg.conf<\/p>\n<pre lang=\"bash\">vi ~\/.gnupg\/gpg.conf\r\n<\/pre>\n<p>and uncomment<\/p>\n<pre lang=\"text\">use-agent\r\n<\/pre>\n<p>Check (or make a new) gpg-agent.conf<\/p>\n<pre lang=\"bash\">vi ~\/.gnupg\/gpg-agent.conf\r\n<\/pre>\n<p>and add something like<\/p>\n<pre lang=\"text\">pinentry-program \/usr\/bin\/pinentry-gtk-2   # or \"pinentry-qt\" if you use kde\r\nno-grab\r\ndefault-cache-ttl 1800                     # your desired time in seconds\r\n<\/pre>\n<p>And finally start your program with the following code. I use claws-mail here.<\/p>\n<pre lang=\"text\">bash -c \"eval `gpg-agent --daemon` &amp;&amp; claws-mail\"\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In Linux, if you work with applications like claws-mail or psi, and you use encryption, you have to entry your password every time you read a new mail or receive a new chat message. This sucks really! This article describes &hellip; <a href=\"https:\/\/thebc.ch\/blog\/?p=10\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-10","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/10","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10"}],"version-history":[{"count":19,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/10\/revisions"}],"predecessor-version":[{"id":2749,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/10\/revisions\/2749"}],"wp:attachment":[{"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}