[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Configuring epg



> > > > If you mean you have multiple primary keys, try
> > > > (setq mime-edit-pgp-signers '("AACB3243630052D9"))
> > > > or set mime-edit-pgp-verbose to t.
> > > When I set this, I get the following error:
> > >
> > >   Debugger entered--Lisp error: (wrong-type-argument epg-new-signature-p nil)
> > 2. Can EasyPG sign with the key?  Please try the below code.
> > 
> > (let ((debug-on-error t)
> >       (signer "AACB3243630052D9")
> >       (context (epg-make-context)))
> >   (epg-context-set-signers
> >    context (list (car (epg-list-keys context signer))))
> >   (epg-sign-string context signer 'cleartext))
> 
> This returns nil.

Without any error?

What is the result of the below code?

(let* ((signer "AACB3243630052D9")
       (context (epg-make-context))
       (key (car (epg-list-keys context signer))))
  (and key
       (epg-sub-key-id (car (epg-key-sub-key-list key)))))

If it returns valid key-id string, try the below code and show me the
content of " *epg-debug*" buffer (beware buffer's name starts with
SPACE).

(let ((epg-debug t)
      (signer "AACB3243630052D9")
      (context (epg-make-context)))
  (epg-context-set-signers
   context (list (car (epg-list-keys context signer))))
  (epg-sign-string context signer 'cleartext))

-- 
Kazuhiro Ito