Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [gpg]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
26 views

Can auto-mode-alist be used to have Emacs transparently encrypt and decrypt a non .gpg file?

I currently have Emacs encrypting a .gpg file transparently as is the expected behaviour and I'm wondering if this can be extended to all file types so that Emacs can attempt decryption on all files ...
V.H. Belvadi's user avatar
0 votes
1 answer
37 views

Why is org-ql looking for gpg2 in a hardcoded path?

I'm trying to install org-ql (use-package compat :ensure t) (use-package org-ql :quelpa (org-ql :fetcher github :repo "alphapapa/org-ql" :files (:defaults (:exclude &...
Jason Hunter's user avatar
0 votes
0 answers
78 views

How to get "EasyPG" to work on Windows?

I have Emacs 29.1, Windows 11, GnuPG 2.4.3 (from downloading gpg4win). I tried the advice here, but it doesn't work. If I start a file named test.gpg, and save it, I get a buffer like this: Select ...
Rob N's user avatar
  • 649
0 votes
1 answer
47 views

EPA: epa-file doesn't find recipients when saving encrypted journal, but is listed with M-x epa-file-select-keys

I'm using doom, working with an encrypted org-journal and keys configured from a yubikey. Opening/decrypting the journal works fine but after entering a new entry and trying to save, epa-file is ...
lucky255's user avatar
0 votes
0 answers
30 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 ...
Daniel Krajnik's user avatar
13 votes
4 answers
1k 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 "...
vortek's user avatar
  • 253
0 votes
1 answer
334 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 "...
fraxture's user avatar
  • 338
0 votes
1 answer
253 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 ...
chez93's user avatar
  • 1
0 votes
1 answer
235 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 ...
Reza's user avatar
  • 103
0 votes
0 answers
153 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 ...
apoorv569's user avatar
  • 113
2 votes
2 answers
333 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 ...
Phil's user avatar
  • 535
1 vote
0 answers
79 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): (...
jds's user avatar
  • 177
1 vote
1 answer
431 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 ...
CuriousObserver's user avatar
1 vote
1 answer
897 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 ...
Daniel's user avatar
  • 99
0 votes
1 answer
409 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/$...
Daanturo's user avatar
  • 180
1 vote
2 answers
599 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 ...
tnknepp's user avatar
  • 270
0 votes
2 answers
229 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 ...
theblacksquid's user avatar
4 votes
3 answers
3k 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 ...
R. Mitchell's user avatar
1 vote
1 answer
84 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
gavenkoa's user avatar
  • 3,452
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 ...
jake9wi's user avatar
  • 171
1 vote
1 answer
463 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, ...
user313032's user avatar
0 votes
0 answers
249 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 ...
ash's user avatar
  • 9
1 vote
0 answers
444 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 ...
Digicrat's user avatar
  • 187
0 votes
1 answer
99 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 ...
Hitomi86's user avatar
0 votes
1 answer
901 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:...
garakchy's user avatar
  • 203
1 vote
0 answers
913 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: ...
emonigma's user avatar
  • 1,907
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 ...
emonigma's user avatar
  • 1,907
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 ...
emonigma's user avatar
  • 1,907
0 votes
1 answer
687 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 ...
sanug's user avatar
  • 87
1 vote
0 answers
190 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 ...
bph's user avatar
  • 257
1 vote
1 answer
94 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 ...
wilk's user avatar
  • 539
0 votes
0 answers
264 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 ...
atabico's user avatar
1 vote
0 answers
227 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 ...
Karl Berggren's user avatar
1 vote
1 answer
96 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 ...
Melioratus's user avatar
  • 4,678
8 votes
5 answers
4k 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 ...
AndyJ's user avatar
  • 359
3 votes
1 answer
2k 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 ...
mowwwalker's user avatar
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 ...
kjo's user avatar
  • 3,247
1 vote
1 answer
102 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 ...
YuriAlbuquerque's user avatar
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 ...
Phil's user avatar
  • 535
9 votes
1 answer
695 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 ...
SeaDude's user avatar
  • 355
2 votes
1 answer
928 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 ...
Steve Petersen's user avatar
2 votes
1 answer
1k 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") ...
SeaDude's user avatar
  • 355
2 votes
2 answers
648 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.
Aaron Jensen's user avatar
0 votes
1 answer
597 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 ...
ktolbol's user avatar
  • 68
1 vote
2 answers
331 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 ...
gnuvince's user avatar
  • 261
23 votes
2 answers
7k 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? ...
Oliver Scholz's user avatar
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 /...
user84391's user avatar
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 ...
WordBrewery's user avatar
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 ...
mcheema's user avatar
  • 123
17 votes
1 answer
8k 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-...
omajid's user avatar
  • 508