GNU bug report logs - #24718
25.1; (auth-source-search) fails in 25.1.1 for OSX

Previous Next

Package: emacs;

Reported by: Alexey Veretennikov <alexey.veretennikov <at> gmail.com>

Date: Mon, 17 Oct 2016 18:31:01 UTC

Severity: normal

Tags: notabug

Found in version 25.1

Done: Alan Third <alan <at> idiocy.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 24718 in the body.
You can then email your comments to 24718 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#24718; Package emacs. (Mon, 17 Oct 2016 18:31:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Alexey Veretennikov <alexey.veretennikov <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 17 Oct 2016 18:31:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Alexey Veretennikov <alexey.veretennikov <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.1; (auth-source-search) fails in 25.1.1 for OSX
Date: Mon, 17 Oct 2016 20:30:25 +0200
[Message part 1 (text/plain, inline)]
Emacs for OSX installed from http://emacsformacosx.com/

Perform in *scratch* buffer
(require 'auth-source)
auth-source
(auth-source-search)
<= here the error Debugger entered--Lisp error: (epg-error "no usable
configuration" OpenPGP) occurs
See screenshot attached.


In GNU Emacs 25.1.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21 Version
10.9.5 (Build 13F1911))
 of 2016-09-21 built on builder10-9.porkrind.org
Windowing system distributor 'Apple', version 10.3.1348
Configured using:
 'configure --with-ns '--enable-locallisppath=/Library/Application
 Support/Emacs/${version}/site-lisp:/Library/Application
 Support/Emacs/site-lisp' --with-modules'

Configured features:
NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES

Important settings:
  value of $LC_ALL: en_US.UTF-8
  value of $LC_CTYPE: en_US.UTF-8
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Mark set [3 times]
Entering debugger...
Back to top level
Entering debugger...
Back to top level

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message dired format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils
debug epa-file epa derived epg epg-config auth-source cl-seq eieio
byte-opt bytecomp byte-compile cl-extra cconv eieio-core cl-macs gv
gnus-util mm-util help-fns help-mode easymenu cl-loaddefs pcase cl-lib
mail-prsvr password-cache time-date mule-util tooltip eldoc electric
uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win ucs-normalize
term/common-win tool-bar dnd fontset image regexp-opt fringe
tabulated-list newcomment elisp-mode lisp-mode prog-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help
simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces
cus-face macroexp files text-properties overlay sha1 md5 base64 format
env code-pages mule custom widget hashtable-print-readable backquote
kqueue cocoa ns multi-tty make-network-process emacs)

Memory information:
((conses 16 207448 9793)
 (symbols 48 20737 0)
 (miscs 40 67 274)
 (strings 32 18928 6120)
 (string-bytes 1 559076)
 (vectors 16 34879)
 (vector-slots 8 680487 6341)
 (floats 8 195 182)
 (intervals 56 286 0)
 (buffers 976 18))
[Message part 2 (text/html, inline)]
[Screen Shot 2016-10-17 at 20.23.56.png (image/png, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24718; Package emacs. (Tue, 18 Oct 2016 10:04:01 GMT) Full text and rfc822 format available.

Message #8 received at 24718 <at> debbugs.gnu.org (full text, mbox):

From: Ted Zlatanov <tzz <at> lifelogs.com>
To: Alexey Veretennikov <alexey.veretennikov <at> gmail.com>
Cc: 24718 <at> debbugs.gnu.org, Daiki Ueno <ueno <at> unixuser.org>
Subject: Re: bug#24718: 25.1; (auth-source-search) fails in 25.1.1 for OSX
Date: Tue, 18 Oct 2016 06:03:00 -0400
On Mon, 17 Oct 2016 20:30:25 +0200 Alexey Veretennikov <alexey.veretennikov <at> gmail.com> wrote: 

AV> Emacs for OSX installed from http://emacsformacosx.com/
AV> Perform in *scratch* buffer
AV> (require 'auth-source)
AV> auth-source
AV> (auth-source-search)
AV> <= here the error Debugger entered--Lisp error: (epg-error "no usable
AV> configuration" OpenPGP) occurs
AV> See screenshot attached.

I don't have access to that platform, but there are two easy things you
can do to help us locate the problem:

1) open any .gpg file directly. Does that fail with the same message?

2) set auth-sources to ~/.authinfo and put some lines in that file. Does
that work?

If (1) fails and (2) works, the problem is in EPA/EPG or its
configuration, and not auth-source. You can use (2) as a workaround
until this issue is resolved.

Thanks
Ted




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24718; Package emacs. (Tue, 18 Oct 2016 14:00:02 GMT) Full text and rfc822 format available.

Message #11 received at 24718 <at> debbugs.gnu.org (full text, mbox):

From: Gijs Hillenius <gijs <at> hillenius.net>
To: 24718 <at> debbugs.gnu.org
Subject: emacs25.1 + gnus,
 opening message gives: epg-error "no usable configuration" CMS
Date: Tue, 18 Oct 2016 15:59:05 +0200
Ted asked me to follow up here, so reposting and edited version of my
question on gnu.emacs.help.


I just started using Debian Emacs 25.1 + Gnus to get to my email. There
is one message that gives an epg-error that I've not seen before, and
eh, it seems neither has Google (except for pointing me to the source
code)..

Following the error, the message is displayed as raw. The message is
displayed normally under Gnus in emacs24: there the message warns:
[[S/MIME Signed Part:Failed]]

The error suggests that I need to change/add settings to my Emacs init.el or
.gnus file? But what?

It Looks like a misconfiguration or bug for handling Apple Mail s/mime
multipart messages

From my .gnus, s/mime relate settings:

       mm-verify-option 'always
       mm-decrypt-option 'always
       gnus-buttonized-mime-types
       '("multipart/alternative"
         "multipart/encrypted"
         "mul2tipart/signed")


Here is the Backtrace. 

Debugger entered--Lisp error: (epg-error "no usable configuration" CMS)
  signal(epg-error ("no usable configuration" CMS))
  epg-context--make(CMS nil nil nil nil nil nil)
  epg-make-context(CMS)
  mml-smime-epg-verify(((#("multipart/alternative" 0 21 (boundary
"Apple-Mail=athirdrandomnumber" buffer #<buffer *mm*-284343> from
"name <at> invalid" start nil)) (#<buffer *mm*-592458> ("text/plain"
(charset . "utf-8")) quoted-printable nil ("inline") nil nil nil)
(#("multipart/mixed" 0 15 (boundary "Apple-Mail=_somerandomnumberB"
buffer #<buffer *mm*-435762> from "name <at> invalid" start nil)) (#<buffer
*mm*-694220> ("text/html" (charset . "utf-8")) quoted-printable nil
nil nil nil nil) (#<buffer *mm*-880244>
("application/vnd.oasis.opendocument.text" (name . "attachmentname")
(x-unix-mode . "0644")) base64 nil ("attachment" (filename
. "attachmentname")) nil nil nil) (#<buffer *mm*-624164> ("text/html"
(charset . "us-ascii")) 7bit nil nil nil nil nil))) (#<buffer
*mm*-696004> ("application/pkcs7-signature" (name . "smime.p7s"))
base64 nil ("attachment" (filename . "smime.p7s")) nil nil nil))
(#("multipart/signed" 0 16 (micalg "sha1" protocol
"application/pkcs7-signature" boundary
"Apple-Mail=anotherrandomnumber" buffer #<buffer *mm*-412231> from
"name <at> invalid" start nil)) (micalg . "sha1") (protocol
. "application/pkcs7-signature") (boundary
. "Apple-Mail=anotherrandomnumber")))
  mml-smime-verify(((#("multipart/alternative" 0 21 (boundary
"Apple-Mail=athirdrandomnumber" buffer #<buffer *mm*-284343> from
"name <at> invalid" start nil)) (#<buffer *mm*-592458> ("text/plain"
(charset . "utf-8")) quoted-printable nil ("inline") nil nil nil)
(#("multipart/mixed" 0 15 (boundary "Apple-Mail=_somerandomnumberB"
buffer #<buffer *mm*-435762> from "name <at> invalid" start nil)) (#<buffer
*mm*-694220> ("text/html" (charset . "utf-8")) quoted-printable nil
nil nil nil nil) (#<buffer *mm*-880244>
("application/vnd.oasis.opendocument.text" (name . "attachmentname")
(x-unix-mode . "0644")) base64 nil ("attachment" (filename
. "attachmentname")) nil nil nil) (#<buffer *mm*-624164> ("text/html"
(charset . "us-ascii")) 7bit nil nil nil nil nil))) (#<buffer
*mm*-696004> ("application/pkcs7-signature" (name . "smime.p7s"))
base64 nil ("attachment" (filename . "smime.p7s")) nil nil nil))
(#("multipart/signed" 0 16 (micalg "sha1" protocol
"application/pkcs7-signature" boundary
"Apple-Mail=anotherrandomnumber" buffer #<buffer *mm*-412231> from
"name <at> invalid" start nil)) (micalg . "sha1") (protocol
. "application/pkcs7-signature") (boundary
. "Apple-Mail=anotherrandomnumber")))
  mm-possibly-verify-or-decrypt(((#("multipart/alternative" 0 21
(boundary "Apple-Mail=athirdrandomnumber" buffer #<buffer *mm*-284343>
from "name <at> invalid" start nil)) (#<buffer *mm*-592458> ("text/plain"
(charset . "utf-8")) quoted-printable nil ("inline") nil nil nil)
(#("multipart/mixed" 0 15 (boundary "Apple-Mail=_somerandomnumberB"
buffer #<buffer *mm*-435762> from "name <at> invalid" start nil)) (#<buffer
*mm*-694220> ("text/html" (charset . "utf-8")) quoted-printable nil
nil nil nil nil) (#<buffer *mm*-880244>
("application/vnd.oasis.opendocument.text" (name . "attachmentname")
(x-unix-mode . "0644")) base64 nil ("attachment" (filename
. "attachmentname")) nil nil nil) (#<buffer *mm*-624164> ("text/html"
(charset . "us-ascii")) 7bit nil nil nil nil nil))) (#<buffer
*mm*-696004> ("application/pkcs7-signature" (name . "smime.p7s"))
base64 nil ("attachment" (filename . "smime.p7s")) nil nil nil))
(#("multipart/signed" 0 16 (micalg "sha1" protocol
"application/pkcs7-signature" boundary
"Apple-Mail=anotherrandomnumber" buffer #<buffer *mm*-412231> from
"name <at> invalid" start nil)) (micalg . "sha1") (protocol
. "application/pkcs7-signature") (boundary
. "Apple-Mail=anotherrandomnumber")) "name <at> invalid")
  mm-dissect-multipart((#("multipart/signed" 0 16 (micalg "sha1"
protocol "application/pkcs7-signature" boundary
"Apple-Mail=anotherrandomnumber" buffer #<buffer *mm*-412231> from
"name <at> invalid" start nil)) (micalg . "sha1") (protocol
. "application/pkcs7-signature") (boundary
. "Apple-Mail=anotherrandomnumber")) "name <at> invalid")
  mm-dissect-buffer(nil t)
  gnus-display-mime()
  gnus-article-prepare-display()
  gnus-article-prepare(1242 nil)
  gnus-summary-display-article(1242 nil)
  gnus-summary-select-article(nil nil pseudo)
  gnus-summary-scroll-up(1)
  funcall-interactively(gnus-summary-scroll-up 1)
  call-interactively(gnus-summary-scroll-up nil nil)
  command-execute(gnus-summary-scroll-up)
  





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24718; Package emacs. (Tue, 18 Oct 2016 22:15:01 GMT) Full text and rfc822 format available.

Message #14 received at 24718 <at> debbugs.gnu.org (full text, mbox):

From: Alexey Veretennikov <alexey.veretennikov <at> gmail.com>
To: 24718 <at> debbugs.gnu.org
Cc: Daiki Ueno <ueno <at> unixuser.org>
Subject: Re: bug#24718: 25.1; (auth-source-search) fails in 25.1.1 for OSX
Date: Wed, 19 Oct 2016 00:14:50 +0200
Hi,

I've found rather strange solution/workaround.
I've used gpg version 2.0.xx, which worked for me for 25.0.50 I believe.
But for 25.1 I had to upgrade gpg to 2.1.15. Now everything seems to work.

Ted Zlatanov <tzz <at> lifelogs.com> writes:

> On Mon, 17 Oct 2016 20:30:25 +0200 Alexey Veretennikov
> <alexey.veretennikov <at> gmail.com> wrote:
>
> AV> Emacs for OSX installed from http://emacsformacosx.com/
> AV> Perform in *scratch* buffer
> AV> (require 'auth-source)
> AV> auth-source
> AV> (auth-source-search)
> AV> <= here the error Debugger entered--Lisp error: (epg-error "no usable
> AV> configuration" OpenPGP) occurs
> AV> See screenshot attached.
>
> I don't have access to that platform, but there are two easy things you
> can do to help us locate the problem:
>
> 1) open any .gpg file directly. Does that fail with the same message?
>
> 2) set auth-sources to ~/.authinfo and put some lines in that file. Does
> that work?
>
> If (1) fails and (2) works, the problem is in EPA/EPG or its
> configuration, and not auth-source. You can use (2) as a workaround
> until this issue is resolved.
>
> Thanks
> Ted

-- 
Br,
/Alexey




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24718; Package emacs. (Wed, 19 Oct 2016 13:24:02 GMT) Full text and rfc822 format available.

Message #17 received at 24718 <at> debbugs.gnu.org (full text, mbox):

From: Ted Zlatanov <tzz <at> lifelogs.com>
To: Gijs Hillenius <gijs <at> hillenius.net>
Cc: 24718 <at> debbugs.gnu.org, Daiki Ueno <ueno <at> unixuser.org>,
 Alexey Veretennikov <alexey.veretennikov <at> gmail.com>
Subject: Re: bug#24718: emacs25.1 + gnus, opening message gives: epg-error "no
 usable configuration" CMS, bug#24718: 25.1;
 (auth-source-search) fails in 25.1.1 for OSX
Date: Wed, 19 Oct 2016 09:23:10 -0400
On Tue, 18 Oct 2016 15:59:05 +0200 Gijs Hillenius <gijs <at> hillenius.net> wrote: 

GH> Ted asked me to follow up here, so reposting and edited version of my
GH> question on gnu.emacs.help.

Hi Gijs, can you try Alexey's workaround? Also note my two suggestions
at the bottom, if the workaround doesn't do it.

Alexey reported this for Mac OS but it seems like it may affect multiple
platforms, since you said that you were on Debian.

Thanks
Ted

On Wed, 19 Oct 2016 00:14:50 +0200 Alexey Veretennikov <alexey.veretennikov <at> gmail.com> wrote: 

AV> I've found rather strange solution/workaround.
AV> I've used gpg version 2.0.xx, which worked for me for 25.0.50 I believe.
AV> But for 25.1 I had to upgrade gpg to 2.1.15. Now everything seems to work.

AV> Ted Zlatanov <tzz <at> lifelogs.com> writes:

>> there are two easy things you can do to help us locate the problem:
>> 
>> 1) open any .gpg file directly. Does that fail with the same message?
>> 
>> 2) set auth-sources to ~/.authinfo and put some lines in that file. Does
>> that work?
>> 
>> If (1) fails and (2) works, the problem is in EPA/EPG or its
>> configuration, and not auth-source. You can use (2) as a workaround
>> until this issue is resolved.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24718; Package emacs. (Wed, 19 Oct 2016 13:52:01 GMT) Full text and rfc822 format available.

Message #20 received at 24718 <at> debbugs.gnu.org (full text, mbox):

From: Gijs Hillenius <gijs <at> hillenius.net>
To: 24718 <at> debbugs.gnu.org 
Cc: Ted Zlatanov <tzz <at> lifelogs.com>, Daiki Ueno <ueno <at> unixuser.org>,
 Alexey Veretennikov <alexey.veretennikov <at> gmail.com>
Subject: Re: bug#24718: emacs25.1 + gnus, opening message gives: epg-error "no
 usable configuration" CMS, bug#24718: 25.1;
 (auth-source-search) fails in 25.1.1 for OSX
Date: Wed, 19 Oct 2016 15:50:51 +0200
On 19 Oct 2016, Ted Zlatanov wrote:

> Hi Gijs, can you try Alexey's workaround? Also note my two suggestions
> at the bottom, if the workaround doesn't do it.
>
> Alexey reported this for Mac OS but it seems like it may affect
> multiple platforms, since you said that you were on Debian.
>
> Thanks
> Ted
>
> On Wed, 19 Oct 2016 00:14:50 +0200 Alexey Veretennikov <alexey.veretennikov <at> gmail.com> wrote:
>
> AV> I've found rather strange solution/workaround.  I've used gpg
> AV> version 2.0.xx, which worked for me for 25.0.50 I believe.  But
> AV> for 25.1 I had to upgrade gpg to 2.1.15. Now everything seems to
> AV> work.
>
> AV> Ted Zlatanov <tzz <at> lifelogs.com> writes:
>
>>> there are two easy things you can do to help us locate the problem:
>>>
>>> 1) open any .gpg file directly. Does that fail with the same
>>> message?
>>>
>>> 2) set auth-sources to ~/.authinfo and put some lines in that
>>> file. Does that work?
>>>
>>> If (1) fails and (2) works, the problem is in EPA/EPG or its
>>> configuration, and not auth-source. You can use (2) as a workaround
>>> until this issue is resolved.

I'm already on (Debian's) GPGv 2.1.15-4, and I can open .gpg files fine,
such as authinfo.gpg. I can also decrypt gpg buffers
(epa-decrypt-region) fine.

So far, I only get this error "epg-error "no usable configuration" CMS"
when opening an email message by somebody using an Apple to send me an
S/MIME message. In Emacs24, using Gnus, this gives the normal message
headers followed by

[[S/MIME Signed Part:Failed]]
1.  ( ) text/plain          (*) text/html  

in Emacs25, the same message is displayed as raw.

Perhaps it is not at all related to the OP's issue. 




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24718; Package emacs. (Wed, 19 Oct 2016 13:57:02 GMT) Full text and rfc822 format available.

Message #23 received at 24718 <at> debbugs.gnu.org (full text, mbox):

From: Ted Zlatanov <tzz <at> lifelogs.com>
To: Gijs Hillenius <gijs <at> hillenius.net>
Cc: 24718 <at> debbugs.gnu.org, Daiki Ueno <ueno <at> unixuser.org>,
 Alexey Veretennikov <alexey.veretennikov <at> gmail.com>
Subject: Re: bug#24718: emacs25.1 + gnus, opening message gives: epg-error "no
 usable configuration" CMS, bug#24718: 25.1;
 (auth-source-search) fails in 25.1.1 for OSX
Date: Wed, 19 Oct 2016 09:56:28 -0400
On Wed, 19 Oct 2016 15:50:51 +0200 Gijs Hillenius <gijs <at> hillenius.net> wrote: 

GH> I'm already on (Debian's) GPGv 2.1.15-4, and I can open .gpg files fine,
GH> such as authinfo.gpg. I can also decrypt gpg buffers
GH> (epa-decrypt-region) fine.

GH> So far, I only get this error "epg-error "no usable configuration" CMS"
GH> when opening an email message by somebody using an Apple to send me an
GH> S/MIME message. In Emacs24, using Gnus, this gives the normal message
GH> headers followed by

GH> [[S/MIME Signed Part:Failed]]
GH> 1.  ( ) text/plain          (*) text/html  

GH> in Emacs25, the same message is displayed as raw.

GH> Perhaps it is not at all related to the OP's issue. 

I see, thank you for clarifying. The error message was the same so I
hoped it was related. I'll wait for the EPA/EPG maintainer, Daiki Ueno,
to comment since I don't know the internals well enough to be more
helpful.

Thanks
Ted




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24718; Package emacs. (Wed, 19 Oct 2016 15:42:01 GMT) Full text and rfc822 format available.

Message #26 received at 24718 <at> debbugs.gnu.org (full text, mbox):

From: Daiki Ueno <ueno <at> gnu.org>
To: Gijs Hillenius <gijs <at> hillenius.net>
Cc: 24718 <at> debbugs.gnu.org, Daiki Ueno <ueno <at> unixuser.org>,
 Alexey Veretennikov <alexey.veretennikov <at> gmail.com>
Subject: Re: bug#24718: emacs25.1 + gnus, opening message gives: epg-error "no
 usable configuration" CMS, bug#24718: 25.1;
 (auth-source-search) fails in 25.1.1 for OSX
Date: Wed, 19 Oct 2016 17:41:13 +0200
> GH> So far, I only get this error "epg-error "no usable configuration" CMS"

What is this evaluated to?

  M-: (epg-find-configuration 'CMS)

On my environment, it's is:

  ((program . "/usr/bin/gpgsm") (version . "2.1.13"))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24718; Package emacs. (Wed, 19 Oct 2016 18:28:02 GMT) Full text and rfc822 format available.

Message #29 received at 24718 <at> debbugs.gnu.org (full text, mbox):

From: Gijs Hillenius <gijs <at> hillenius.net>
To: Daiki Ueno <ueno <at> gnu.org>
Cc: 24718 <at> debbugs.gnu.org, Daiki Ueno <ueno <at> unixuser.org>,
 Alexey Veretennikov <alexey.veretennikov <at> gmail.com>
Subject: Re: bug#24718: emacs25.1 + gnus, opening message gives: epg-error "no
 usable configuration" CMS, bug#24718: 25.1;
 (auth-source-search) fails in 25.1.1 for OSX
Date: Wed, 19 Oct 2016 20:27:10 +0200
On 19 Oct 2016, Daiki Ueno wrote:

>> GH> So far, I only get this error "epg-error "no usable
>> GH> configuration" CMS"
>
> What is this evaluated to?
>
> M-: (epg-find-configuration 'CMS)

over here that evaluates to nil

> On my environment, it's is:
>
> ((program . "/usr/bin/gpgsm") (version . "2.1.13"))

Well, that explains something :-) I did not before have this gpgsm
installed. Now I have, but oddly, now gnus takes forever to open the
message.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24718; Package emacs. (Thu, 20 Oct 2016 07:07:01 GMT) Full text and rfc822 format available.

Message #32 received at 24718 <at> debbugs.gnu.org (full text, mbox):

From: Daiki Ueno <ueno <at> gnu.org>
To: Gijs Hillenius <gijs <at> hillenius.net>
Cc: 24718 <at> debbugs.gnu.org, Alexey Veretennikov <alexey.veretennikov <at> gmail.com>
Subject: Re: bug#24718: emacs25.1 + gnus, opening message gives: epg-error "no
 usable configuration" CMS, bug#24718: 25.1;
 (auth-source-search) fails in 25.1.1 for OSX
Date: Thu, 20 Oct 2016 09:05:59 +0200
> Well, that explains something :-) I did not before have this gpgsm
> installed. Now I have, but oddly, now gnus takes forever to open the
> message.

S/MIME signature verification with gpgsm could take some time.  If it
takes really too long, a usual suggestion is to gather debug output with
(setq epg-debug t).




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24718; Package emacs. (Thu, 20 Oct 2016 07:21:01 GMT) Full text and rfc822 format available.

Message #35 received at 24718 <at> debbugs.gnu.org (full text, mbox):

From: Gijs Hillenius <gijs <at> hillenius.net>
To: 24718 <at> debbugs.gnu.org
Cc: Daiki Ueno <ueno <at> unixuser.org>
Subject: Re: bug#24718: emacs25.1 + gnus, opening message gives: epg-error "no
 usable configuration" CMS, bug#24718: 25.1;
 (auth-source-search) fails in 25.1.1 for OSX
Date: Thu, 20 Oct 2016 09:20:22 +0200
So I installed gpgsm (Debian Sid's 2.1.15-4).

Without configuring anything gpgsm-related, this gives two kinds of
results:

I have a bunch of email messages, all from the same sender, that come
with s/mime. For these emails, Gnus now takes forever, or /sometimes/ it
pops up a question:

Do you ultimately trust
"CN=AddTrust External CA Root
 OU=AddTrust External TTP Network
 O=AddTrust AB
 C=SE"
to correctly certify user certificates?
[cancel][yes]


If I hit yes, there is a second question, which I have not captured
yet. If I hit cancel - either at the second question, or on the first -
Emacs + Gnus seem to continue to wait forever. When I C-g, the message
is displayed as raw.

I don't yet know why this question, or these questions, is or are
displayed just sometimes, not everytime.

I notice that when trying to open one of these s/mime messages, gpgsm is
trying to verify things: 

/usr/bin/gpgsm --no-tty --status-fd 1 --yes --output /tmp/epg-output314864Xn --verify -- /tmp/epg-signature31486Fit -

/tmp/epg-signature31486Fit looks like the AddTrust certificate,
/tmp/epg-output314864Xn is empty





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24718; Package emacs. (Thu, 20 Oct 2016 09:03:02 GMT) Full text and rfc822 format available.

Message #38 received at 24718 <at> debbugs.gnu.org (full text, mbox):

From: Gijs Hillenius <gijs <at> hillenius.net>
To: Daiki Ueno <ueno <at> gnu.org>
Cc: 24718 <at> debbugs.gnu.org
Subject: Re: bug#24718: emacs25.1 + gnus, opening message gives: epg-error "no
 usable configuration" CMS, bug#24718: 25.1;
 (auth-source-search) fails in 25.1.1 for OSX
Date: Thu, 20 Oct 2016 11:02:47 +0200
On 20 Oct 2016, Daiki Ueno wrote:

>> Well, that explains something :-) I did not before have this gpgsm
>> installed. Now I have, but oddly, now gnus takes forever to open the
>> message.
>
> S/MIME signature verification with gpgsm could take some time.  If it
> takes really too long, a usual suggestion is to gather debug output
> with (setq epg-debug t).

it takes many minutes.. and I give up waiting, so press C-g

But now, oddly enough, when I open an earlier s/mime message, it is
displayed immediately, and it now shows: 

[[S/MIME Signed Part:Failed]]

which is the behaviour in Emacs24 (without gpgsm).


-- 
I have more hit points that you can possible imagine.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24718; Package emacs. (Thu, 20 Oct 2016 09:52:01 GMT) Full text and rfc822 format available.

Message #41 received at 24718 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> suse.de>
To: Gijs Hillenius <gijs <at> hillenius.net>
Cc: 24718 <at> debbugs.gnu.org, Daiki Ueno <ueno <at> gnu.org>
Subject: Re: bug#24718: emacs25.1 + gnus, opening message gives: epg-error "no
 usable configuration" CMS, bug#24718: 25.1;
 (auth-source-search) fails in 25.1.1 for OSX
Date: Thu, 20 Oct 2016 11:51:26 +0200
On Okt 20 2016, Gijs Hillenius <gijs <at> hillenius.net> wrote:

> On 20 Oct 2016, Daiki Ueno wrote:
>
>>> Well, that explains something :-) I did not before have this gpgsm
>>> installed. Now I have, but oddly, now gnus takes forever to open the
>>> message.
>>
>> S/MIME signature verification with gpgsm could take some time.  If it
>> takes really too long, a usual suggestion is to gather debug output
>> with (setq epg-debug t).
>
> it takes many minutes.. and I give up waiting, so press C-g

Perhaps it needs to download the CRL, which can take a long time.  Watch
the directory ~/.gnupg/dirmngr-cache.d while it hangs.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab <at> suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24718; Package emacs. (Fri, 21 Oct 2016 07:58:01 GMT) Full text and rfc822 format available.

Message #44 received at 24718 <at> debbugs.gnu.org (full text, mbox):

From: Gijs Hillenius <gijs <at> hillenius.net>
To: 24718 <at> debbugs.gnu.org
Cc: Andreas Schwab <schwab <at> suse.de>, Daiki Ueno <ueno <at> gnu.org>
Subject: gpgsm takes (too) long (was: bug#24718: emacs25.1 + gnus, opening
 message gives: epg-error "no usable configuration" CMS, bug#24718: 25.1;
 (auth-source-search) fails in 25.1.1 for OSX)
Date: Fri, 21 Oct 2016 09:57:21 +0200
On 20 Oct 2016, Andreas Schwab wrote:

> On Okt 20 2016, Gijs Hillenius <gijs <at> hillenius.net> wrote:
>
>> On 20 Oct 2016, Daiki Ueno wrote:
>>
>>>> Well, that explains something :-) I did not before have this gpgsm
>>>> installed. Now I have, but oddly, now gnus takes forever to open
>>>> the message.
>>>
>>> S/MIME signature verification with gpgsm could take some time.  If
>>> it takes really too long, a usual suggestion is to gather debug
>>> output with (setq epg-debug t).
>>
>> it takes many minutes.. and I give up waiting, so press C-g
>
> Perhaps it needs to download the CRL, which can take a long time.
> Watch the directory ~/.gnupg/dirmngr-cache.d while it hangs.

Thanks!

On Debian, that dir seems to be called ~/.gnupg/crls.d/

Tried opening one of these messages again: and yesterday gave it more
than 30 minutes before I gave up.  ~/.gnupg/crls.d/ now contains a file
(very-long-number.db).

I go to the next s/mime message, and get that question about ultimate
trust again. I say no, and Gnus displays the message with a (valid)
signature, that is unverified (by me). I did not catch the exact output,
sorry.

This happens only once. The next message, from the same sender, this
waiting (verifying) starts again. Even though now there is a file in
~/.gnupg/crls.d/ ?

Is there a way in which I can disable this checking altogether?
Additionally: if no gpgsm is available on the host, perhaps the result
should or could be made similar to what it does in Emacs24, simply
display the message without verification?






Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24718; Package emacs. (Sun, 23 Oct 2016 09:01:01 GMT) Full text and rfc822 format available.

Message #47 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Gijs Hillenius <gijs <at> hillenius.net>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#24718: emacs25.1 + gnus, opening message gives: epg-error "no
 usable configuration" CMS, bug#24718: 25.1;
 (auth-source-search) fails in 25.1.1 for OSX
Date: Sun, 23 Oct 2016 09:39:45 +0200
I'm still trying to figure out what I'm missing re the Gpgs (bug#24718).

First: if I don't have gpgsm installed, it should just fail, and let
Gnus display the message normally, right?

Second: this might give you an idea:

I notice that for the s/mime messages that seem to cause Gnus & Emacs to
wait forever (over 1 hour yesterday) ps aux shows:

/usr/bin/gpgsm --no-tty --status-fd 1 --yes --output
/tmp/epg-output25808sln --verify -- /tmp/epg-signature258085vt -

If I kill that process, Gnus immediately displays the message normally,
printing:

,----
| [[S/MIME Signed Part:]]
| 1.  ( ) text/plain          (*) text/html      
`----

This is (I think) the same as under Emacs24.


If, while waiting for Emacs Gnus to do its s/mime magic, I can repeat
the gpgsm command I find with ps aux, without the trailing - like so:

,----
| /usr/bin/gpgsm --no-tty --status-fd 1 --yes --output
| /tmp/epg-output25808sln --verify -- /tmp/epg-signature258085vt 
`----

the output is

gpgsm: detached signature w/o data - assuming certs-only
[GNUPG:] NEWSIG
gpgsm: Signature made 2016-10-18 08:56:29 using certificate ID 0x7E75F4FD
gpgsm: invalid signature: message digest attribute does not match computed one
[GNUPG:] BADSIG AC9F7F57E4DF8B867676D82AG4FDACF67E5644FQ /EMail=charles <at> hisdomain

if I repeat it *with* the trailing -

gpgsm: option --output ignored for a detached signature

it waits for something.. until I ^c it

Does this make some kind of sense?







Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24718; Package emacs. (Thu, 27 Oct 2016 10:25:02 GMT) Full text and rfc822 format available.

Message #50 received at 24718 <at> debbugs.gnu.org (full text, mbox):

From: Gijs Hillenius <gijs <at> hillenius.net>
To: 24718 <at> debbugs.gnu.org
Subject: Fixed: Re: bug#24718: emacs25.1 + gnus, opening message gives:
 epg-error "no usable configuration" CMS, bug#24718: 25.1;
 (auth-source-search) fails in 25.1.1 for OSX
Date: Thu, 27 Oct 2016 12:24:37 +0200
My issue is/was caused by Debian bug #840680. I've just upgraded to
Debian's 2.1.15-6 of dirmgnr and now the time-outs are gone, and the
s/mime certificates get installed instantly in ~/.gnupg/crls.d







Added tag(s) notabug. Request was from Alan Third <alan <at> idiocy.org> to control <at> debbugs.gnu.org. (Wed, 08 Mar 2017 14:13:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 24718 <at> debbugs.gnu.org and Alexey Veretennikov <alexey.veretennikov <at> gmail.com> Request was from Alan Third <alan <at> idiocy.org> to control <at> debbugs.gnu.org. (Wed, 08 Mar 2017 14:13:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 06 Apr 2017 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 8 years and 73 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.