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

4
votes
5answers
4k views

gpg asks for password even with --passphrase

I expect the following command to extract the gpg file without asking for password: gpg --passphrase 1234 file.gpg But it asks for the password. Why? This also have the same behavior: gpg ...
0
votes
1answer
107 views

How to check that gpg checking is correct on RHEL based machines or not?

How can I check that the "enabled=1" repositories have "gpgcheck=1" in the "/etc/yum.repos.d/" directory (and the "gpgkey=" file exist or not?)? Q: I'm searching for a solution to do this ...
1
vote
1answer
205 views

How to export a private PGP email key

I have made a keypair for my email address using gnupg. I thought that I should probably keep a backup of it so that if I lose my desktop computer I can continue using the same key. Is this the ...
2
votes
0answers
207 views

Can emacs use gpg-agent in a terminal at all?

I understand that there are problems with getting pinentry-curses to work with emacs (see some of the comments on http://emacswiki.org/emacs/EasyPG), and so using emacs in a terminal isn't compatible ...
3
votes
3answers
549 views

How to use Emacs to recognize and automatically open GPG encrypted file in ASCII armored format?

gpg -ca passwords.txt create encrypted ASCII file passwords.txt.asc. Emacs open the file as a normal text file: -----BEGIN PGP MESSAGE----- Version: GnuPG v2.0.19 (GNU/Linux) ...
2
votes
1answer
488 views

I try to add passwords to the “pass” password manager. But my attempts fail with “no public key” GPG errors. Why?

I am trying to install Pass: the standard Unix password manager, however, when I try to add passwords to the appliation I get these errors gpg: Kelly's Passwords: skipped: No public key gpg: [stdin]: ...
1
vote
2answers
2k views

What does gpg error code 2(GPG_ERR_UNKNOWN_PACKET) mean?

I am tasked to explain the variation of gpg errors that happened in one of my batch script. Currently when I perform gpg decrypt for a specified file it returns 2. The problem with this is when I ...
2
votes
1answer
266 views

How do I specify the keyserver with GPG?

Tutorials online say to use the option --keyserver, like this: gpg --send-keys <keyID> --keyserver 'hkp://keyserver.ubuntu.com:11371' but gpg doesn't recognise the option --keyserver. What ...
0
votes
1answer
230 views

Generate GPG secret key from public key and passphrase

I've lost my key. Now I can't sign anything, and servers don't accept unsigned content. The key is uploaded to a keyserver. Now I have fingerprint, public key and I remember my passphrase. How can I ...
8
votes
1answer
2k views

How to configure gpg to enter passphrase only once per session

Is it posible to configure gpg in a way that I enter passphrase only once, and it will work for the whole session (I'm using Ubuntu/XFce)? I'm not sure how gpg works, it seems that the default ...
5
votes
1answer
677 views

How to edit a .gpg file with vi?

So I created a gpg encrypted file with password: gpg -c passwords.txt.gpg how can I open it with vi, edit it, then close it? (So that no passwords.txt file will be created, the decrypted ...
-1
votes
3answers
843 views

How to create an encrypted container (dynamically expandable) on OpenBSD

On OpenBSD, how/with what I can create an encrypted container that can later be dynamically expanded? Can I do it with GPG? (password protection is enough) So, if I open this container and put files ...
3
votes
1answer
199 views

What is this file called - doing in my home directory?

In my home directory there is a file called -. Seeing inside it was hard, but I finally managed to do it. At the top was this: -----BEGIN PGP PUBLIC KEY BLOCK----- followed by a bunch of ...
7
votes
3answers
2k views

Encrypt OfflineIMAP Password

I'm trying to set up OfflineIMAP to authenticate via a gpg encrypted file (that way I can consolidate all my encryption to my gpg-agent process). From the documentation, it seems the only way to ...
3
votes
2answers
923 views

Encrypt multiple files at once

I'm writing a script which creates project archives and then creates 7z archives of them to make it easier on me to save specific versions and keep encrypted backups. After I've generated the ...
8
votes
1answer
660 views

Best Practices for SSH, tmux & GnuPG Agent

I'm attempting to consolidate my encryption software to GnuPG, and I'm running into a confusing problem. My primary unit is a headless server, and I exclusively work in tmux. There is no X session, ...
4
votes
2answers
327 views

Decrypt files encrypted with gpg using xargs

I have a lot of files encrypted with gpg. All files have the same password. Is it possible to use xargs to decrypt files? ls | xargs -n 1 gpg asks for the password for every file.
1
vote
1answer
3k views

What means warning: rpmts_HdrFromFdno when installing from rpmfusion?

Installing a media player from rpmfusion (via yum) yields following output: Transaction Summary ================================================================================ Install 3 Packages ...
4
votes
1answer
299 views

GPG key pair generation: What do the plus and minus signs mean?

I just generated a new GPG key pair and gpg displays some random plus, minus, greater than, less than and circumflex signs. I was always wondering what they mean. Can you explain it to me? ...
9
votes
1answer
2k views

How are the GPG usage flags defined in the key details listing?

When I list the details of key I get output like this: $ gpg --edit-key SOMEID pub [..] created: [..] expires: [..] usage:SC [..] sub [..] created: [..] expires: [..] usage: E Or even usage: ...
4
votes
3answers
2k views

When importing a key during a yum installation, where is that key stored?

I'm installing a piece of software for which I had to use a third-party repository. After adding the repository with rpm -Uvh http://[site], I installed with yum install [package]. One of the ...
3
votes
2answers
545 views

Emacs auto encryption and gpg

Emacs encrypts/decrypts .gpg files automatically. But recently I have lost the ability to decrypt files encrypted by the Linux gpg tool and vice versa. I use: passphrase symmetric encryption gnupg ...
4
votes
2answers
6k views

CentOS yum repository bad Header V4 RSA/SHA1 signature

I was coping with many problems to get stuck with this one. I have installed yum repository on server (CentOS 5.6) with: createrepo -v -s sha yumrepo/ sha is used due to solution to my earlier ...
3
votes
3answers
1k views

Skype missing GPG key

I wanted to install Skype on Scientific Linux 6.1: yum install alsa-lib.i686 dbus-libs.i686 e2fsprogs-libs.i686 expat.i686 fontconfig.i686 freetype.i686 glib2.i686 glibc.i686 keyutils-libs.i686 ...
2
votes
1answer
1k views

Encrypt files using gpg (and them symetric encrypting the key) - is it a normal thing to do in the *nix world?

I read a lot of articles about using gpg to encrypt email, but I would like to use it to encrypt some files - mainly a bunch of *.isos. I'm going to describe what I thought I would do, so you can ...
3
votes
2answers
1k views

How can I verify that a PGP key is imported into RPM?

One can import a key with: rpm --import /path/to/key But how can you tell later if you have already imported this key? Trying to reimport it will fail with an error and I am trying to avoid this ...
1
vote
1answer
302 views

Are there any GPG checks in OpenBSD when installing an application?

Like under an average Linux distribution - are there any checkings that the downloaded packages are really the packages that are on the mirror server?
7
votes
4answers
2k views

Receive Pop/IMAP email and then forward as encrypted to gmail

Basically, I have an email account I can access as POP3 or IMAP. I want to take all incoming emails, encrypt them, and then forward the encrypted version to my gmail account (so I can see the ...
4
votes
3answers
751 views

How do I tell which GPG key an RPM package was signed with?

The cryptographic signature of an RPM can be verified with the rpm -K command. This returns a string containing gpg (or pgp) and ending in OK if the signature is in RPM's database and is valid. If ...
1
vote
0answers
692 views

Backupninja + Duplicity problem

I have recently installed on a Debian squeeze_64 server the Backupninja and Duplicity utilities. My goal is to backup /foo/bar/* to /desti/nation/ with full backup once a week and differentially once ...
2
votes
1answer
456 views

How long should it take to generate 300 bytes of entropy on a VPS?

I'm running NetBSD on a Xen VPS, and I'm trying to generate a gpg keypair. I've gotten most of the way there, but now I'm getting the following error message: Not enough random bytes available. ...
3
votes
2answers
2k views

Encode directory with GnuPG

Is there any way to encrypt the whole directory using gpg? It accepts only file as input argument. But I need to encrypt a lot of files on external HDD.