Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [gpg]

The tag has no usage guidance.

0
votes
0answers
38 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
19 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
43 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
31 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
0answers
133 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
115 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 ...
7
votes
1answer
189 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
41 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
1answer
212 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
184 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
230 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
255 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
165 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
187 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
201 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 ...
12
votes
1answer
2k 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? ...
2
votes
2answers
885 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
769 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
354 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
3k 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
100 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
106 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
97 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 "...
2
votes
1answer
504 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), ...
4
votes
1answer
105 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
67 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 ...
5
votes
0answers
133 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/...
11
votes
2answers
2k 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
55 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
1answer
225 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
94 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
4k 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 ...