emacs-orgmode
[Top][All Lists]
Advanced

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

Re: org-crypt fails if default key is expired while non-default key is t


From: Karl Voit
Subject: Re: org-crypt fails if default key is expired while non-default key is to be used
Date: Sun, 29 Jan 2023 18:37:14 +0100
User-agent: slrn/1.0.3 (Linux)

Hi Ihor,

* Ihor Radchenko <yantar92@posteo.net> wrote:
> Karl Voit <devnull@Karl-Voit.at> writes:
>
>>> May I know how exactly did you set `org-crypt-key'? Do you happen to
>>> have CRYPTKEY properties somewhere in your buffer?
>>
>> Sure. My config is on
>> https://github.com/novoid/dot-emacs/blob/master/config.org and I've
>> set it with:
>>
>> (setq org-crypt-key "ABC12345")  ;; I may have to mask this online as well 
>> ;-)
>
> What is the return value of
>
> (epg-list-keys (epg-make-context nil t t) org-crypt-key)
>
> ?
>
> Does it show the right key?

It shows:

(#s(epg-key ultimate
            (#s(epg-sub-key ultimate ... nil 1 4096 "ABC12345" 1515327255 nil 
"AAAAAAAA...ABC12345")
               #s(epg-sub-key ultimate ... nil 1 4096 "FFFFFFF" 1515327255 nil 
"FFFF.FFFFFFFF"))
            (#s(epg-user-id ultimate "Karl Voit (Internal key for orgmode) 
<ABC12345@Karl-Voit.at>" nil))))

... with ABC12345 being the correct key for org-crypt and FFFFFFF being my
default OpenPGP key.

-- 
get mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML into Org-mode:
       > get Memacs from https://github.com/novoid/Memacs <
Personal Information Management > http://Karl-Voit.at/tags/pim/
Emacs-related > http://Karl-Voit.at/tags/emacs/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]