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 ...
1
vote
0answers
3 views
gpg-agent and pinentry in the background
I'm trying to communicate with gpg (via the pass password manager) in the background (via a Bash script and a key binding in awesome.) I use gpg-agent to cache my passphrase. When I use the script ...
0
votes
0answers
15 views
keyserver timed out when trying to add a GPG public key
I am trying to add a public key for installing a program with CPG. But i am pretty new to this but every command i found gave me the same error:
gpg --keyserver keyserver.ubuntu.com --recv-keys ...
2
votes
1answer
31 views
Checking if a passphrase is able to decrypt symmetrically encrypted files
I have about twenty files symmetrically encrypted with CAST5. I have a single passphrase that is meant to work with all of the files and I wish to confirm that it does. I wrote a script to perform a ...
2
votes
0answers
31 views
What does apt need to be healed of a bad setup?
I made a couple of earlier posts regarding a libssl-dev that, it seemed, was not removable. Some of the replies touched on that there was a problem with apt, and now that someone posted the command to ...
2
votes
2answers
60 views
Why is scdaemon ballooning out of control?
My system keeps getting wedged because an scdaemon process has been spawned that has grown to consume all free memory on the computer. (I do not use, and have never used, smart cards in the vicinity ...
2
votes
0answers
31 views
How can I find out what keys gpg-agent has cached? (like how ssh-add -l shows you cached ssh keys)
ssh-add -l shows you all ssh-keys that have been added with ssh-add ~/.ssh/id_yourkey. How do I do the analogous thing with gpg and gpg-agent, in other words, ask it to show a list of cached keys?
1
vote
1answer
38 views
Encrypting import's output with gpg at the same time
The import command saves screenshot in a file. Is there a way to encrypt that file at the same time using gpg, without saving the image file first? gpg accepts input from stdin but it seems that ...
0
votes
1answer
421 views
Public key not found for RPM
I am trying to install package on Redhat 5.5 using YUM but it always give me this error
[root@redhat64 Desktop]# yum install perl-Net-Server-0.97-1.el5.rf.noarch.rpm Loaded plugins: rhnplugin, ...
2
votes
1answer
80 views
If I have a really strong passphrase for my gpg private key, how reckless can I be with my .gpg directory?
The title pretty much explains it all: I have a very (read: very) strong passphrase for my private key. How reckless can I be with my .gpg directory? Put another way, how many bits of entropy would ...
1
vote
4answers
343 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
59 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
103 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
100 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 ...
2
votes
2answers
235 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
128 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
462 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
181 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
133 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 ...
4
votes
1answer
661 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 ...
4
votes
1answer
385 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
364 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 ...
2
votes
1answer
170 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
757 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
462 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
418 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
195 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
1k 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
168 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?
...
4
votes
1answer
683 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
626 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
356 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 ...
1
vote
2answers
2k 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
809 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
976 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
553 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
179 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
1k 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 ...
3
votes
3answers
232 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
470 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
399 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
1k 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.

