GNU Privacy Guard (GnuPG or GPG) is a GPL Licensed alternative to the PGP suite of cryptographic software. GnuPG is compliant with RFC 4880, which is the current IETF standards track specification of OpenPGP.

learn more… | top users | synonyms (1)

38
votes
3answers
17k views

Are GPG and SSH keys interchangable?

I want to generate an RSA key in GPG and use it in SSH login. Is this even possible? If so, how?
43
votes
1answer
3k views

Short, easy to understand explanation of GPG/PGP for nontechnical people?

Does anyone have a link to a good, but short (1-2 paragraphs) explanation of the benefits of using GPG/PGP signing and encryption for Email focused at non-technical readers? That is, why would someone ...
53
votes
6answers
31k views

What is better for GPG keys - RSA or DSA?

ssh-keygen defaults to creating RSA keys, but gpg --gen-key prefers DSA/ElGamal. Which one - RSA or DSA - is better for GPG?
46
votes
2answers
13k views

One GnuPG/PGP key pair, two emails?

I have two emails I use frequently, for both of which I'd like to use PGP keys generated/managed by GnuPG. I'd like to avoid creating a different key pair for each email, if possible, as that's ...
25
votes
8answers
30k views

How to work around blocked outbound hkp port for apt keys

I'm using Ubuntu 9.10, and need to add some apt repositories. Unfortunately, I get messages like this when running sudo apt-get update: W: GPG error: http://ppa.launchpad.net karmic Release: The ...
22
votes
2answers
12k views

How to force GPG to use console-mode pinentry to prompt for passwords?

Whenever I try to use gpg from a console-based environment such as ssh sessions it fails because the GTK pinentry dialog cannot be shown in a SSH session. I tried unset DISPLAY but it does not help ...
29
votes
1answer
13k views

How do I fix “WARNING: message was not integrity protected” when using GPG symmetrical encryption?

I've encrypted a file using symmetric encryption like this: gpg --symmetric myfile which results in a file myfile.gpg. Alright. Now let's decrypt the file again: gpg -o myfile --decrypt myfile....
11
votes
3answers
6k views

How can I send gpg encrypted mail automatically from the linux command line?

How can I send gpg encrypted mail automatically from the linux command line? I'm a little stumped on this one, I've tried using mutt but it doesn't encrypt mail unless it's used interactively. Does ...
9
votes
2answers
11k views

How to use gpg and SSH together? [duplicate]

Possible Duplicate: Are GPG and SSH keys interchangable? How to use gpg and SSH together? I know the basic procedures of 1) using gpg to encrypt and decrypt text files and 2) generating and ...
9
votes
1answer
3k views

PGP (GnuPG) - what was the original filename?

John wants to send 1.txt to Paul. He encrypts it. Now the file is named myFile.pgp, and he sends it to Paul. Paul gets the file. How (if possible) can Paul know what the original file name (1.txt) ...
12
votes
2answers
2k views

How to set gpg2 as default implementation of gpg on debian?

My debian installation came with gpg 1.4.12, while I would like to be running 2.0.19. The former comes in the package gnupg and the latter gnupg2. They can coexist peacefully as far as I know, but I ...
4
votes
1answer
166 views

Making Mutt GPG encrypt emails saved as drafts

How can I, when postponing an email in Mutt, ensure that the email is GPG encrypted before it is saved to the drafts folder? Ideally, this would be based on the PGP setting for the email being ...
8
votes
3answers
1k views

saving and searching encrypted mail

I often send and receive gpg-encrypted mail. At the moment I use thunderbird + enigmail (in linux) to do that. As far as I know there is no way in thunderbird to find all encrypted messages which ...
5
votes
2answers
2k views

automatically encrypt and decrypt emails using gnupg (gpgrelay for unix)

My point of view related to email security is: whenever possible emails should be protected with PGP/GPG while transporting, but it doesn't have sense to store encrypted emails in local mailbox (this ...
4
votes
1answer
715 views

Do GPG and GPGSM use the same key database?

I need to export one of my GPG keys as a PKCS12 key/certificate. gpg is incapable of doing this, but the tool gpgsm is. However, entering gpgsm -o <file> --export-secret-key-p12 <key-id> ...
3
votes
3answers
2k views

Smartcards for storing gpg/ssh keys (Linux) - what do I need?

I'm interested in storing my SSH keys and gpg keys on a smartcard for added security. However, I'm a bit uncertain on a few points, which are as follows: How many keys can I get on a card? I assume ...
6
votes
2answers
1k views

if one doesn't care about protecting a gpg secret key, is it still as secure as using gpg --symmetric?

Each of Alice and Bob is using gpg just to protect his/her own personal files and not using it as a way to send encrypted text to others. Alice has generated a key (gpg --gen-key) that she uses to ...
4
votes
1answer
4k views

How can I export public keys in PEM format with GnuPG?

I know that gpg --export -o pub.key -a "Username" exports a users' public key, but it doesn't seem to write a standard PEM format block. Is there any way to export keys from gpg in PEM format?
3
votes
1answer
69 views

How to generate the revocation certificate after being made a revoker with GnuPG

I read the "How should GnuPG's `--desig-revoke` command be used?" question/answer, so now I know when to use the --desig-revoke. So, I have two different private keys -- one at work (WORKWORK), ...
3
votes
2answers
599 views

How do I display the usage flags for my encryption keys in a less hackish way?

I am trying to educate myself on the use of encryption keys and I've been experimenting with this old Linus Torvalds’ key that I found 956EB7BF449FA3AB. I am interested to display the usage flags but ...
2
votes
1answer
148 views

Why is gpg --list-keys sometimes printing subkeys, sometimes not?

This question occured in the comments of "How do I display the usage flags for my encryption keys in a less hackish way?", and seems worth being answered in a Q&A form as the answer is not ...
2
votes
2answers
184 views

How should GnuPG's `--desig-revoke` command be used?

How should the GnuPG command --desig-revoke be used, and in which cases should you use it? According to the manual: --desig-revoke name Generate a designated revocation certificate for a key. ...
2
votes
4answers
203 views

GPG public key created with GnuPG is rejected by MS Outlook 2010, why?

I created a GPG keypair with GnuPG on the CentOS 7 command line and I have exported the public key into a .asc file and successfully used that public key to encrypt emails sent from another email ...
1
vote
1answer
148 views

Verify GPG tarballs from command line with signer's public key block?

I've got a script to fetch Gcrypt's five source packaes from GnuPG Download. I also fetch the signature for each package. For example: FILE=libassuan-2.2.0 wget -q "ftp://ftp.gnupg.org/gcrypt/...