-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
> However, Emacs again asks me Buffer plstore /Users/till/.emacs.d/oauth2-auto.plist modified; kill anyway? (y or n) and then tells me deferred error : (epg-error "Encrypt failed" "Exit") #236
Comments
I recently discovered that |
@telotortium I've followed your directions and I'm still showing this error. Additionally, I'm showing a gpg error now as well:
I do have this as well
When I invoke |
@dmitrym0 I think this is a bug with GnuPG 2.4.1 and greater, or at least Emacs' use of it. On #238 (comment) someone solved this issue by downgrading GPG to 2.4.0 or below, and that worked for me as well to solve that issue. |
@telotortium thanks that worked! |
Hi, I'm not sure if I should create a new issue or not, since this is still listed as open. If I should open a new request instead of writing here, please let me know! When I run In contrast to dmitrym0, downgrading GPG to 2.4.0 or below did not resolve the issue for me. I also tried following the instructions to use plstore and asymmetric keys, but got stuck at this step:
I'm not sure what this means. Pinentry is installed on my machine and found this https://www.gnupg.org/related_software/pinentry/index.html but I am not very technically savvy and do not know how to set up pinentry for gpg-agent. I am on Manjaro. It's possible that executing these steps and then downgrading would be effective, so any help on this last point would be appreciated, thank you! |
@tiktaaliki I went through the instructions one more (because I forgot my gpg password) and they seem to work fine. Which step did you have problems with regarding setting up pin entry? |
Same issue on my machine. I thought I might summarize. Used oauth2-auto (but the process and result is the same): (require 'oauth2-auto)
(setq
oauth2-auto-google-client-id "[REDACTED]"
oauth2-auto-google-client-secret "[REDACTED]"
)
;; testing
(oauth2-auto-access-token-sync oauth2-auto-google-client-id 'google) The code correctly opens the browser page and the process works well with a success message on the localhost page. Specs:
I'll try out the asymetric gpg-agent stuff later on (maybe tmrw) and report back if that worked out in my case. @tiktaaliki |
Alright... So it works for me now. I changed a few things, so I'm not sure which ones worked out. Please keep in mind I started with emacs just this week. I don't really know what I'm doing. Specs:
In your
In your terminal: gpgconf --reload gpg-agent In your emacs config add the following:
(require 'epa-file)
;; And then this setting probably is also the winner.
(setq epg-pinentry-mode 'loopback)
(epa-file-enable)
;; I don't know if this is necessary. I removed it again.
;; Essentially it is the path to the downgrade package I used.
(setq epg-gpg-program "~/Downloads/gnupg-2.4.0/bin/gpg")
;; No clue if I need this. But I kept it.
(setq plstore-cache-passphrase-for-symmetric-encryption t)
;; Same thing here. This is more or less
;; lazy copy pasting without reading the descriptions
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")
(use-package org-gcal
;; This is just to make sure I use the correct version.
;; Most likely not needed.
:elpaca '(org-gcal :host github :repo "kidd/org-gcal.el")
:init
(setq org-gcal-client-id "CLIENT_ID_HERE"
org-gcal-client-secret "CLIENT_SECRET_HERE")
...
) I think restarting emacs is also necessary. Like restart it twice for safe measure. After that it will prompt you for a password, after doing the browser stuff for the first time. If you don't enter a password it won't work. If you enter a password you are good to go. |
hallelujah! @aliyss thank you so much for writing all that out. it worked!! |
I have the same problem here, and I created an empty oauth2-auto.plist file in my user-emacs directory. I am still getting the same error and do not know where to "use a password" as referenced in the solution given below.
Originally posted by @malleyeno in #213 (comment)
The text was updated successfully, but these errors were encountered: