Re: org-crypt fails if default key is expired while non-default key is to be used

2023-04-18 Thread Karl Voit
* Ihor Radchenko wrote: > Karl Voit writes: > >>> Ok. What about >>> >>> (let ((context (epg-make-context nil t t))) >>> (epg-decrypt-string context (epg-encrypt-string context "test" >>> (epg-list-keys context org-crypt-key >>> >> >> It asks me for the passphrase of the orgmode key (the

Re: org-crypt fails if default key is expired while non-default key is to be used

2023-01-31 Thread Ihor Radchenko
Karl Voit writes: >> Ok. What about >> >> (let ((context (epg-make-context nil t t))) >> (epg-decrypt-string context (epg-encrypt-string context "test" >> (epg-list-keys context org-crypt-key >> > > It asks me for the passphrase of the orgmode key (the correct one) > and prints out

Re: org-crypt fails if default key is expired while non-default key is to be used

2023-01-30 Thread Karl Voit
Hi Ihor, * Ihor Radchenko wrote: > Karl Voit writes: > >>> 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

Re: org-crypt fails if default key is expired while non-default key is to be used

2023-01-30 Thread Ihor Radchenko
Karl Voit writes: >> 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 >

Re: org-crypt fails if default key is expired while non-default key is to be used

2023-01-29 Thread Karl Voit
Hi Ihor, * Ihor Radchenko wrote: > Karl Voit 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

Re: org-crypt fails if default key is expired while non-default key is to be used

2023-01-24 Thread Ihor Radchenko
Karl Voit 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

Re: org-crypt fails if default key is expired while non-default key is to be used

2023-01-23 Thread Karl Voit
Hi Ihor, * Ihor Radchenko wrote: > Karl Voit writes: > >> When I invoked org-decrypt-entry, decrypting works like always. Then >> I modified something in this heading which is tagged with :crypt:. >> On saving that buffer, org-crypt issues an error message: >> >> | Error: (error "GPG error:

Re: org-crypt fails if default key is expired while non-default key is to be used

2023-01-23 Thread Ihor Radchenko
Karl Voit writes: > When I invoked org-decrypt-entry, decrypting works like always. Then > I modified something in this heading which is tagged with :crypt:. > On saving that buffer, org-crypt issues an error message: > > | Error: (error "GPG error: \"Encrypt failed\", \"Unusable public key: > |