Questions tagged [gnupg]

GNU Privacy Guard (GnuPG / GPG) is a cryptography suite implementing secret-key cryptography and public-key cryptography. GnuPG is the GNU project's complete and free implementation of the OpenPGP standard as defined by RFC4880. Use this tag for programmatic use of the GPG tool or its library. Questions about direct usage of the GPG tool or its graphical pendents belong on Super User.

GNU Privacy Guard (GnuPG) is a cryptography application. It implements a combination of conventional symmetric-key cryptography for speed, and public-key cryptography for ease of secure key exchange.

GnuPG is the GNU project's complete and free implementation of the OpenPGP standard as defined by RFC4880.

GnuPG allows encryption and signing of data and communication. It features a versatile key management system as well as access modules for all kinds of public key directories. The gpg command line tool has features for easy integration with other applications. A wealth of front-end applications and libraries are available.

1542 questions
246
votes
5 answers

Is there a way to "autosign" commits in Git with a GPG key?

Is there an easy way to make Git always signs each commit or tag that is created? I tried it with something like: alias commit = commit -S But that didn't do the trick. I don't want to install a different program to make this happen. Is it doable…
MindTooth
  • 4,272
  • 3
  • 17
  • 15
201
votes
31 answers

Git error - gpg failed to sign data

I just started using git and I install git and gpg via homebrew. For some reason, I get this error when i do git commit I looked at so many other stackoverflow questions regarding this topic and none of them worked for me. How can I fix this error…
Entitize
  • 3,103
  • 3
  • 14
  • 28
157
votes
6 answers

How to resolve "gpg: command not found" error during RVM installation?

I have a new mac pro (OS X 10.9.5) that I get to set up from scratch. I want to install RVM and the first thing it says to do is: Install mpapis public key (might need gpg2 and or sudo) gpg --keyserver hkp://keys.gnupg.net --recv-keys…
JDillon522
  • 16,942
  • 15
  • 41
  • 73
150
votes
8 answers

How to display gpg key details without importing it?

I have a copy of the postgresql apt repository gpg key and would like to view the details of the gpg key as it comes in the file. Is this possible without importing it into a key ring?
Amos Shapira
  • 3,540
  • 5
  • 27
  • 33
137
votes
1 answer

gnupg: There is no assurance this key belongs to the named user

I'm trying to use interesting password management tool named Pass. I did the following: Installed gpg tool $ sudo dnf install gpg Generated a key using $ gpg --gen-key Typed $ pass init "foobar id of my gpg key" as stated here Got mkdir: created…
Ivan Talalaev
  • 4,599
  • 6
  • 33
  • 43
129
votes
5 answers

encryption/decryption with multiple keys

Is it possible to encrypt data, such that it can be decrypted with several different keys? Example: I've encrypted data with key1, but I want to be able to decrypt with keys 2, 3, and 4. Is this possible?
Glen Solsberry
  • 10,880
  • 11
  • 64
  • 92
105
votes
4 answers

How to use gpg command-line to check passphrase is correct

I am trying to automate backups with duplicity, but when I test the result, I get gpg: public key decryption failed: bad passphrase I want to check whether the passphrase I am using is actually the passphrase associated with the corresponding gpg…
Oddthinking
  • 21,437
  • 19
  • 76
  • 115
91
votes
7 answers

How to Export Private / Secret ASC Key to Decrypt GPG Files

Background: My boss has tried exporting an ASC key to me with public and private parts but whenever I get the file the private part never loads up and it won't decrypt any files. We have tried Exporting the ASC Key using: Windows Application…
Brian McCarthy
  • 4,328
  • 15
  • 46
  • 64
85
votes
9 answers

gpg encrypt file without keyboard interaction

I am running next command within a crontab to encrypt a file and I don't want a keyboard interaction echo "PASSPHRASE" | gpg --passphrase-fd 0 -r USER --encrypt FILENAME.TXT but I have this answer: gpg: C042XXXX: There is no assurance this key…
coto
  • 2,150
  • 1
  • 18
  • 31
79
votes
5 answers

Can't check signature: public key not found

I try to decrypt file using following command: gpg --output file.txt --decrypt file.pgp File is decrypted successfully but i get an error: "gpg: Can't check signature: public key not found" Any idea, why I get this error?
codelikeprogrammerwoman
  • 1,119
  • 2
  • 12
  • 17
76
votes
1 answer

GPG vs SSH keys

On GitHub, I want to add a key to associate my computer with my account and I am given two options: create an SSH or a GPG key. What is the difference between the two keys? and is there a preferred one to use? I understand how to create both by…
Domenick
  • 1,220
  • 2
  • 8
  • 20
73
votes
2 answers

How to trust a apt repository : Debian apt-get update error public key is not available: NO_PUBKEY

Trying to update some repositories on Debian Etch installation and getting the following errors from running "apt-get update" W: GPG error: http://www.debian-multimedia.org etch Release: The following signatures couldn't be verified because teh…
Chris Harris
  • 4,393
  • 3
  • 22
  • 21
70
votes
15 answers

PGP: Not enough random bytes available. Please do some other work to give the OS a chance to collect more entropy

Setup : Ubuntu Server on Virtual Machine with 6 cores and 3GB of RAM. when I am trying to generate a asymmetric key pair via GPG like this gpg --gen-key . I get the following error : Not enough random bytes available. Please do some other work to…
user1524529
  • 877
  • 3
  • 9
  • 12
69
votes
11 answers

gpg: can't connect to the agent: IPC connect call failed

I am having a problem while trying to decrypt some keys using GPG. The following output is given to me: gpg: can't connect to the agent: IPC connect call failed I already edited some files, pointed in this tutorial:…
Johann Gomes
  • 2,743
  • 4
  • 19
  • 23
67
votes
5 answers

GPG error "Not enough random bytes available. Please do some other work to give the OS a chance to collect more"

I am using: gpg --gen-key Is there a better way to create a PGP key? What does this program want? A fully slammed server? Not enough random bytes available. Please do some other work to give the OS a chance to collect more
Tampa
  • 62,379
  • 105
  • 250
  • 388
1
2 3
99 100