Skip to content
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

Replacing plstore prompt with password-store #225

Open
d-miketa opened this issue Jan 7, 2023 · 5 comments
Open

Replacing plstore prompt with password-store #225

d-miketa opened this issue Jan 7, 2023 · 5 comments

Comments

@d-miketa
Copy link

d-miketa commented Jan 7, 2023

Hi and thanks for this plugin!

I was wondering if it's possible to integrate the plstore mechanism with a password manager. I already use password-store for my Calendar secret and have to input a password once already to recover it for org-gcal. It's annoying to have to do it again for another prompt immediately following this one. A better behaviour would be to specify a function outputting the plstore password. It'd also be great to be able to specify a function for the org-gcal secret.

@podiki
Copy link

podiki commented Jan 26, 2023

Yes, can't we plug into the options emacs has for storing secrets (e.g. authinfo, gpg)? I was very confused by the plstore pop up and still trying to figure out why it doesn't actually save...

EDIT: on that last point, discussed here #213 (for me creating the plist file helped)

@megodoonch
Copy link

I don't know if this is related, but I have either a new or newly-noticed error on sync: org-gcal-sync-buffer: error: (no-catch block nil)

Here is my org-gcal related .emacs bit:

(setq org-gcal-client-id "[redacted]apps.googleusercontent.com"
       org-gcal-client-secret "[redacted]"
       org-gcal-fetch-file-alist '(("[redacted]" .  "~/Sync/google.org") 
				   ("[redacted]@import.calendar.google.com" . "~/Sync/uu.org")
				   ([redacted]@group.calendar.google.com" . "~/Sync/tasks.org")
                                   ))

(require 'org-gcal)
(setq epg-pinentry-mode 'loopback)
(setenv "GPG_AGENT_INFO")
(setq-default plstore-cache-passphrase-for-symmetric-encryption t)

@telotortium
Copy link
Collaborator

I recently discovered that plstore can use asymmetric GPG keys from gpg-agent and wrote some instructions on how to use it. It at least doesn't prompt me for passwords so much. Try setting this up and see if it works? #239

@eval-on-point
Copy link

I am attempting this and see a small error in the README:

    (require 'plstore)
    (add-to-list 'plstore-encrypt-to '("KEY ID"))

produces an error because plstore-encrypt-to expects to be a list of strings

@qichanghai
Copy link

I am attempting this and see a small error in the README:

    (require 'plstore)
    (add-to-list 'plstore-encrypt-to '("KEY ID"))

produces an error because plstore-encrypt-to expects to be a list of strings

Thanks @eval-on-point. This helped me solve my authentication problem. I use the following:

    (add-to-list 'plstore-encrypt-to "GPG KEY ID")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants