Questions tagged [gpg]
The gpg tag has no usage guidance.
61
questions
0
votes
0
answers
19
views
"Tramp failed to connect" to any ssh server (gpg as an ssh agent)
Is anyone able to use Tramp with a gpg smart card or a gpg agent that manages ssh socket (so acts as an ssh agent)?
For me it fails with file-error "Tramp failed to connect. If this happens ...
8
votes
2
answers
266
views
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 "...
0
votes
0
answers
15
views
easypg wants to encrypt authinfo.gpg with my expired key
I have a .authinfo.gpg that I've previously encrypted with a private key. That key has expired so I created a new key for myself. However, I now can't save edits to authinfo.gpg because it keeps ...
0
votes
1
answer
106
views
Emacs EasyPG unable to locate key, giving: "Decryption failed, No secret key"
I'm trying to use EasyPG to store secrets that I need to set in my init file. To set up, I did the following:
Created a secrets.el file that has a couple of declaration like:
(setq SOME_SECRET "...
0
votes
1
answer
79
views
How do encrypt and decrypt file using gpg in emacs using passphrase?
Hope all is well.
I am setting up mu4e on emacs and I got but when I try to send an email I cant because my .authinfo.gpg is not being decrypted. it says that it cant find the key.
But I remember ...
0
votes
0
answers
49
views
gpg failed to verify signature when install queue in offline environment
I am trying to install queue in an offline environment with a local package archive, which is a mirror of melpa and gnu elpa. However, the queue package, and any package depends on it, cannot be ...
0
votes
1
answer
185
views
Tramp ssh connection inside eshell with gpg key
In my dotfiles I have the following setup to make ssh connections using my gpg key:
.bash_profile:
export GPG_TTY=$(tty)
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpgconf --launch ...
0
votes
0
answers
132
views
How to change GPG password prompt from GUI dialog to minibuffer?
I am using mu4e mail client for Emacs which when opened asks for my gpg password to decrypt the file containing my email's password, but it always shows a GUI dialog box. I want it so Emacs asks for ...
2
votes
1
answer
199
views
Storing Database Authentication Details Securely
(Note: I would normally use gpg versions of these files but for debugging I've scrapped gpg until I can get it working without encrypting!)
I'd like to store my username/password credentials securely ...
1
vote
0
answers
69
views
Good way of encrypting org-gcal credentials
New to emacs. Looking for a good solution for encypting org-gcal client-id and client-secret in my .spacemacs config file.
Here is the current line in user-config (obscuring private information):
(...
1
vote
1
answer
362
views
How to properly set mbsync and gpg binaries path with mu4e?
I'm trying to sync my emails from emacs using mu4e but I get the following error message:
Process mu4e-test exited abnormally with code 127
/bin/bash: mbsync: command not found
If I set mbsync with ...
1
vote
1
answer
701
views
emacs-pinentry not working on emacs 28.0.50 and Ubuntu 20.04?
Emacs-pinentry is not working for me on emacs 28.0.50 and Ubuntu 20.04, and I wonder why. I follow these steps:
In /home/user, do git clone https://github.com/ecraven/pinentry-emacs.git
Following the ...
0
votes
1
answer
315
views
How to avoid using auth-sources when editing with sudo?
When I invoke crux-sudo-edit, Emacs hangs forever with the following message:
Decrypting /home/$USER/.authinfo.gpg...0%
until I press C-g, then it asks:
Passphrase for symmetric encryption for /home/$...
1
vote
2
answers
457
views
Cannot open .gpg file in emacs after upgrading to 27.1
I was upgraded from RHEL 7.6 to 7.8 last week. After upgrade my emacs (v25.3) was broken and I got the following error:
error while loading shared libraries: libMagickWand.so.5: cannot open shared ...
0
votes
2
answers
177
views
Encrypted Email and Mailing Lists
My organization uses PGP-encrypted email, but are unable to use it
with our mailing list because we send emails to the mailing list
address, and not to the addresses on our member's individual PGP ...
4
votes
3
answers
2k
views
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 ...
1
vote
1
answer
73
views
Emacs mode for exploring/managing pgp/gpg
Is there Emacs mode for exploring/managing pgp/gpg keys?
Like starting from gpg --list-keys find individual info about key, refresh it, see web of trust, etc
5
votes
2
answers
3k
views
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 ...
1
vote
1
answer
416
views
encrypted password file with emacs & gpg
I want to keep all my passwords and logins in a gpg-encrypted file, that I want to access using emacs in the terminal on ubuntu.
I want to be prompted for the 'master' password when opening the file, ...
0
votes
0
answers
209
views
package--check-signature-content error when running package-list-packages in Emacs 27
I recently upgraded to a GNU Emacs pretest 27 (version 27.0.91) running on MS Windows 10 platform.
With package-check-signature defaulting to allow-unsigned, I modified init.el so Emacs can work ...
1
vote
0
answers
397
views
pinentry mode for org-crypt?
If I open an encrypted .gpg file, Emacs will prompt me for the password in the Minibuf using pinentry. However, if I try and decrypt an entry in org-crypt, it is popping up a CURSES entry in the ...
0
votes
1
answer
74
views
How do I open a .gpg file from the command line?
I have a file located in the directory ~/myfiles/list.txt.gpg.
In the terminal, I type emacs ~/myfiles/list.txt.gpg and I get something that looks like this,
which I'm guessing is the still encrypted ...
0
votes
1
answer
788
views
How to solve GPG problem on Windows 10?
I'm having problem with GPG on emacs. It keeps saying
Failed to verify signature archive-contents.sig:
No public key for [some_weird_code_here] created at [date_here] using RSA Command output:
gpg:...
0
votes
0
answers
610
views
Saving a file with GPG hangs Emacs with *Minibuf-22*
I open a GPG encrypted file and am prompted for the password. I open it, edit it, and when I save it, I am prompted for the password again. I start typing and Emacs hangs with this screenshot:
...
1
vote
1
answer
1k
views
User-friendly setup of Emacs with GPG, mu4e, and mu4e-send-delay
I use mu4e and Emacs for email, as well as GPG for credentials and mu4e-send-delay for delayed sending.
Sometimes the GPG prompt for the encryption password is overwritten by another message in the ...
7
votes
1
answer
2k
views
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 ...
0
votes
1
answer
612
views
magit commit does not permit adding a gpg signature
I am failing to run gpg to sign commits, after doing so successfully before an upgrade to Mojave and an upgrade to Emacs. (I am not sure when I lost the ability to sign files in the past year.)
When ...
1
vote
0
answers
168
views
Emacs not asking for password for .gpg file
Have recently upgraded to Ubuntu 18.04 which required an emacs reinstall of version 24
Now I've noticed that my symmetrically encrypted org mode file (file.org.gpg) no longer requires me to enter the ...
1
vote
1
answer
89
views
Encrypt both mail body and attachment with gnus
I'd like to encrypt with gpg some mail messages sent with gnus. When there is no attachment, epa-mail-encrypt works and I get a gpg-encrypted mail message. However, if I add an attachment and then run ...
0
votes
0
answers
237
views
GPG Encryption & EasyPG
Does anyone here regularly use Emacs to interact with GPG encrypted files and, if so, what has your experience been?
The Problem: I've been using Emacs (on OS X) to regularly edit a couple of GPG ...
1
vote
0
answers
195
views
What's causing slow behavior interacting with gpg files?
I have a gpg file I occasionally need to access from ubuntu 18.04 gnome desktop or xfce desktops in linux, or via a terminal in an ssh session. On the gnome desktop, everything works reasonably ...
1
vote
1
answer
90
views
How to detect programmatically if content under org-mode headline is encrypted or not before a save or commit?
org-mode allows users to encrypt the contents under a headline by adding the crypt tag with C-c C-q crypt and then calling M-x org-encrypt-entry.
Below is an example using this feature:
* Headline ...
7
votes
5
answers
3k
views
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
...
3
votes
1
answer
1k
views
Emacs not prompting for password when opening gpg file
I'm trying to get started with encryption on emacs and I'm experiencing the same issue as mentioned in this question:Emacs opens gpg file without asking for passphrase. When I save a .gpg file, emacs ...
12
votes
1
answer
1k
views
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 ...
1
vote
1
answer
97
views
Using an advice to set default parameters in a interactive function
I'm not sure if this is possible or if there's a workaround for it, but I want M-x erc to set the password after I try to call it, but before I input the actual parameters.
What I originally had in ...
4
votes
2
answers
1k
views
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 ...
9
votes
1
answer
662
views
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 ...
2
votes
1
answer
849
views
Emacs opens gpg file without asking for passphrase
I have an ASCII-armored GPG file that I open with a bookmark, and lately emacs has taken to opening it without asking for the passphrase, even if I just started emacs. I can't remember if I used ...
2
votes
1
answer
976
views
org-crypt key in .init file?
I recently setup org-crypt to use my gpg key to encrypt headings in org-mode files. I post my .init files in a public github repo.
My question is: Is the key in (setq org-crypt-key "xxxxxxxx") ...
2
votes
2
answers
603
views
Include .org.gpg files in org-agenda
How do I include .org.gpg files in my org-agenda-files? By default, it ignores them.
0
votes
1
answer
578
views
Encryption via gpg: "no such file"
When attempting to save some file.gpg, the minibuffer returns Opening output file: Searching for program, no such file or directory, gpg. According to the EmacsWiki, all that should be required is the ...
1
vote
2
answers
327
views
Using a master password (gnupg) with twittering-mode
I'm using Emacs 25.1 on fresh Debian Unstable installation. I have gnupg installed on my system, and twittering-use-master-password is t. When I invoke M-x twit, a web page with an application PIN is ...
22
votes
2
answers
6k
views
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? ...
5
votes
1
answer
2k
views
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 -> /etc/alternatives/pinentry
/...
2
votes
1
answer
2k
views
Can't get gnus to work with Gmail and GPG
I was once able to read and write my Gmail email in Gnus, but now I am unable to and can't figure out the problem. There seem to be several problems -- (a) with my gpg2 setup; (b) with my gnus nnimap ...
2
votes
2
answers
1k
views
Cache symmetric encryption passphrase for a session or some amount of time
I use symmetric encryption in emacs 24 and somewhere along the line the variable named epa-file-cache-passphrase-for-symmetric-encryption seems to have disappeared from emacs. I am going crazy ...
17
votes
1
answer
7k
views
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 <removed@removed>"
4096-...
4
votes
1
answer
187
views
Do not automatically sign emails directed to mailing lists and such
I configured emacs to automatically sign emails:
(add-hook 'mu4e-compose-mode-hook 'mml-secure-message-sign)
However, mailing lists often add a footer to the message and that breaks the signature. ...
1
vote
1
answer
393
views
How to GPG-sign a commit when reverting in Magit?
When I commit in Magit, I have the option to "Sign using GPG". But when I revert a commit in Magit, I don't see this option. Is it hidden? If so, how do I activate signing in that context? Otherwise, ...