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
34
votes
2 answers

Should I keep gitconfig's "signingKey" private?

I have recently set up GPG to sign my Git commits so now I have a signingKey field in my gitconfig. I'm not very familiar with details of GPG – is this signingKey a sensitive piece of information that I should keep private or does it fall into the…
Milad
  • 4,901
  • 5
  • 32
  • 43
33
votes
3 answers

Git does not ask me for gpg passphrase and fails my commit

When I do git commit -a -S -m "Commit Message", I get this error: You need a passphrase to unlock the secret key for user: "Username (Gpg Key) " 2048-bit RSA key, ID 2487BE7C, created 2016-10-03 error: gpg failed to sign the data fatal:…
Dawny33
  • 10,543
  • 21
  • 82
  • 134
33
votes
4 answers

How to use Gnupg's passphrase-fd argument?

I would like to use GnuPG´s decrypt command without any user interation. The script's --passphrase-fd argument seems exactly what I need. But I don't know how it works - haven't found examples. Could anyone give me an example of such a command, on…
Blackbird
  • 2,368
  • 4
  • 26
  • 41
33
votes
4 answers

How to deal with Gnupg error: gpg: no default secret key: No secret key gpg: [stdin]: clearsign failed: No secret key?

I am getting an error: gpg: no default secret key: No secret key gpg: [stdin]: clearsign failed: No secret key My secret keys are available to GPG.
Cindrella
  • 1,671
  • 7
  • 27
  • 47
31
votes
2 answers

Configure GPG for Git on Windows

I installed Git for Windows including Git Bash on Windows 10 and Gpg4win. By default, I had to re-import all keys I created via Kleopatra into the GPG version built into the Git Bash, and it won't allow me to setup an agent. What I need to do is to…
just.me
  • 2,155
  • 5
  • 16
  • 25
31
votes
2 answers

gpg: WARNING: unsafe ownership on configuration file, $gpg --fingerprint on Ubuntu9.10

I'm getting this error when I run this code. gpg --fingerprint gpg: WARNING: unsafe ownership on configuration file `/home/dylan/.gnupg/gpg.conf The problem seems to be with permissions, but I have tried this code, and it has not seemed to…
Nona Urbiz
  • 4,873
  • 16
  • 57
  • 84
30
votes
3 answers

Disable enter passphrase for each commit

1. Summary I can't disable enter passphrase each time, how I make commit. 2. Environment Windows 10 Enterprise LTSB 64-bit EN, git 2.16.2.windows.1, gpg-agent (GnuPG) 2.2.4, gpg4win 3.0.3. 3. Steps to reproduce I install and set Gpg4win → I move…
Саша Черных
  • 2,561
  • 4
  • 25
  • 71
30
votes
3 answers

Suppress the passphrase prompt in GPG command

Edited Version I have a question about GPG, but I write all of the process, maybe it will help someone. I want to: Suppress the passphrase prompt in GPG command. I don't want to: use -c option (--symmetric). I have 2 systems Linux and Windows. I…
Malus Jan
  • 1,860
  • 2
  • 22
  • 26
29
votes
1 answer

S.gpg-agent.browser not found error while adding ppa in debian strech

I am using debian strech. I try to add repostory for vim with python support , while adding I encountered gpg-agent.browser not found error sudo add-apt-repository ppa:pi-rho/dev [sudo] password for sathish: Dev Packages More info:…
Sathish Kumar
  • 341
  • 1
  • 3
  • 8
29
votes
2 answers

gpg: skipped "N": secret key not available

1. Summary I can not begin to use Gpg4win. 2. Expected behavior Successfully commits. 3. Actual behavior SashaChernykh@DESKTOP-EEOT0TN D:\SashaGitHub $ git commit -m "[Test] gpg4win" gpg: skipped "DBA8E7A2": secret key not available gpg: signing…
Саша Черных
  • 2,561
  • 4
  • 25
  • 71
28
votes
1 answer

Choose which secret key to use when doing a gpg --encrypt --sign

I have multiple secret keys in my GPG keyring. I'd like to do a gpg -e -s -a to encrypt, sign, and ascii armor the output. However, I also need to specify which secret key to use for the signature, by key id.
Dustin Kirkland
  • 5,323
  • 3
  • 36
  • 34
28
votes
3 answers

GPG encryption and decryption of a folder using command line

man page of gpg command line (Gnupg) has commands to encrypt and decrypt files. Here is a standard command to encrypt/decrypt files with gpg. gpg --encrypt --recipient xxx@mail.com ~/xxx/xxx.txt - to encrypt gpg --output ~/xxx/xxx.txt --decrypt…
0928e8f6
  • 383
  • 1
  • 3
  • 4
28
votes
3 answers

Gradle uploadArchives task unable to read secret key

I have created a gradle project and everything builds fine, but when I try to upload to my Maven repository, I get the following Gradle error: FAILURE: Build failed with an exception. * What went wrong: Could not evaluate onlyIf predicate for task…
Jared
  • 1,449
  • 2
  • 19
  • 40
27
votes
6 answers

GnuPG: "decryption failed: secret key not available" error from gpg on Windows

Environment: HP laptop with Windows XP SP2 I had created some encrypted files using GnuPG (gpg) for Windows. Yesterday, my hard disk failed so I had reimage the hard disk. I have now reinstalled gpg and regenerated my keys using the same…
Suresh Ramaswamy
27
votes
2 answers

Best way to soft brute-force your own GPG/PGP passphrase?

I created a nice long passphrase, used it a few times, then forgot it ;) The twist is, I know the general theme and probably almost all of the characters. The perfectionist in me doesn't want to revoke the key or anything like that (and I think I…
Sam Brightman
  • 2,831
  • 4
  • 36
  • 38