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

Gradle signArchives unable to read Secret Key

I am trying to publish my Java Library to Maven Central. A part of this involves using the signing gradle plugin to sign the artifacts. I need to sign it without using the keyring file as document here as I cant provide my CI secure access to the…
Eduardo
  • 6,900
  • 17
  • 77
  • 121
14
votes
6 answers

gpg "failed to write commit object"

I'm trying to enable commit signing on OS X Mojave. git commit -S -am "Test" The error is: error: gpg failed to sign the data fatal: failed to write commit object What I tried: gpg works fine (see below), did not install gpg1 or gpg2 Installed…
Alex Buznik
  • 686
  • 1
  • 6
  • 26
14
votes
3 answers

GPG key exists in the list?

I want to create a shell script and I haven't worked with it before. There is a command for gpg: gpg --keyserver SERVER --recv-keys KEY The problem is that I don't want to run this command if key has been already added. Is there any method to…
LosYear
  • 423
  • 2
  • 6
  • 14
14
votes
4 answers

Android Source Repo GPG public key not found

I am running Linux Mint 14 and trying to download the android source. I followed the instruction for setting up the environment and when I was trying to get the source with repo, I got the following error. ... * [new tag] v1.9.4 ->…
YTKColumba
  • 4,023
  • 4
  • 19
  • 21
14
votes
3 answers

Git: Is it possible to fake the signing date of a tag?

As a scientist I would like to keep some official record of the time I check something into my Git repository. This in order to later back up claims of who invented what first during for instance patent disputes. At the moment I from time to time…
Marijn van Vliet
  • 5,239
  • 2
  • 33
  • 45
13
votes
2 answers

How do I set an environment variable dynamically when using poetry shell?

When I activate a virtual environment via poetry shell, GPG signing gets messed up because $GPG_TTY is set for the parent shell. So every time I use poetry shell I have to do GPG_TTY=$(tty). Is there a way to do this automatically? Ideally I would…
willclarktech
  • 197
  • 1
  • 2
  • 11
13
votes
5 answers

BouncyCastle: Android: Unsupported class file major version 59. Failed to transform bcprov-jdk15on-1.67.jar (org.bouncycastle:bcprov-jdk15on:1.67)

I want to use BouncyCastle for GnuPG encryption (want to get .gpg file) in android. But I am getting this error.(Unsupported class file major version 59. Failed to transform bcprov-jdk15on-1.67.jar (org.bouncycastle:bcprov-jdk15on:1.67) ) My gradle…
13
votes
3 answers

Problem installing rubys with rvm because of missing public key

Yesterday I tried to install a ruby or update rvm on Ubuntu, today on mac os, and I failed in the same place on both: $ rvm get head Downloading https://get.rvm.io Downloading…
bjelli
  • 9,752
  • 4
  • 35
  • 50
13
votes
3 answers

Bruteforce GPG passphrase using script

I have forgotten my passphrase for my gpg key on linux. Can someone please help me write a simple script to use bruteforce to crack the key? I remember some of the words which MIGHT be in the passphrase, so hopefully, it will not take long for my…
oshirowanen
  • 15,297
  • 82
  • 198
  • 350
13
votes
4 answers

How to use GnuPG inside Docker containers, as it is missing entropy?

I need to dockerize an apt repository. The packages in it need to be signed, which is currently done by aptly publish snapshot -distribution="stable" -gpg-key="" my-snapshot Before that a key needs to be created using gpg --gen-key. But…
Michael Ivko
  • 1,232
  • 3
  • 13
  • 23
13
votes
2 answers

How do I get the maven-gpg-plugin to use a passphrase from environment variable or command line property?

I've seen: Avoid gpg signing prompt when using Maven release plugin but it's for a very old version of maven, and I'm using 3.2.2, so the same solution doesn't apply. Basically, no matter what combination of properties on the command line,…
BeepDog
  • 5,016
  • 2
  • 24
  • 33
12
votes
3 answers

Git commit failed : Couldn't load public key

I cannot commit to git . Every time I try it shows this message. error: Couldn't load public key 632EA751459C3A1A: No such file or directory? fatal: failed to write commit object I'm using Gpg4Win.
Dinuka Dilshan
  • 552
  • 6
  • 12
12
votes
1 answer

apt-key command works on shell but fails on Dockerfile

The following command seems to work when running it in a shell apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF but fails when executed in a Dockerfile as follows: Warning: apt-key output…
pkaramol
  • 16,451
  • 43
  • 149
  • 324
12
votes
3 answers

What is the public URL for the GitHub GPG keys

Is there a simple endpoint for retrieving a users gpg public key? For SSH keys, github.com/.keys, is there something similar for gpg keys? Related: What is the public URL for the Github public keys
cdignam
  • 1,376
  • 1
  • 15
  • 21
12
votes
3 answers

Exporting public key from GnuPG fails with "WARNING: nothing exported"

Im new to PGP and I'm trying to generate a PGP private key using GnuPG through this tutorial. Basically, I have type the following command in command prompt (in administrator mode): gpg --gen-key Entered all the commands as below: Then I entered…
AshT
  • 535
  • 1
  • 8
  • 20