Questions tagged [gpg]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
22
votes
3answers
6k views

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 ...
19
votes
2answers
5k 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? ...
17
votes
2answers
4k views

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 ...
14
votes
1answer
6k 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-...
10
votes
1answer
869 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 ...
9
votes
1answer
491 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 ...
6
votes
1answer
1k 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 ...
5
votes
1answer
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 /...
5
votes
2answers
440 views

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 ...
5
votes
1answer
165 views

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 ...
4
votes
2answers
2k 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 ...
4
votes
2answers
792 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 ...
4
votes
2answers
754 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 ...
4
votes
1answer
151 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. ...
4
votes
0answers
172 views

Automatic gpg signature verification and decryption with gnus

I am trying to use Gnus for sending and receiving gpg signed/encrypted emails. I am following these tutorials for the setup etc. https://github.com/kensanata/ggg https://github.com/redguardtoo/...
3
votes
1answer
845 views

how to use minibuffer instead of pop-up window for GPG files?

I am looking for Emacs password manager, and org-password-manager looks nice for my needs. But when I am trying to open created passwords.org.gpg file (I use symmetric encryption for more ease), ...
3
votes
2answers
1k 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 ...
3
votes
0answers
90 views

How to prevent gnus from unlocking my GnuPG key

I'm using Gnus to read newsgroups via nntp. I am using mu4e to read and send e-mails. My e-mail server credentials are stored in ~/.authinfo.gpg so that mu4e can access them. My problem is that ...
2
votes
1answer
2k views

How to configure EasyPG with Gpg4win or any other Windows GPG version?

I am having a hard time getting GPG to work in Emacs under Windows. The configuration options I tried: (setq epg-gpg-program "c:/Program Files/GNU/GnuPG/gpg2.exe") (setq epg-gpg-home-directory "...
2
votes
2answers
749 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 ...
2
votes
1answer
563 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
1answer
766 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
1answer
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
0answers
114 views

Gnus fails to decrypt an email encrypted using GPG

When I try to open an encrypted message, Gnus asks me for my passphrase, which it seems to accept. But then it doesn't decrypt the message, and it doesn't report errors either. I can otherwise ...
1
vote
1answer
280 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, ...
1
vote
1answer
735 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 ...
1
vote
1answer
68 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 ...
1
vote
1answer
445 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.
1
vote
1answer
37 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
1
vote
1answer
64 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 ...
1
vote
1answer
805 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 ...
1
vote
1answer
78 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 ...
1
vote
2answers
292 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 ...
1
vote
1answer
96 views

How do I use epa-sign-file and not disrupt functionality of the file with the ASCII-armored signature

I want to be able to gpg sign specific files, specifically org-mode file. However, doing M-x epa-sign-file RET filename.org will create the file filename.org.asc and introduce new text in that file ...
1
vote
0answers
22 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
1answer
165 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, ...
1
vote
0answers
213 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 ...
1
vote
0answers
106 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
0answers
112 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 ...
0
votes
1answer
44 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/$...
0
votes
1answer
396 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
1answer
157 views

Why does viewing PGP encrypted PDF fail?

When I try to open a PGP encrypted PDF file.pdf.gpg, then – after entering the PIN in my smartcard reader – a window pops up with an error message: Error: /syntaxerror in (binary token, type=150) ...
0
votes
0answers
7 views

Unable to open files for editing with GPG + EasyPG

I have been using GPG + EasyPG for encrypting/decrypting files on my Macbook. Recently, I moved to a new Macbook and tried setting things up similar to my previous setup. However, while the files are ...
0
votes
0answers
25 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 ...
0
votes
0answers
36 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 ...
0
votes
0answers
14 views

epa-file won’t use gpg in /opt

I have (setq epg-gpg-program "/opt/gnupg22/bin/gpg") (custom-set-variables '(epg-gpg-program "/opt/gnupg22/bin/gpg")) Both set in my init....
0
votes
0answers
80 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 ...
0
votes
1answer
99 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
0answers
28 views

Epa-sign-file --clearsign option

I would like to sign a pdf file using epa from within emacs using the --clearsign option from gpg. Is this possible? epa-sign-file creates an armor file, so I assume that it needs to be tweaked ...
0
votes
2answers
91 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 ...