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

Re: Configuring epg



At Sat, 18 Apr 2015 17:05:20 +0900,
Kazuhiro Ito wrote:
> > > 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)
> 
> 1. Does the same error occur when you set mime-edit-pgp-verbose to t
> and choose the key interactively?

Yes, I get the exact same error message.

> 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.

Thanks for your help,

Neal