We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [gpg]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
13 views

(EasyPG Assistant) Documentation for symmetric encryption passphrase caching seems incorrect?

I'm using Emacs 26.1 and GnuPG 2.1.18. The help doc for variable epa-file-cache-passphrase-for-symmetric-encryption explains that enabling this option is a security risk and to "consider using gpg-...
0
votes
0answers
10 views

gnupg encryption/decryption for files with suffixes other than `.gpg`?

I am using emacs 26.1 under linux, and I am utilizing easypg. I want to perform gnupg encryption and decryption inside of emacs with the encrypted files having a suffix other than .gpg. I want to ...
0
votes
0answers
16 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
0answers
45 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 ...
2
votes
1answer
79 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
1answer
45 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
0answers
31 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
1answer
36 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
0answers
71 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 ...
0
votes
0answers
38 views

Error when opening encrypted file

I cannot open my beancount encrypted file; executing M-x toggle-debug-on-error I get the following backtrace: Debugger entered--Lisp error: (wrong-type-argument arrayp nil) file-truename(nil) ...
1
vote
0answers
59 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
1answer
44 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 ...
3
votes
1answer
669 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 ...
1
vote
1answer
264 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 ...
8
votes
1answer
349 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
1answer
59 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
2answers
351 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 ...
8
votes
1answer
241 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 ...
1
vote
1answer
363 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 ...
1
vote
1answer
394 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") ...
0
votes
1answer
229 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
1answer
250 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
2answers
237 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 ...
14
votes
1answer
3k 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
1answer
1k 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
1answer
961 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
2answers
451 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 ...
9
votes
1answer
4k 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
1answer
112 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
1answer
149 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, ...
0
votes
1answer
110 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) ...
2
votes
1answer
1k 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 "...
3
votes
1answer
609 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), ...
5
votes
1answer
120 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 ...
3
votes
0answers
78 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 ...
4
votes
0answers
161 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/...
13
votes
2answers
3k 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 ...
1
vote
1answer
69 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 ...
4
votes
2answers
280 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 ...
2
votes
0answers
106 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 ...
17
votes
2answers
5k 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 ...