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
51
votes
3 answers

Emacs: Failed to verify signature archive-contents.sig

Recently tried to update emacs packages and got this. Failed to verify signature archive-contents.sig: No public key for 066DAFCB81E42C40 created at 2019-10-02T10:10:02+0100 using RSA Command output: gpg: Signature made Wed 02 Oct 2019 10:10:02 AM…
Yuki
  • 3,857
  • 5
  • 25
  • 43
50
votes
1 answer

Changing name/comment on GPG key/uids without losing signatures?

Over the years I've accumulated a few keys. When I generated them, and when I added various uids to them, I didn't use the 'comment' feature wisely. At this point I would like to correct that and update just the comment field on each of the uids --…
RoUS
  • 1,888
  • 2
  • 14
  • 29
47
votes
4 answers

Is there a way to gpg sign all previous commits?

As the title says, I'm looking for a way to gpg sign all my previous commits in a repository (preferably without typing in my passcode for every commit).
pradyuman
  • 1,089
  • 2
  • 14
  • 20
47
votes
3 answers

Is there a good GnuPG encryption library for Java/Scala?

I would like to be able to encrypt files on disk and/or data in memory using GnuPG from a Java application. If possible I'd like to avoid having to make system calls out to the GPG command line tools. Is there a recommended library, or can you…
James Shade
  • 653
  • 1
  • 6
  • 8
47
votes
16 answers

How to make auto trust gpg public key?

I am trying to add my GPG public key as a part of our appliance installation process. The purpose of it to encrypt any important files like logs before admin pulling them into his local using admin portal and then decrypt them using private key. The…
user1366786
  • 991
  • 4
  • 9
  • 19
44
votes
9 answers

How to do PGP in Python (generate keys, encrypt/decrypt)

I'm making a program in Python to be distributed to windows users via an installer. The program needs to be able to download a file every day encrypted with the user's public key and then decrypt it. So I need to find a Python library that will let…
Greg
  • 45,306
  • 89
  • 231
  • 297
42
votes
3 answers

Generating a GPG key for git tagging

I'm trying to create signed tags in GitHub using the git command line. I generated a GPG key with a (sample) username Full Name (skytreader) . Having done that, I try to create a signed tag. However I get the following…
skytreader
  • 11,467
  • 7
  • 43
  • 61
41
votes
4 answers

gpg: Sorry, no terminal at all requested - can't get input

When decrypting I get following error: $ eyaml decrypt -s 'ENC and the key goes on here' .gnupg --quiet --no-secmem-warning --no-permission-warning --no-tty --yes --decrypt) failed with: gpg: Sorry, no terminal at all requested - can't get input I…
40
votes
4 answers

where can I find the public key for Gnu Emacs?

I have used emacs for only half a year from 23.1 to 23.3. Every time I tried to find gpg public key for emacs so that I could check tar.gz package with tar.gz.sig released with every new version, I failed. It seems I should fetch public key first,…
sfszh
  • 668
  • 1
  • 6
  • 8
40
votes
7 answers

Avoid gpg signing prompt when using Maven release plugin

I've got a Maven project that I'm trying to configure to use the maven release plugin. Part of the release process is to use the Maven GPG Plugin to sign artifacts which requires among other things, the GPG signing key passphrase to succeed. …
Nick
  • 8,181
  • 4
  • 38
  • 63
39
votes
1 answer

How do I encrypt plaintext with GnuPG?

I've been working a great deal with GnuPG lately and have come to depend on its ability to encrypt files, etc. However, I am currently working on a couple of projects that involve communication (i.e. chat,email, etc) where I'd like to use existing…
humble_coder
  • 2,777
  • 7
  • 34
  • 46
39
votes
2 answers

How do I verify a gpg signature matches a public key file?

I know how to use gpg verify like this: $ gpg --verify somefile.sig gpg: Signature made Tue 23 Jul 2013 13:20:02 BST using RSA key ID E1B768A0 gpg: Good signature from "Richard W.M. Jones " gpg: aka "Richard W.M.…
Rich
  • 926
  • 1
  • 9
  • 17
38
votes
2 answers

Sign git commits with GPG

Is there a way to sign git commits with gpg? It's so easy with tags (using -s instead of -a), it seems there would be a similar function for commits.
austin1howard
  • 4,815
  • 3
  • 20
  • 23
37
votes
5 answers

How to retain commit gpg-signature after interactive rebase squashing?

When I want to squash some commits by interactive rebase: git rebase -i HEAD~3 And then: pick cbd03e3 Final commit (signed) s f522f5d bla-bla-bla (signed) s 09a7b7c bla-bla (signed) # Rebase c2e142e..09a7b7c onto c2e142e ... The final commit…
Alexander Yancharuk
  • 13,817
  • 5
  • 55
  • 55
36
votes
4 answers

Why is the GnuPG-sign checkbox disabled in SourceTree?

Using Mac OS X Yosemite (10.10), I cannot active GnuPG-signing of commits in SourceTree, as the checkbox is disabled. How can I enable commit-signing?
baoniu
  • 433
  • 5
  • 8