From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/82803 Path: news.gmane.org!not-for-mail From: Uwe Brauer Newsgroups: gmane.emacs.gnus.general Subject: gpgsm: smime, various secret keys, mml2015-sign-with-sender for smime Date: Sat, 05 Jan 2013 15:28:34 +0100 Message-ID: <878v87hffx.fsf@mat.ucm.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1357396232 13836 80.91.229.3 (5 Jan 2013 14:30:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Jan 2013 14:30:32 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M31069@lists.math.uh.edu Sat Jan 05 15:30:49 2013 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TrUlt-0000Vl-8g for ding-account@gmane.org; Sat, 05 Jan 2013 15:30:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1TrUkQ-0003xb-Fb; Sat, 05 Jan 2013 08:29:18 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1TrUkM-0003xI-Vx for ding@lists.math.uh.edu; Sat, 05 Jan 2013 08:29:15 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1TrUkK-0006Yp-G2 for ding@lists.math.uh.edu; Sat, 05 Jan 2013 08:29:14 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1TrUkI-0008E6-Eb for ding@gnus.org; Sat, 05 Jan 2013 15:29:10 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TrUkU-0007ms-Cl for ding@gnus.org; Sat, 05 Jan 2013 15:29:22 +0100 Original-Received: from 89.204.137.190 ([89.204.137.190]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 05 Jan 2013 15:29:22 +0100 Original-Received: from oub by 89.204.137.190 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 05 Jan 2013 15:29:22 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 60 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 89.204.137.190 X-Hashcash: 1:20:130105:gmane.emacs.gnus.general::av93GXsHOItLcduw:00000000000000000000000000000000000007N3t User-Agent: Gnus/5.110018 (No Gnus v0.18) XEmacs/21.5-b32 (linux) Cancel-Lock: sha1:C5rCgtghYcF/D1oDm/+uEnLaom4= X-Spam-Score: 0.0 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:82803 Archived-At: Hello I started to use smime, via xemacs, gnus, epg and gpgsm. [1] I have 3 accounts, one for work two private ones. I obtained free certificates from www.comodo.com. Now gpgsm chooses the secret key for signing, either as - the first which is listed by gpsm -list-secret-keys - a default one, which can be configured in gpsm.conf - the one specified by the senders address via the command. gpgsm -su oub.oub.oub@gmail.com --armor < test > ciphertext4 However it seems not to be possible to configure gpgsm (via the gpgsm.con file) such that it chooses the relevant secret keys according to the email address of the sender. (user-mail-address) And that is why it should be implemented in lisp. Daiko Ueno, the author of epg, also referred to the mml2015-sign-with-sender function, but this function is, as I understand it correctly, only for gpg. So can such a function be implemented for smime please?[2] Thanks Uwe Brauer Footnotes: [1] I used gpg, but most of the people I correspondence considered it as to user unfriendly. [2] like (defvar gpgsm-signing-command "/usr/bin/gpgsm -su %s --armor < %s > %s") (let ((secret-key-id user-mail-address) (cleartext some-mail-text) (cipertext (make-temp-file (expand-file-name "cipertext" temporary-file-directory) nil ".asc"))) (shell-command (format gpgsm-signing-command secret-key-id cleartext cipertext)))