gpg is the main command line tool of the GNU Privacy Guard (GnuPG), implementing the OpenPGP standard for public key cryptography. It allows encryption, (verification of) signatures and trust models like the web of trust. gpg (and its library gpgme) are the base of many FOSS crypto applications (...

learn more… | top users | synonyms

-1
votes
1answer
251 views

Using GPG, encrypt a file with private key

I'm setting up a system to update software on a device and I would like to encrypt the update files using a private key that I have created and then decrypt them with the public key. All of the ...
0
votes
1answer
1k views

Debian jessie GPG error Clearsigned file isn't valid

This is what I get when running apt-get update: /root$ sudo apt-get update Get:1 http://security.debian.org jessie/updates InRelease [1,507 B] Get:2 http://cdn.debian.net jessie InRelease [1,507 B] ...
6
votes
3answers
678 views

Is there a way to source an encrypted (GPG) file on-the-fly in a script?

I need a bash script to source a file that is encrypted, as the file being sourced contains sensitive information. I would like the script to prompt for the GPG passphrase and then run, sourcing the ...
2
votes
1answer
220 views

Change pinentry program temporarily with gpg-agent

I use gpg-agent sometimes with no X display or over ssh, so my config file contains: pinentry-program /usr/bin/pinentry-curses This way, the gpg passphrase is requested in curses. That said, in ...
4
votes
1answer
75 views

How can I search gpg-encrypted email with notmuch-mutt?

I'm using mutt, with notmuch-mutt indexing the mail. I have a macro defined in mutt to search multiple mailboxes, using notmuch's integration (as suggested in the man page). macro index <F3> \ ...
2
votes
1answer
59 views

Encrypt multimedia files with GPG

Is it possible to encrypt pictures and other files like audio etc with GPG? If yes then how to? If not then why not?.
4
votes
1answer
107 views

How can I encrypt with my previous GPG subkey after creating a new one?

I recently generated two new subkeys to put on an external key card. I previously had a master key (usage marked SC) and a single subkey (marked E). This arrangement was worked fine for what I needed ...
3
votes
1answer
1k views

How to make gpg find gpg-agent

On Fedora 22, gpg doesn't find gpg-agent: % gpg-agent --daemon % gpg -vvv --use-agent --no-tty --decrypt file.gpg gpg: using character set `utf-8' :pubkey ...
0
votes
1answer
103 views

python gnupg cannot user keychain keys

I have an issue using the gnupg module in python in Ubuntu 14. My keychain is set up correctly. I can use gpg on the command line to decrypt files with having to enter my passphrase. I have also ...
2
votes
1answer
36 views

How to configure apt to trust CDs

The debian secure apt page states that apt can be configured to always trust files from a CD. However, I can't find documentation of how to do this configuration. It's also worth noting that newer ...
1
vote
1answer
30 views

Force enigmail to sign with a specific subkey

I have a GPG key with multiple signing subkeys and I want to force enigmail to sign email with a specified subkey. GPG can be forced to sign with a specific subkey by appending the characted "!" after ...
4
votes
0answers
74 views

About pinentry usage along with gpg

Is mandatory to use pinentry with gpg2? Why is pinentry better over legacy prompt?
1
vote
0answers
327 views

E: GPG error: http://downloads.sourceforge.net all Release: The following signatures were invalid: NODATA 1 NODATA 2

Following is the output for sudo apt-get update Get:1 http://deb.torproject.org precise Release.gpg [490 B] Get:2 http://deb.torproject.org precise Release [3,709 B] ...
1
vote
1answer
1k views

pass and gpg: No public key

I'm using the pass for quite a long time; but after exporting my key storage and gpg keys to another machine I see following output: $ gpg --list-key /home/shved/.gnupg/pubring.gpg -------------------...
3
votes
0answers
128 views

Enigmail Thunderbird pinentry requests all passwords to all secret keys

I want to read a GPG encrypted email using Thunderbird Enigmail from Account.1@mail.com and Edit > Account Settings > Account.1 > OpenPGP Security has "Use specific OpenPGP key ID" selected. However, ...
1
vote
2answers
341 views

Enigmail plugin does not recognize anymore my private key

I am using a Debian unstable with Iceweasel (38.2.0esr-1) and the Enigmail plugin (2:1.8.2-3) from the distribution packages. I recently upgraded my system and got a new version of the gnupg2 package (...
1
vote
0answers
26 views

Installation of R [duplicate]

I want to know about how to install the latest version of R for linux mint First I tried the command: sudo gedit /etc/apt/sources.list Then I typed: sudo apt-key adv --keyserver keys.gnupg.net --...
1
vote
3answers
680 views

trying to install chef-client package via local yum repo

I am trying to make chef-11.16.4-1.el6.x86_64.rpm available to our servers via a local yum repo that we've built. it is not available in RHEL Repos, so i had to manually download and save it in our ...
4
votes
1answer
447 views

How to use tty allocation to run GPG through SSH?

I am trying to encrypt and sign a local file using a distant GPG installation via SSH: pv file | ssh -tt [ssh server] gpg -se -r [receipt key] > file.gpg Using the double t option removes the ...
0
votes
1answer
153 views

Sign a PDF file to verify integrity and validity

I've been asked to distribute electronic certificates (they were originally paper), in a PDF format, but I'd like to sign them with gpg or something similar so users can upload them to my site to ...
0
votes
1answer
369 views

Create yum repo with multiple keys

I need to create a yum repository but I have 5 gpgkeys, the idea is to configure the repo and each package install its own gpgkey automatically. In other words, I need to configure multiple gpgkeys ...
1
vote
1answer
43 views

gpg will not let me change my passphrase

I want to change my gpg passphrase so I do tweedleburg:~/.gnupg # gpg --list-secret-keys /root/.gnupg/secring.gpg ------------------------ sec 1024D/43E855BB 2008-02-03 uid ...
-3
votes
1answer
51 views

Encryption issue with GPG and PGP [closed]

I want to know whether GPG or PGP are able to encrypt and decrypt a file with special and international characters in it.
-1
votes
1answer
107 views

Get gpg key info [closed]

I have a GPG public key, and I'd like to know its name. The key can be a file containing a text, or just the text.
0
votes
1answer
159 views

Redirect all GnuPG output to /dev/null

I'm doing key generation in a sort of batch mode with GnuPG (don't ask why): echo -e 'addkey\n4\n2048\n120d\nsave' | gpg --command-fd 0 \ --edit-key $master_key_id >/dev/null 2>&1 I ...
1
vote
1answer
253 views

GPG keys copied, not working

I have copied my GPG keys from 1 server to another, on the first server everything is working correctly, on the new I get the following: (I have included the output of list-keys and list-secret-keys [...
6
votes
3answers
508 views

Silent GnuPG password request with bash commands

I'm trying to hide the "output" of a gnupg command, but it seems that it is always printed. the command is: echo "thisprogramwørks" | gpg -q --status-fd 1 --no-use-agent --sign --local-user D30BDF86 ...
3
votes
1answer
118 views

How to migrate GPG trust database from one machine to another?

I'm trying to copy my gpg related files over from an old machine to a new one. I've worked out how to copy the keys over: How to import secret gpg key (copied from one machine to another)? but this ...
2
votes
2answers
346 views

Encrypting directories with gpg [duplicate]

I want to use GPG for local encryption only, and after reading the man file, I'm doing the following in order to encrypt a whole directory: I zip the directory with a password "zip -r -e foo foo", ...
2
votes
0answers
14 views

Use GnuPG by default in Evolution

Is there a way to make Evolution default to encrypting messages with GnuPG? It'd be acceptable if Evolution complains and refuses to send unencrypted emails to addresses for which it lacks a gpg ...
3
votes
1answer
125 views

Which keys gpg exports and what is in the keyrings?

I've been making my way through what's on the internet concerning gpg lately. And I must say it's pretty confusing. Particularly, the importing/exporting part. When you generate a key, you basically ...
2
votes
1answer
79 views

Installation of GPG alongside a running one: configure problem?

I already have a production version of GPG from a previous installation. I would like to build and test the last version of GPG without interfering with the production one. I am performing this test ...
2
votes
2answers
427 views

GPG decrypt returns empty file

Im decrypting a file sent by a client using gpg. The file is Obviusly encrypted, and theoretically, using my public key. I have installed both his public key and my private key. So, im running: /...
0
votes
1answer
902 views

GPG error with http://volatile.debian.org : 'The following signatures were invalid: NODATA 1 NODATA 2'

I am currently trying to add a new repository to apt-get but it is not working. I'm adding it like this: deb http://volatile.debian.org/debian-volatile wheezy/volatile non-free Then I get this ...
4
votes
0answers
63 views

Reading GPG passphrase from the physical keyboard in OpenBSD

I'm using Synergy to control an OpenBSD desktop from a Linux computer (think of it like a VNC client/server). That is to say what I type on the keyboard goes through a network connection before it ...
2
votes
0answers
391 views

Decrypting with GPG after a “su - different user”

I have cron job running a script in the cron of "USER A" that encrypts many files in a loop using the gpg command below: gpg --batch --cipher-algo AES256 --passphrase "PASSWORDISHERE" -c FILENAME "...
1
vote
0answers
197 views

How can I have pinentry ask if a password should be remembered?

In this answer, the password prompt for gpg-agent includes options for how long the password should be remembered. However, in my system I get a much simpler prompt, without that option How can ...
3
votes
2answers
253 views

Is there a way to edit a password-protected file without having to retype the password all the time?

I want to encrypt a text file using a password and a way to safely edit that file. The problem I am having is that I haven't managed to find a simple way to do that while only requiring the password ...
1
vote
1answer
42 views

How do I get the Truecrypt CLI installed?

I have a unix machine with truecrypt 7.1a installed. I'm trying to mount a volume to test with the command line but I don't have the truecrypt command installed evidently. Did the command line ...
3
votes
1answer
111 views

Not possible to use batch mode?! FreeBSD gpg 1.4.19

I use a script to decrypt my password for offlineimap, but somehow it's not working anymore ... The file was encrypted with gpg --symmetric password For offlineimap I use this combination. gpg --...
1
vote
1answer
348 views

How can I tell gpg that I do not want password caching for a specific program?

I'm using gnupg 2.1.2. Usually it is quite handy when gnupg caches my passwords. But for some sensitive programs I would prefer that gnupg does not cache them with gpg-agent. I searched a good while ...
2
votes
3answers
222 views

gpg key generation on Tails live cd - why so quick?

I just used gpg2 --gen-key to generate a 2048 bit RSA key pair on an OS running on a live cd (Tails). This happened much faster than I expected. When I have done this before on a regular machine it ...
3
votes
1answer
2k views

What are gpg-pubkey* packages?

I compared the packages list reported by RPM and YUM on a CentOS 6 and 7. I noticed the lists were slightly different (same issue with RHEL). See Listing installed packages with yum and rpm mismatch ...
3
votes
1answer
188 views

Zsh gpg2 autocompletion

I am using zsh with oh-my-zsh on OSX. I installed gnupg2 from homebrew giving me the executable gpg2. Unfortunately zsh auto completion appears to only support gpg (even though that executable is not ...
11
votes
2answers
4k views

How does GPG agent work?

I have a line in my gpg.conf file which says use-agent I understand this refers to gpg-agent which is a daemon. The man page states "gpg-agent is a daemon to manage secret (private) keys independently ...
0
votes
0answers
198 views

'Pass' password manager - does it require public key?

The 'pass' password manager uses gpg keys. http://www.passwordstore.org/ However, gpg itself can be used for symmetric encryption of files. Does pass only work using public/private keys, or is it ...
1
vote
1answer
113 views

Simple-cdd keyring addition

I'm looking to add a personal key for an apt repo to a netinstall disc which would require end users to not have to install it. I'm using simple-cdd to generate the build, so wrapping it into a .deb ...
3
votes
0answers
374 views

How do I combine SSH agent forwarding and gpg-agent?

I have an ssh-agent running on my local machine. I connect to a remote machine via SSH, with agent forwarding enabled. On that remote there is an instance of gpg-agent running. I know that recent ...
3
votes
2answers
426 views

How to quickly generate (insecure) GPG keys?

I'd like to automate generating at least two GPG keys for testing and demonstration purposes in a virtual machine. Because of this context I want to make sure the key generation is fast, ideally not ...
2
votes
4answers
369 views

File encryption utility without key integrity check (symmetric key)

When encrypting a file with symmetric key, most common utilities (such as gpg, mcrypt, etc) store information in the encrypted message which can be used to verify integrity of the key during ...