From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: org-passwords.el and encryption Date: Wed, 27 Apr 2016 12:19:08 +0100 Message-ID: <87lh3z8fkj.fsf@pinto.chemeng.ucl.ac.uk> References: <87egbgug0n.fsf@free.fr> <87y49oneek.fsf@ucl.ac.uk> Reply-To: Eric S Fraga Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46923) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avNkB-00085W-EG for emacs-orgmode@gnu.org; Wed, 27 Apr 2016 07:35:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1avNk6-0004ev-9u for emacs-orgmode@gnu.org; Wed, 27 Apr 2016 07:34:59 -0400 Received: from mail-db3on0103.outbound.protection.outlook.com ([157.55.234.103]:1785 helo=emea01-db3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avNk5-0004e5-Tu for emacs-orgmode@gnu.org; Wed, 27 Apr 2016 07:34:54 -0400 In-Reply-To: (Julien Cubizolles's message of "Wed, 27 Apr 2016 09:57:40 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Julien Cubizolles Cc: "emacs-orgmode@gnu.org" On Wednesday, 27 Apr 2016 at 09:57, Julien Cubizolles wrote: > Eric S Fraga writes: > >> I use gpg-agent in conjunction with keychain. Generally works very >> well. > > I'm trying to set it up but I'm running into problems. Could you precise > a few details: > > + do you run keychain from your ~/.profile, and so how ? If I follow the > instructions at http://www.funtoo.org/Keychain, keychain can't start > in the login screen of the display manager (lightdm on Ubuntu in my > case) I have keychain in both my .bash_profile (for when I log in in console mode or remotely) and in my .xinitrc. The latter is used by lightdm but only when you have selected a non-standard desktop environment (not sure which setting but not one of gnome, kde, etc.). I use ratpoison... > + do you use keychain to also manage ssh keys? If so does it use a > graphical tool to ask for your passphrase=C2=A0? Yes. And yes: pinentry. I should say that keychain works without fault for ssh but see below for gpg. > + how does emacs ask for the gpg passphrase: graphical (pinentry), emacsc= lient or > in a minibuffer ? Sometimes, emacs will ask and usually does so in the minibuffer. I cannot answer more precisely because although I am running Debian testing on all of my systems, they all behave slightly differently when it comes to ssh and gpg key management. I obviously do not have exactly the same packages installed on all of my systems... My keychain line in my .xinitrc is: eval $(keychain --eval --agents ssh,gpg id_rsa gpgkey ) I think the gpgkey needs to be the subkey but I am not sure. My .bash_profile has essentially the same. HTH, eric --=20 : Eric S Fraga (0xFFFCF67D), Emacs 25.0.92.1, Org release_8.3.4-655-g9fb077