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.

See also:

1783 questions
336
votes
34 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
  • 4,553
  • 3
  • 20
  • 28
310
votes
6 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,992
  • 4
  • 20
  • 15
202
votes
9 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?
Capt. Crunch
  • 4,490
  • 6
  • 32
  • 38
195
votes
9 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
  • 19,046
  • 15
  • 47
  • 81
177
votes
2 answers

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
  • 6,014
  • 9
  • 40
  • 49
162
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
  • 11,960
  • 15
  • 69
  • 94
162
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
  • 2,142
  • 3
  • 12
  • 23
124
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
  • 24,359
  • 19
  • 83
  • 121
117
votes
6 answers

Error "gpg: keyserver receive failed: No name"

I started using GNU Privacy Guard. An error occurs when trying to import a key from any server: gpg --keyserver keys.gnupg.net --recv-key 908F435E Output: gpg: keyserver receive failed: No name
Erf
  • 1,223
  • 3
  • 5
  • 5
109
votes
8 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,429
  • 3
  • 14
  • 17
106
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,658
  • 16
  • 49
  • 66
101
votes
9 answers

git - gpg onto mac osx: error: gpg failed to sign the data

I installed GPG from brew. brew install gpg It is gnupg2-2.0.30_2. When I commit, I do get a error message: You need a passphrase to unlock the secret key for user: "Max Mustermann (mycomment) " 2048-bit RSA key, ID 1111AAAA, created…
Mondy
  • 2,055
  • 4
  • 19
  • 29
93
votes
14 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
  • 3,813
  • 5
  • 23
  • 25
88
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,255
  • 1
  • 19
  • 32
80
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,705
  • 3
  • 24
  • 22
1
2 3
99 100