unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#59178: 28.2 ; Problems with Gnus (Emacs) + GnuPG for signing a mail with S/MIME
@ 2022-11-10  9:25 Angel de Vicente
  2022-11-10 18:31 ` Filipp Gunbin
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Angel de Vicente @ 2022-11-10  9:25 UTC (permalink / raw)
  To: 59178

Hello,

first time bug reporter here, I hope I include all the necessary
information required to make the bug report informative. I'm afraid I
don't think I could reproduce the bug with 'emacs -Q'. The problem I
found is with signing outgoing mail messages with S-MIME and trying to
get asked for the relevant passphrase in the minibuffer via the loopback
pinentry mode. This is no problem when I sign with PGP, but with S-MIME
there seems to be a problem, since I'm never asked for the
passphrase.

By setting epg-debug in Emacs to True I found that most of the moves are
OK, but that the error comes from not being able to get the
passphrase. I include below the contents of the " *gpg-error* and the
"gpg-agent.log", as well as the gpg version and the contents of the
configuration files.

" *gpg-error* buffer:
,----
| gpgsm: Note: non-critical certificate policy not allowed
| gpgsm: Note: non-critical certificate policy not allowed
| gpgsm: Note: non-critical certificate policy not allowed
| gpgsm: CRLs not checked due to --disable-crl-checks option
| gpgsm: DBG: adding certificates at level -2
| gpgsm: ignoring gpg-agent inquiry 'PASSPHRASE'
| gpgsm: error creating signature: No passphrase given <GPG Agent>
`----

gpg-agent.log:
,----
| DBG: chan_9 -> OK Pleased to meet you, process 3382246
| DBG: chan_9 <- RESET
| DBG: chan_9 -> OK
| DBG: chan_9 <- OPTION ttytype=dumb
| DBG: chan_9 -> OK
| DBG: chan_9 <- OPTION display=:0.0
| DBG: chan_9 -> OK
| DBG: chan_9 <- OPTION xauthority=/home/angelv/.Xauthority
| DBG: chan_9 -> OK
| DBG: chan_9 <- OPTION putenv=XDG_SESSION_TYPE=x11
| DBG: chan_9 -> OK
| DBG: chan_9 <- OPTION putenv=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
| DBG: chan_9 -> OK
| DBG: chan_9 <- OPTION putenv=INSIDE_EMACS=28.2,epg
| DBG: chan_9 -> OK
| DBG: chan_9 <- GETINFO version
| DBG: chan_9 -> D 2.2.40
| DBG: chan_9 -> OK
| DBG: chan_9 <- OPTION allow-pinentry-notify
| DBG: chan_9 -> OK
| DBG: chan_9 <- OPTION pinentry-mode=loopback
| DBG: chan_9 -> OK
| DBG: chan_9 <- HAVEKEY FC155E4BAF3DA44364C84711DA0B7137EA89D084
| DBG: chan_9 -> OK
| DBG: chan_9 <- ISTRUSTED D1EB23A46D17D68FD92564C2F1F1601764D8E349
| DBG: chan_9 -> S TRUSTLISTFLAG relax
| DBG: chan_9 -> OK
| DBG: chan_9 <- RESET
| DBG: chan_9 -> OK
| DBG: chan_9 <- SIGKEY FC155E4BAF3DA44364C84711DA0B7137EA89D084
| DBG: chan_9 -> OK
| DBG: chan_9 <- SETKEYDESC
| Please+enter+the+passphrase+to+unlock+the+secret+key+for+the+X.509+certificate:%0A%22/CN=Angel+M+de+Vicente/O=Instituto+de+Astrofisica+de+Canarias/STREET=Calle+Vía+Láctea,+s\x2fn/ST=Santa+Cruz+de+Tenerife/C=ES%22%0AS/N+00B4307E9B17A8814A2B5CAE68E09B520E,+ID+0x74A5504B,%0Acreated+2022-10-31,+expires+2024-10-30.%0A
| DBG: chan_9 -> OK
| DBG: chan_9 <- SETHASH 9 96D6D02821BA0498546EF7BD466B9712FD1C8126AD583F895CD8DDA26DD07B7BBFD74F8A5A6E3087C0893C7BBDD78CCB
| DBG: chan_9 -> OK
| DBG: chan_9 <- PKSIGN
| DBG: agent_get_cache 'FC155E4BAF3DA44364C84711DA0B7137EA89D084'.0 (mode 2) ...
| DBG: ... miss
| DBG: agent_get_cache '6F4B59E5A9FBC6FB684CB55FDBB7CC30EEE197E3'.0 (mode 2) (stored cache key) ...
| DBG: ... miss
| DBG: chan_9 -> S INQUIRE_MAXLEN 255
| DBG: chan_9 -> [[Confidential data not shown]]
| DBG: chan_9 <- [[Confidential data not shown]]
| failed to unprotect the secret key: No passphrase given
| failed to read the secret key
| command 'PKSIGN' failed: No passphrase given
| DBG: chan_9 -> ERR 67109041 No passphrase given <GPG Agent>
| DBG: chan_9 <- [eof]
`----

,----
| angelv@sieladon:~$ gpg --version
| gpg (GnuPG) 2.2.40
| libgcrypt 1.10.1-unknown
| Copyright (C) 2022 g10 Code GmbH
| License GNU GPL-3.0-or-later <https://gnu.org/licenses/gpl.html>
| This is free software: you are free to change and redistribute it.
| There is NO WARRANTY, to the extent permitted by law.
| 
| Home: /home/angelv/.gnupg
| Supported algorithms:
| Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
| Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
|         CAMELLIA128, CAMELLIA192, CAMELLIA256
| Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
| Compression: Uncompressed, ZIP, ZLIB, BZIP2
| angelv@sieladon:~$
`----

,----
| angelv@sieladon:~$ cat ~/.gnupg/gpg.conf 
| use-agent
| pinentry-mode loopback
`----

,----
| angelv@sieladon:~$ cat ~/.gnupg/gpg-agent.conf 
| default-cache-ttl 86400
| max-cache-ttl 86400
| 
| allow-emacs-pinentry
| 
| # log-file /home/angelv/.gnupg/gpg-agent.log
| # debug-level guru
| # debug 1024
| # debug-pinentry
| # verbose
| 
| # to reload or kill the agent
| #  gpgconf --reload gpg-agent
| #  gpgconf --kill gpg-agent
`----

,----
| angelv@sieladon:~$ cat ~/.gnupg/gpgsm.conf
| disable-crl-checks
`----



In GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu)
 of 2022-09-12 built on frederik
System Description: Arch Linux

Configured using:
 'configure --without-x --without-sound --sysconfdir=/etc --prefix=/usr
 --libexecdir=/usr/lib --localstatedir=/var --with-cairo --with-harfbuzz
 --with-libsystemd --with-modules 'CFLAGS=-march=x86-64 -mtune=generic
 -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat
 -Werror=format-security -fstack-clash-protection -fcf-protection -g
 -ffile-prefix-map=/build/emacs/src=/usr/src/debug -flto=auto'
 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto''

Configured features:
ACL DBUS GMP GNUTLS GPM JSON LCMS2 LIBSYSTEMD LIBXML2 MODULES NOTIFY
INOTIFY PDUMPER SECCOMP THREADS XIM ZLIB

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

Major mode: Article

Minor modes in effect:
  global-git-commit-mode: t
  magit-auto-revert-mode: t
  recentf-mode: t
  shell-dirtrack-mode: t
  global-auto-revert-mode: t
  org-super-agenda-mode: t
  global-company-mode: t
  company-mode: t
  ivy-mode: t
  projectile-mode: t
  ace-window-display-mode: t
  display-time-mode: t
  yas-global-mode: t
  yas-minor-mode: t
  auto-insert-mode: t
  override-global-mode: t
  cl-old-struct-compat-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  electric-indent-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
  buffer-read-only: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
/home/angelv/.emacs.d/elpa/transient-20220514.945/transient hides /usr/share/emacs/28.2/lisp/transient
/home/angelv/.emacs.d/elpa/org-20171127/ob-fortran hides /usr/share/emacs/28.2/lisp/org/ob-fortran
/home/angelv/.emacs.d/elpa/org-20171127/org-colview hides /usr/share/emacs/28.2/lisp/org/org-colview
/home/angelv/.emacs.d/elpa/org-20171127/ob-perl hides /usr/share/emacs/28.2/lisp/org/ob-perl
/home/angelv/.emacs.d/elpa/org-20171127/ob-matlab hides /usr/share/emacs/28.2/lisp/org/ob-matlab
/home/angelv/.emacs.d/elpa/org-20171127/org-duration hides /usr/share/emacs/28.2/lisp/org/org-duration
/home/angelv/.emacs.d/elpa/org-20171127/ob-octave hides /usr/share/emacs/28.2/lisp/org/ob-octave
/home/angelv/.emacs.d/elpa/org-20171127/ob-lob hides /usr/share/emacs/28.2/lisp/org/ob-lob
/home/angelv/.emacs.d/elpa/org-20171127/org-id hides /usr/share/emacs/28.2/lisp/org/org-id
/home/angelv/.emacs.d/elpa/org-20171127/ox-icalendar hides /usr/share/emacs/28.2/lisp/org/ox-icalendar
/home/angelv/.emacs.d/elpa/org-20171127/org-element hides /usr/share/emacs/28.2/lisp/org/org-element
/home/angelv/.emacs.d/elpa/org-20171127/ox hides /usr/share/emacs/28.2/lisp/org/ox
/home/angelv/.emacs.d/elpa/org-20171127/ob-plantuml hides /usr/share/emacs/28.2/lisp/org/ob-plantuml
/home/angelv/.emacs.d/elpa/org-20171127/org-table hides /usr/share/emacs/28.2/lisp/org/org-table
/home/angelv/.emacs.d/elpa/org-20171127/ob-lua hides /usr/share/emacs/28.2/lisp/org/ob-lua
/home/angelv/.emacs.d/elpa/org-20171127/org-entities hides /usr/share/emacs/28.2/lisp/org/org-entities
/home/angelv/.emacs.d/elpa/org-20171127/org-mouse hides /usr/share/emacs/28.2/lisp/org/org-mouse
/home/angelv/.emacs.d/elpa/org-20171127/ox-ascii hides /usr/share/emacs/28.2/lisp/org/ox-ascii
/home/angelv/.emacs.d/elpa/org-20171127/org-timer hides /usr/share/emacs/28.2/lisp/org/org-timer
/home/angelv/.emacs.d/elpa/org-20171127/ob-eval hides /usr/share/emacs/28.2/lisp/org/ob-eval
/home/angelv/.emacs.d/elpa/org-20171127/org-macro hides /usr/share/emacs/28.2/lisp/org/org-macro
/home/angelv/.emacs.d/elpa/org-20171127/ob-sed hides /usr/share/emacs/28.2/lisp/org/ob-sed
/home/angelv/.emacs.d/elpa/org-20171127/ob hides /usr/share/emacs/28.2/lisp/org/ob
/home/angelv/.emacs.d/elpa/org-20171127/org-clock hides /usr/share/emacs/28.2/lisp/org/org-clock
/home/angelv/.emacs.d/elpa/org-20171127/ob-css hides /usr/share/emacs/28.2/lisp/org/ob-css
/home/angelv/.emacs.d/elpa/org-20171127/org-habit hides /usr/share/emacs/28.2/lisp/org/org-habit
/home/angelv/.emacs.d/elpa/org-20171127/ob-org hides /usr/share/emacs/28.2/lisp/org/ob-org
/home/angelv/.emacs.d/elpa/org-20171127/org hides /usr/share/emacs/28.2/lisp/org/org
/home/angelv/.emacs.d/elpa/org-20171127/ob-processing hides /usr/share/emacs/28.2/lisp/org/ob-processing
/home/angelv/.emacs.d/elpa/org-20171127/ob-awk hides /usr/share/emacs/28.2/lisp/org/ob-awk
/home/angelv/.emacs.d/elpa/org-20171127/ox-html hides /usr/share/emacs/28.2/lisp/org/ox-html
/home/angelv/.emacs.d/elpa/org-20171127/org-archive hides /usr/share/emacs/28.2/lisp/org/org-archive
/home/angelv/.emacs.d/elpa/org-20171127/org-indent hides /usr/share/emacs/28.2/lisp/org/org-indent
/home/angelv/.emacs.d/elpa/org-20171127/org-crypt hides /usr/share/emacs/28.2/lisp/org/org-crypt
/home/angelv/.emacs.d/elpa/org-20171127/org-protocol hides /usr/share/emacs/28.2/lisp/org/org-protocol
/home/angelv/.emacs.d/elpa/org-20171127/org-list hides /usr/share/emacs/28.2/lisp/org/org-list
/home/angelv/.emacs.d/elpa/org-20171127/org-loaddefs hides /usr/share/emacs/28.2/lisp/org/org-loaddefs
/home/angelv/.emacs.d/elpa/org-20171127/org-attach hides /usr/share/emacs/28.2/lisp/org/org-attach
/home/angelv/.emacs.d/elpa/org-20171127/org-footnote hides /usr/share/emacs/28.2/lisp/org/org-footnote
/home/angelv/.emacs.d/elpa/org-20171127/ob-forth hides /usr/share/emacs/28.2/lisp/org/ob-forth
/home/angelv/.emacs.d/elpa/org-20171127/org-compat hides /usr/share/emacs/28.2/lisp/org/org-compat
/home/angelv/.emacs.d/elpa/org-20171127/ob-comint hides /usr/share/emacs/28.2/lisp/org/ob-comint
/home/angelv/.emacs.d/elpa/org-20171127/ob-ruby hides /usr/share/emacs/28.2/lisp/org/ob-ruby
/home/angelv/.emacs.d/elpa/org-20171127/ob-ref hides /usr/share/emacs/28.2/lisp/org/ob-ref
/home/angelv/.emacs.d/elpa/org-20171127/ox-beamer hides /usr/share/emacs/28.2/lisp/org/ox-beamer
/home/angelv/.emacs.d/elpa/org-20171127/ob-latex hides /usr/share/emacs/28.2/lisp/org/ob-latex
/home/angelv/.emacs.d/elpa/org-20171127/ob-haskell hides /usr/share/emacs/28.2/lisp/org/ob-haskell
/home/angelv/.emacs.d/elpa/org-20171127/ob-lisp hides /usr/share/emacs/28.2/lisp/org/ob-lisp
/home/angelv/.emacs.d/elpa/org-20171127/ob-R hides /usr/share/emacs/28.2/lisp/org/ob-R
/home/angelv/.emacs.d/elpa/org-20171127/ob-sass hides /usr/share/emacs/28.2/lisp/org/ob-sass
/home/angelv/.emacs.d/elpa/org-20171127/ob-core hides /usr/share/emacs/28.2/lisp/org/ob-core
/home/angelv/.emacs.d/elpa/org-20171127/org-datetree hides /usr/share/emacs/28.2/lisp/org/org-datetree
/home/angelv/.emacs.d/elpa/org-20171127/ob-C hides /usr/share/emacs/28.2/lisp/org/ob-C
/home/angelv/.emacs.d/elpa/org-20171127/org-src hides /usr/share/emacs/28.2/lisp/org/org-src
/home/angelv/.emacs.d/elpa/org-20171127/ob-ocaml hides /usr/share/emacs/28.2/lisp/org/ob-ocaml
/home/angelv/.emacs.d/elpa/org-20171127/ob-dot hides /usr/share/emacs/28.2/lisp/org/ob-dot
/home/angelv/.emacs.d/elpa/org-20171127/ox-texinfo hides /usr/share/emacs/28.2/lisp/org/ox-texinfo
/home/angelv/.emacs.d/elpa/org-20171127/ob-screen hides /usr/share/emacs/28.2/lisp/org/ob-screen
/home/angelv/.emacs.d/elpa/org-20171127/org-inlinetask hides /usr/share/emacs/28.2/lisp/org/org-inlinetask
/home/angelv/.emacs.d/elpa/org-20171127/org-lint hides /usr/share/emacs/28.2/lisp/org/org-lint
/home/angelv/.emacs.d/elpa/org-20171127/org-mobile hides /usr/share/emacs/28.2/lisp/org/org-mobile
/home/angelv/.emacs.d/elpa/org-20171127/ob-tangle hides /usr/share/emacs/28.2/lisp/org/ob-tangle
/home/angelv/.emacs.d/elpa/org-20171127/ox-md hides /usr/share/emacs/28.2/lisp/org/ox-md
/home/angelv/.emacs.d/elpa/org-20171127/ox-publish hides /usr/share/emacs/28.2/lisp/org/ox-publish
/home/angelv/.emacs.d/elpa/org-20171127/org-macs hides /usr/share/emacs/28.2/lisp/org/org-macs
/home/angelv/.emacs.d/elpa/org-20171127/ox-man hides /usr/share/emacs/28.2/lisp/org/ox-man
/home/angelv/.emacs.d/elpa/org-20171127/org-faces hides /usr/share/emacs/28.2/lisp/org/org-faces
/home/angelv/.emacs.d/elpa/org-20171127/ob-emacs-lisp hides /usr/share/emacs/28.2/lisp/org/ob-emacs-lisp
/home/angelv/.emacs.d/elpa/org-20171127/ob-java hides /usr/share/emacs/28.2/lisp/org/ob-java
/home/angelv/.emacs.d/elpa/org-20171127/ob-exp hides /usr/share/emacs/28.2/lisp/org/ob-exp
/home/angelv/.emacs.d/elpa/org-20171127/ob-table hides /usr/share/emacs/28.2/lisp/org/ob-table
/home/angelv/.emacs.d/elpa/org-20171127/ob-ditaa hides /usr/share/emacs/28.2/lisp/org/ob-ditaa
/home/angelv/.emacs.d/elpa/org-20171127/ox-odt hides /usr/share/emacs/28.2/lisp/org/ox-odt
/home/angelv/.emacs.d/elpa/org-20171127/org-version hides /usr/share/emacs/28.2/lisp/org/org-version
/home/angelv/.emacs.d/elpa/org-20171127/ob-sql hides /usr/share/emacs/28.2/lisp/org/ob-sql
/home/angelv/.emacs.d/elpa/org-20171127/org-plot hides /usr/share/emacs/28.2/lisp/org/org-plot
/home/angelv/.emacs.d/elpa/org-20171127/org-pcomplete hides /usr/share/emacs/28.2/lisp/org/org-pcomplete
/home/angelv/.emacs.d/elpa/org-20171127/ob-maxima hides /usr/share/emacs/28.2/lisp/org/ob-maxima
/home/angelv/.emacs.d/elpa/org-20171127/ob-shell hides /usr/share/emacs/28.2/lisp/org/ob-shell
/home/angelv/.emacs.d/elpa/org-20171127/ob-sqlite hides /usr/share/emacs/28.2/lisp/org/ob-sqlite
/home/angelv/.emacs.d/elpa/org-20171127/org-ctags hides /usr/share/emacs/28.2/lisp/org/org-ctags
/home/angelv/.emacs.d/elpa/org-20171127/ob-js hides /usr/share/emacs/28.2/lisp/org/ob-js
/home/angelv/.emacs.d/elpa/org-20171127/org-agenda hides /usr/share/emacs/28.2/lisp/org/org-agenda
/home/angelv/.emacs.d/elpa/org-20171127/org-install hides /usr/share/emacs/28.2/lisp/org/org-install
/home/angelv/.emacs.d/elpa/org-20171127/ob-python hides /usr/share/emacs/28.2/lisp/org/ob-python
/home/angelv/.emacs.d/elpa/org-20171127/ob-calc hides /usr/share/emacs/28.2/lisp/org/ob-calc
/home/angelv/.emacs.d/elpa/org-20171127/ob-lilypond hides /usr/share/emacs/28.2/lisp/org/ob-lilypond
/home/angelv/.emacs.d/elpa/org-20171127/org-feed hides /usr/share/emacs/28.2/lisp/org/org-feed
/home/angelv/.emacs.d/elpa/org-20171127/ob-groovy hides /usr/share/emacs/28.2/lisp/org/ob-groovy
/home/angelv/.emacs.d/elpa/org-20171127/ox-org hides /usr/share/emacs/28.2/lisp/org/ox-org
/home/angelv/.emacs.d/elpa/org-20171127/ob-clojure hides /usr/share/emacs/28.2/lisp/org/ob-clojure
/home/angelv/.emacs.d/elpa/org-20171127/org-capture hides /usr/share/emacs/28.2/lisp/org/org-capture
/home/angelv/.emacs.d/elpa/org-20171127/ox-latex hides /usr/share/emacs/28.2/lisp/org/ox-latex
/home/angelv/.emacs.d/elpa/org-20171127/ob-scheme hides /usr/share/emacs/28.2/lisp/org/ob-scheme
/home/angelv/.emacs.d/elpa/org-20171127/ob-makefile hides /usr/share/emacs/28.2/lisp/org/ob-makefile
/home/angelv/.emacs.d/elpa/org-20171127/ob-gnuplot hides /usr/share/emacs/28.2/lisp/org/ob-gnuplot
/home/angelv/.emacs.d/elpa/hierarchy-20190425.842/hierarchy hides /usr/share/emacs/28.2/lisp/emacs-lisp/hierarchy

Features:
(mailclient shadow emacsbug rng-xsd xsd-regexp rng-cmpct rng-nxml
rng-valid nxml-mode nxml-outln nxml-rap sgml-mode facemenu goto-addr
hl-line w3m-filter w3m-cookie w3m-tabmenu w3m-session w3m-search
org-clock org-archive git-rebase python tramp-sh magit-patch
magit-subtree magit-gitignore magit-ediff ediff ediff-merg ediff-mult
ediff-wind ediff-diff ediff-help ediff-init ediff-util vc-mtn vc-hg
vc-bzr vc-src vc-sccs vc-cvs vc-rcs vc magit-extras face-remap
forge-list forge-commands forge-semi forge-bitbucket buck forge-gogs
gogs forge-gitea gtea forge-gitlab glab forge-github ghub-graphql treepy
gsexp ghub let-alist forge-notify forge-revnote forge-pullreq
forge-issue forge-topic yaml bug-reference forge-post markdown-mode
forge-repo forge forge-core forge-db closql emacsql-sqlite emacsql
emacsql-compiler url-http url-auth url-gw magit-bookmark magit-submodule
magit-obsolete magit-blame magit-stash magit-reflog magit-bisect
magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit
magit-sequence magit-notes magit-worktree magit-tag magit-merge
magit-branch magit-reset magit-files magit-refs magit-status magit
magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff
git-commit log-edit pcvs-util add-log magit-core magit-autorevert
magit-margin magit-transient magit-process with-editor magit-mode
transient magit-git smerge-mode diff org-duration misearch multi-isearch
cal-move sh-script smie executable counsel-etags find-file ag vc-svn
find-dired calculator boxquote rect tabify org-capture nnselect
gnus-search eieio-opt flow-fill vc-git diff-mode vc-dispatcher diary-lib
diary-loaddefs cal-iso w3m-form w3m-symbol w3m-bookmark w3m doc-view
image-mode exif w3m-hist w3m-fb bookmark-w3m w3m-ems w3m-favicon
w3m-image tab-line w3m-proc w3m-util mm-archive mailalias smtpmail
gnus-async gnus-bcklg gnus-ml disp-table conf-mode cus-edit cus-start
cl-print help-fns radix-tree magit-base magit-section compat-27
compat-26 compat mule-util jka-compr dired-aux ffap tramp tramp-loaddefs
trampver tramp-integration files-x tramp-compat ls-lisp recentf
tree-widget bookmark pp qp sort gnus-cite bbdb-message sendmail
mail-extr gnus-topic nnml nnfolder time-stamp bbdb-gnus epa-file gnutls
network-stream nsm counsel xdg swiper term/screen term/xterm xterm
server display-fill-column-indicator ggtags ewoc hideshow
company-oddmuse company-keywords company-etags etags fileloop xref
project company-gtags company-dabbrev-code company-dabbrev company-files
company-clang company-capf company-cmake company-semantic
company-template company-bbdb org-w3m org-info org-gnus org-bibtex
bibtex org-bbdb ox-md ob-gnuplot ob-ruby ob-python ob-shell shell
autorevert filenotify cus-load bbdb-mua bbdb-com crm bbdb bbdb-site
org-super-agenda ts ht s dash org-habit org-agenda org-inlinetask
company pcase sr-speedbar speedbar ezimage dframe two-column ivy delsel
ivy-faces ivy-overlay colir color projectile lisp-mnt grep compile
ibuf-ext ibuffer ibuffer-loaddefs thingatpt ace-window avy gnus-demon
gnus-delay gnus-draft gnus-agent gnus-srvr gnus-score score-mode
nnvirtual nntp gnus-cache gnus-msg gnus-art mm-uu mml2015 mm-view
mml-smime smime dig gnus-sum shr kinsoku svg dom nndraft nnmh gnus-group
gnus-undo gnus-start gnus-dbus dbus gnus-cloud nnimap utf7 netrc nnoo
parse-time iso8601 gnus-spec gnus-win nnmail gnus-int gnus-range
mail-source message rmc puny dired-x dired dired-loaddefs rfc822 mml
mml-sec epa derived epg rfc6068 epg-config mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader gnus wid-edit
nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums
text-property-search mm-util mail-prsvr mail-utils tzc timezone
ox-beamer ox-odt rng-loc rng-uri rng-parse rng-match rng-dt rng-util
rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex
ox-icalendar ox-html table ox-ascii ox-publish ox org-element avl-tree
generator org advice org-macro org-footnote org-pcomplete pcomplete
org-list org-faces org-entities time-date noutline outline org-version
ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys
ob-comint comint ansi-color ring org-loaddefs format-spec find-func
cal-menu calendar cal-loaddefs ob-exp ob-core org-compat ob-eval
org-macs edmacro kmacro time image clang-format xml column-marker
yatemplate yasnippet-snippets cl-extra yasnippet help-mode autoinsert
use-package use-package-ensure use-package-delight use-package-diminish
use-package-bind-key bind-key easy-mmode use-package-core finder-inf
regexp-opt rx w3m-load info tool-bar package browse-url url url-proxy
url-privacy url-expand url-methods url-history url-cookie url-domsuf
url-util mailcap url-handlers url-parse auth-source cl-seq eieio
eieio-core cl-macs eieio-loaddefs password-cache json subr-x map
url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib
iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks
lisp-float-type elisp-mode tabulated-list replace newcomment text-mode
lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch
easymenu timer select mouse jit-lock font-lock syntax font-core
term/tty-colors frame minibuffer 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 composite emoji-zwj charscript charprop case-table
epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice
button loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote threads dbusbind inotify lcms2
multi-tty make-network-process emacs)

Memory information:
((conses 16 1249721 216798)
 (symbols 48 56279 21)
 (strings 32 309615 48094)
 (string-bytes 1 16988773)
 (vectors 16 126740)
 (vector-slots 8 2666200 94986)
 (floats 8 793 1670)
 (intervals 56 32264 6807)
 (buffers 992 171))

-- 
Ángel de Vicente
 Research Software Engineer (Supercomputing and BigData)
 Tel.: +34 922-605-747
 Web.: http://research.iac.es/proyecto/polmag/

 GPG: 0x8BDC390B69033F52
---------------------------------------------------------------------------------------------
AVISO LEGAL: Este mensaje puede contener información confidencial y/o privilegiada. Si usted no es el destinatario final del mismo o lo ha recibido por error, por favor notifíquelo al remitente inmediatamente. Cualquier uso no autorizadas del contenido de este mensaje está estrictamente prohibida. Más información en: https://www.iac.es/es/responsabilidad-legal
DISCLAIMER: This message may contain confidential and / or privileged information. If you are not the final recipient or have received it in error, please notify the sender immediately. Any unauthorized use of the content of this message is strictly prohibited. More information:  https://www.iac.es/en/disclaimer





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#59178: 28.2 ; Problems with Gnus (Emacs) + GnuPG for signing a mail with S/MIME
  2022-11-10  9:25 bug#59178: 28.2 ; Problems with Gnus (Emacs) + GnuPG for signing a mail with S/MIME Angel de Vicente
@ 2022-11-10 18:31 ` Filipp Gunbin
  2022-11-10 19:34   ` Angel de Vicente
  2022-11-12  5:17 ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-11-12 12:46 ` bug#59178: [Angel de Vicente] " Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2 siblings, 1 reply; 9+ messages in thread
From: Filipp Gunbin @ 2022-11-10 18:31 UTC (permalink / raw)
  To: Angel de Vicente; +Cc: 59178

Just a wild guess: try

- either "pinentry-mode loopback" in gpgsm.conf

- or (setq epg-pinentry-mode 'loopback) in your .emacs

Filipp





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#59178: 28.2 ; Problems with Gnus (Emacs) + GnuPG for signing a mail with S/MIME
  2022-11-10 18:31 ` Filipp Gunbin
@ 2022-11-10 19:34   ` Angel de Vicente
  2022-11-11 14:58     ` Filipp Gunbin
  0 siblings, 1 reply; 9+ messages in thread
From: Angel de Vicente @ 2022-11-10 19:34 UTC (permalink / raw)
  To: Filipp Gunbin; +Cc: 59178

[-- Attachment #1: Type: text/plain, Size: 527 bytes --]

Hello,

Filipp Gunbin <fgunbin@fastmail.fm> writes:

> - either "pinentry-mode loopback" in gpgsm.conf

I just tried. No change.

> - or (setq epg-pinentry-mode 'loopback) in your .emacs

I forgot to say in my original mail that this was set to 'loopback all
the time (and it does work no problems when signing with PGP) 

Thanks,
-- 
Ángel de Vicente
 Research Software Engineer (Supercomputing and BigData)
 Tel.: +34 922-605-747
 Web.: http://research.iac.es/proyecto/polmag/

 GPG: 0x8BDC390B69033F52

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5877 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#59178: 28.2 ; Problems with Gnus (Emacs) + GnuPG for signing a mail with S/MIME
  2022-11-10 19:34   ` Angel de Vicente
@ 2022-11-11 14:58     ` Filipp Gunbin
  2022-11-11 16:49       ` Angel de Vicente
  0 siblings, 1 reply; 9+ messages in thread
From: Filipp Gunbin @ 2022-11-11 14:58 UTC (permalink / raw)
  To: Angel de Vicente; +Cc: 59178

On 10/11/2022 19:34 +0000, Angel de Vicente wrote:

> Hello,
>
> Filipp Gunbin <fgunbin@fastmail.fm> writes:
>
>> - either "pinentry-mode loopback" in gpgsm.conf
>
> I just tried. No change.
>
>> - or (setq epg-pinentry-mode 'loopback) in your .emacs
>
> I forgot to say in my original mail that this was set to 'loopback all
> the time (and it does work no problems when signing with PGP)

Yeah, thanks.

You say that you cannot reproduce it in emacs -Q, did you try to bisect
your init files?

Filipp





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#59178: 28.2 ; Problems with Gnus (Emacs) + GnuPG for signing a mail with S/MIME
  2022-11-11 14:58     ` Filipp Gunbin
@ 2022-11-11 16:49       ` Angel de Vicente
  0 siblings, 0 replies; 9+ messages in thread
From: Angel de Vicente @ 2022-11-11 16:49 UTC (permalink / raw)
  To: Filipp Gunbin; +Cc: 59178

[-- Attachment #1: Type: text/plain, Size: 759 bytes --]

Hello,

Filipp Gunbin <fgunbin@fastmail.fm> writes:

> You say that you cannot reproduce it in emacs -Q, did you try to bisect
> your init files?

my bad. I didn't want to say that the problem didn't show up when
running with 'emacs -Q'. What I meant is that I didn't try to run it
only with 'emacs -Q', since to get this to work I need to have some
stuff configured in .emacs (to get Gnus + GnuPG working). I will try
when I have some time, but I fail to see what in .emacs could make
PGP+'loopback pinentry' work while SMIME+'loopback pinentry' fail.

Cheers,
-- 
Ángel de Vicente
 Research Software Engineer (Supercomputing and BigData)
 Tel.: +34 922-605-747
 Web.: http://research.iac.es/proyecto/polmag/

 GPG: 0x8BDC390B69033F52

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5877 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#59178: 28.2 ; Problems with Gnus (Emacs) + GnuPG for signing a mail with S/MIME
  2022-11-10  9:25 bug#59178: 28.2 ; Problems with Gnus (Emacs) + GnuPG for signing a mail with S/MIME Angel de Vicente
  2022-11-10 18:31 ` Filipp Gunbin
@ 2022-11-12  5:17 ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-11-12 12:46 ` bug#59178: [Angel de Vicente] " Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2 siblings, 0 replies; 9+ messages in thread
From: Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-11-12  5:17 UTC (permalink / raw)
  To: 59178


Which pinentry are you using? Recently I learned that not all Pinentry's
support the Emacs hack (INSIDE_EMACS).

I think the Qt pinentry didn't support it for example.

Br,

Björn





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#59178: [Angel de Vicente] Re: bug#59178: 28.2 ; Problems with Gnus (Emacs) + GnuPG for signing a mail with S/MIME
  2022-11-10  9:25 bug#59178: 28.2 ; Problems with Gnus (Emacs) + GnuPG for signing a mail with S/MIME Angel de Vicente
  2022-11-10 18:31 ` Filipp Gunbin
  2022-11-12  5:17 ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-11-12 12:46 ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-11-12 12:48   ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2 siblings, 1 reply; 9+ messages in thread
From: Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-11-12 12:46 UTC (permalink / raw)
  To: 59178

[-- Attachment #1: Type: text/plain, Size: 91 bytes --]


Sorry I forgot reply to the bug and now sending the answers that didn't
went to the bug.


[-- Attachment #2: Type: message/rfc822, Size: 9940 bytes --]

[-- Attachment #2.1.1: Type: text/plain, Size: 1417 bytes --]

Hello Björn,

Björn Bidar <bjorn.bidar@thaodan.de> writes:

> Which pinentry are you using? Recently I learned that not all Pinentry's
> support the Emacs hack (INSIDE_EMACS).
>
> I think the Qt pinentry didn't support it for example.

not completely sure. The default pinentry is a text file that redirects
to some of the other pinentrys. 

,----
| $ which pinentry
| /usr/bin/pinentry
| 
| $ ls -ltr /usr/bin/pinentry*
| -rwxr-xr-x 1 root root  55672 Aug 29 22:49 /usr/bin/pinentry-tty
| -rwxr-xr-x 1 root root 182816 Aug 29 22:49 /usr/bin/pinentry-qt
| -rwxr-xr-x 1 root root  84320 Aug 29 22:49 /usr/bin/pinentry-gtk-2
| -rwxr-xr-x 1 root root  76128 Aug 29 22:49 /usr/bin/pinentry-gnome3
| -rwxr-xr-x 1 root root  51576 Aug 29 22:49 /usr/bin/pinentry-emacs
| -rwxr-xr-x 1 root root  63864 Aug 29 22:49 /usr/bin/pinentry-curses
| -rwxr-xr-x 1 root root    369 Aug 29 22:49 /usr/bin/pinentry
`----

From a terminal, if I just check for help, it looks like the gtk-2
version would be used, but once I'm inside Emacs, I don't know how to
check which version is finally really bein used.
,----
| $ pinentry --help
| pinentry-gtk2 (pinentry) 1.2.1
| Copyright (C) 2016 g10 Code GmbH
`----

Thanks,
-- 
Ángel de Vicente
 Research Software Engineer (Supercomputing and BigData)
 Tel.: +34 922-605-747
 Web.: http://research.iac.es/proyecto/polmag/

 GPG: 0x8BDC390B69033F52

[-- Attachment #2.1.2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5877 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#59178: [Angel de Vicente] Re: bug#59178: 28.2 ; Problems with Gnus (Emacs) + GnuPG for signing a mail with S/MIME
  2022-11-12 12:46 ` bug#59178: [Angel de Vicente] " Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-11-12 12:48   ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-11-13  7:00     ` Angel de Vicente
  0 siblings, 1 reply; 9+ messages in thread
From: Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-11-12 12:48 UTC (permalink / raw)
  To: 59178; +Cc: Angel de Vicente


Angel de Vicente <angel.de.vicente@iac.es> writes:

> Hello Björn,
>
> Björn Bidar <bjorn.bidar@thaodan.de> writes:
>
>> Which pinentry are you using? Recently I learned that not all Pinentry's
>> support the Emacs hack (INSIDE_EMACS).
>>
>> I think the Qt pinentry didn't support it for example.
>
> not completely sure. The default pinentry is a text file that redirects
> to some of the other pinentrys. 

Check ~/.gnupg/gpg-agent.conf for pinentry-program, for me it looks like
this:
pinentry-program /usr/bin/pinentry-qt

This pinentry doesn't support the Emacs loopback mode, the GTK2 prompt
does support the INSIDE_EMACS hack to redirect the entry to Emacs as
mentioned in the pinentry manual.

The only other thing is that `allow-loopback-pinentry` should be set
into that file too but I think you have already set that.


Br,

Björn 





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#59178: [Angel de Vicente] Re: bug#59178: 28.2 ; Problems with Gnus (Emacs) + GnuPG for signing a mail with S/MIME
  2022-11-12 12:48   ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-11-13  7:00     ` Angel de Vicente
  0 siblings, 0 replies; 9+ messages in thread
From: Angel de Vicente @ 2022-11-13  7:00 UTC (permalink / raw)
  To: Björn Bidar; +Cc: 59178

[-- Attachment #1: Type: text/plain, Size: 972 bytes --]

Hello,

Björn Bidar <bjorn.bidar@thaodan.de> writes:

> Check ~/.gnupg/gpg-agent.conf for pinentry-program, for me it looks like
> this:
> pinentry-program /usr/bin/pinentry-qt
>
> This pinentry doesn't support the Emacs loopback mode, the GTK2 prompt
> does support the INSIDE_EMACS hack to redirect the entry to Emacs as
> mentioned in the pinentry manual.
>
> The only other thing is that `allow-loopback-pinentry` should be set
> into that file too but I think you have already set that.

I had no pinentry-program in my gpg-agent.conf file. Just for testing I
added:

,----
| allow-loopback-pinentry
| pinentry-program /usr/bin/pinentry-gtk-2
`----

and restarted the gpg-agent (gpgconf --kill gpg-agent), but exactly the
same behaviour as before.

Cheers,
-- 
Ángel de Vicente
 Research Software Engineer (Supercomputing and BigData)
 Tel.: +34 922-605-747
 Web.: http://research.iac.es/proyecto/polmag/

 GPG: 0x8BDC390B69033F52

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5877 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-11-13  7:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-10  9:25 bug#59178: 28.2 ; Problems with Gnus (Emacs) + GnuPG for signing a mail with S/MIME Angel de Vicente
2022-11-10 18:31 ` Filipp Gunbin
2022-11-10 19:34   ` Angel de Vicente
2022-11-11 14:58     ` Filipp Gunbin
2022-11-11 16:49       ` Angel de Vicente
2022-11-12  5:17 ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-11-12 12:46 ` bug#59178: [Angel de Vicente] " Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-11-12 12:48   ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-11-13  7:00     ` Angel de Vicente

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).