Questions tagged [gpg]

60 questions
27
votes
3 answers

How to type the password of a .gpg file only when opening it

(I understand the security implications of the following, and I'm fine with them.) I have a single encrypted file in my org directory, diary.org.gpg. I never did any special configuration for it to work, still Whenever I visit the file, I'm…
Malabarba
  • 22,878
  • 6
  • 78
  • 163
22
votes
2 answers

How to automatically sign commits with magit?

I'm interested on having each of my commits signed with my GPG key. Since I use magit for interfacing with git, I was wondering if telling magit to sign each commit was possible (or some workaround to achieve this was feasible, at least).
shackra
  • 2,702
  • 18
  • 47
21
votes
2 answers

Enabling minibuffer pinentry with Emacs 25 and GnuPG 2.1 on Ubuntu Xenial

I had to do quite some diving and hunting through documentation and forums, so I figured I might as well do a Q&A here for others: How do I enable GnuPG passphrase prompting in the minibuffer? The Emacs 25.1 changelog says: ** pinentry.el allows…
Oliver Scholz
  • 846
  • 7
  • 12
17
votes
1 answer

Unable to decrypt .gpg file using emacs but command line gpg works

I have an accounts.org.gpg file. I can open it using gpg directly: $ gpg -d ./accounts.org.gpg You need a passphrase to unlock the secret key for user: "Omair Majid " 4096-bit RSA key, ID 7CC8AAC6, created 2012-01-18 (main key ID…
omajid
  • 508
  • 4
  • 12
12
votes
1 answer

How to get gpg-agent to cache the passphrases I enter when reading/saving *.gpg files?

I want to work with gpg-encrypted files using Emacs, and would like to be able to enter the passphrase for each encrypted file only once per Emacs session. I used to be able to do this by setting the variable…
kjo
  • 3,145
  • 14
  • 42
9
votes
1 answer

How do I remove passwords and usernames from my emacs .init file?

Example: I have IRC username and password in my emacs .init file I share my .init file across devices using a public github repo I encrypt this heading in my .init to avoid showing org-encrypt-entry does NOT always encrypt upon saving file thus I…
SeaDude
  • 355
  • 1
  • 7
7
votes
1 answer

Emacs failing to save encrypted file

I've used Emacs' built-in gpg support to encrypt/decrypt files for years. A few days ago, I tried to save an ecrypted file that had changes and the save wouldn't finish. The minibuffer shows "Saving file ..." but doesn't save. Emacs doesn't hang…
vortek
  • 193
  • 4
7
votes
1 answer

How to force Emacs or pinentry to forget wrong GPG password?

I use mu4e, mu4e-send-delay to send emails with a delay, GPG to store my SMTP authentication, and pinentry to access GPG files. When I am prompted for the GPG encryption password in the mini-buffer but am typing in another buffer and don't notice…
miguelmorin
  • 1,751
  • 11
  • 33
7
votes
5 answers

gpg fails to find key to elpa archive

I'm getting this error while trying download a package from ELPA: Failed to verify signature archive-contents.sig: No public key for 474F05837FBDEF9B created at 2018-11-28T14:10:03-0800 using DSA Command output: gpg: keyblock resource…
AndyJ
  • 349
  • 2
  • 9
5
votes
2 answers

GPG No Public Key

Emacs gives a error about not finding a GPG key. The Error Failed to verify signature archive-contents.sig: No public key for 066DAFCB81E42C40 created at 2020-08-22T21:05:02+0000 using RSA Command output: gpg: keyblock resource…
jake9wi
  • 171
  • 1
  • 4
5
votes
1 answer

gpg password entry in minibuffer, not popup

On a new install Debian Stretch GNU Emacs 24.5.1 gpg (GnuPG) 2.1.18 libgcrypt 1.7.6-beta pinentry-gnome3 (pinentry) 1.0.0 ls - /usr/bin/pinent* /usr/bin/pinentry ->…
user84391
  • 51
  • 3
5
votes
1 answer

How to start in daemon mode and suppress interactive dialogs?

I love to start emacs in daemon mode with my first login and then have the same emacs process for all subsequent logins, be it graphical, on physical console or from the network via ssh. But there is a problem with this, when using a session to save…
Uwe Koloska
  • 968
  • 9
  • 13
5
votes
2 answers

EPA (EasyPG Assistant): How to encrypt for *two* of my own keys? OR How are key-ids used to select keys

I want to tell epa to encrypt for two of my public keys. (stored in two different places). I have this at the top of the file: # -*- mode:org; epa-file-encrypt-to: ("arthur@ul___dt.com") -*- which causes it to select the first one key for that…
4
votes
3 answers

Cannot run melpa package refresh due to gpg errors

Root task: trying to install R mode for emacs (ESS following - https://stackoverflow.com/questions/1422987/emacs-mode-for-r) OS: Ubuntu 18.04 Problem: When I run M-x package-refresh-contents RET I get the following error: Failed to verify signature…
4
votes
2 answers

Using auth-source with magit and bitbucket

The code base I'm working on has recently moved from ssh key controlled git to https bitbucket. I use Magit to handle my version control in Emacs. In the old ssh world I was never challenged for my username or password. However, now I'm prompted…
Phil
  • 533
  • 4
  • 17
1
2 3 4