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
22
votes
4 answers

GnuPG 4096 bit limit

Why is RSA keys in GnuPG limited to 4096 bits? Would it be illegal for me to modify the source to increase the max size? ssh-keygen does not have this limitation (e.g., I can create a key that's 32768 bits long). Why is that?
Arlen
  • 6,641
  • 4
  • 29
  • 61
22
votes
1 answer

visualize the GnuPG web of trust

Is there some way to visualise the GnuPG web of trust? With my (or any other) key in the middle, with the signed keys in the first circle, the trustpersons' trustpersons in the next and so on? If there is nothing like that, I should be able to build…
Martin Ueding
  • 8,245
  • 6
  • 46
  • 92
22
votes
3 answers

gpg2 command not found even when gpg2 is installed on mac? (trying to install rvm)

So I installed brew: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" and then I installed gnupg2 and gnupg like so: brew install gnupg gnupg2 I tried to install both again seperately like so: brew…
Jay Patel
  • 317
  • 1
  • 2
  • 5
22
votes
2 answers

Prevent GPG password prompt on Mac

I am attempting to generate a gpg for Github as detailed here: https://help.github.com/articles/generating-a-new-gpg-key/ I have generated the key and setup both ~/.gitconfig and my local .git/config to include [user] email =…
Austin
  • 1,122
  • 2
  • 10
  • 27
22
votes
15 answers

GnuPG - How to edit the file without decrypt and save to local disk first?

I'm using GNUPG to encrypt my ascii files. I learnt to generate a key, also how to use the it to encrypt and decrypt a file. There are two ways I used: gpg -d foo.txt.gpg and gpg --output foo.txt --decrypt foo.txt.gpg I realized the first method…
Dean
  • 1,103
  • 4
  • 17
  • 29
21
votes
3 answers

How can I manage keyring files in trusted.gpg.d with ansible playbook since apt-key is deprecated?

Before apt-key was deprecated, I was using Ansible playbooks to add and update keys in my servers. At the moment, apt-key no longer updates the keys. In few searches, I found that I need to use gpg now. However, I have many servers and I don't want…
ecemnaz
  • 311
  • 1
  • 2
  • 3
21
votes
3 answers

Could not make my second mail's commits as "verified" on GitHub

Currently, I use 2 emails, (Personal + Company) with one SSH key to log in to GitHub. But I use the same GPG key for signing. Both are verified on my GitHub Email Settings page. On the first one (personal), no issue, when I do a commit it appears as…
Dentrax
  • 574
  • 8
  • 22
21
votes
2 answers

Subversion HTTPS password caching using GPG-Agent?

I am using the Subversion client (version 1.9.5 r1770682, installed from the default package repository) on a Debian Stretch machine, to which I only have SSH access. I am connecting to a Subversion repository via HTTPS and would like to avoid…
ngj
  • 883
  • 7
  • 17
21
votes
3 answers

IntelliJ fails to commit changes when attempting to sign commit (GPG)

I have been working on setting up my development environment, so when I create a commit it is automatically signed by GPG. I followed Githubs documentation on the matter here: https://help.github.com/categories/gpg/. I am attempting to use…
Ryan W
  • 251
  • 2
  • 9
21
votes
5 answers

decrypt multiple OpenPGP files in a directory

I have several hundred gpg encrypted files in a directory, of the format filename.xyz.gpg where "xyz" is some arbitrary extension. I need to decrypt all of the files to generate filename.xyz decrypted in such a way that I don't have to manually…
user1815498
  • 1,239
  • 6
  • 20
  • 23
20
votes
2 answers

problems installing openvpn client

following the instructions on the official vpn page (instructions install openvpn client) in the second step: # curl -fsSL https://swupdate.openvpn.net/repos/openvpn-repo-pkg-key.pub | gpg --dearmor >…
grafeno30
  • 479
  • 1
  • 5
  • 17
20
votes
4 answers

How do you verify an encrypted and signed file with gpg?

I am trying to get a better understanding of what is going on with gpg. If you have a file and sign it: gpg --sign file.txt you can verify it with: gpg --verify file.txt.gpg when you get a successful output: gpg: Signature made... But when you sign…
Eric Stermer
  • 959
  • 1
  • 12
  • 23
20
votes
3 answers

Trying to sign commits on git using gpg on WSL but does not work

I have recently tried the Windows Subsystem for Linux lately and as I was attempting to sign my git commits with a recently generated GPG key it spewed out, verticalfile30@DESKTOP-U284V9I:~/cpo/wsltest$ git commit -S -m "gpg signing" error: gpg…
Verticalfile30
  • 303
  • 1
  • 2
  • 7
20
votes
2 answers

How do you use the PHP OpenPGP library?

There is a PHP extension port of the gnupg PGP library. However, I'm having a hard time finding examples that explain how to use the library. How do you properly create keys for application users, and then use them to encrypt/decrypt text using the…
Xeoncross
  • 55,620
  • 80
  • 262
  • 364
19
votes
2 answers

gpg: error reading symlink '/proc/curproc/file': No such file or directory

Every time I sign something, it display the next error: ➜ ~ echo "test" | gpg --clearsign gpg: error reading symlink '/proc/curproc/file': No such file or directory gpg: using "8D5850D90161A3C94B9985084F40757FE4E85476" as default secret key for…
ofou
  • 311
  • 2
  • 10