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
10
votes
1 answer

GnuPG/PGP and SSL: Sharing the same private key?

I'm trying to sort out my use of digital signatures and encryption. I understand that there are 2 main ways to do this: the PGP way and the SSL way. What I would like to know if it's possible to use the same private key for both SSL certificate and…
Pedro
  • 1,134
  • 11
  • 26
10
votes
1 answer

gpg-agent in gpg2

I'm attempting to futureproof some custom software that utilizes GPG (currently v 1.4.10) to perform symmetric encryption/decryption processes. My current encryption command looks like this: gpg --batch --no-tty --no-use-agent --symmetric…
Frank Koehl
  • 3,104
  • 2
  • 29
  • 37
10
votes
2 answers

gpg: keyserver receive failed: No route to host stack overflow

i'm trying to install fastlane for my ios app but when i'm trying to install RVM, i'm facing issues. My command is gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113************* 7D2BAF1CF37B13E2069D69561*************
Mohit Tomar
  • 5,173
  • 2
  • 33
  • 40
10
votes
2 answers

Avoiding problems with gpg-agent when running from scripts - gpg2

I'm trying to use gpg to --clearsign a file (for debian packaging purposes) from a script. I have an exported password-less private-key.gpg file and want to: gpg --clearsign -o output input I don't want to mess with the current user's ~/.gnupg or…
Peter V. Mørch
  • 13,830
  • 8
  • 69
  • 103
10
votes
3 answers

Clear GPG Cache/Password after Encryption in Linux Terminal

I am very annoyed with the GPG encryption process in the Linux terminal, I encrypt files with GPG from the terminal with the following command: gpg --output file_out --symmetric --cipher-algo AES256 file_in This command has been recommended here…
Gabrielf1
  • 157
  • 1
  • 2
  • 5
10
votes
1 answer

Change the binary that Git uses to invoke GnuPG for signing commits?

I'm signing my commits in Git using GnuPG. I'd prefer it greatly if Git would use /usr/bin/gpg2 rather than /usr/bin/gpg for signing commits for some compatibility reasons. Is there a Git configuration setting which will allow me to set which GnuPG…
Naftuli Kay
  • 87,710
  • 93
  • 269
  • 411
10
votes
4 answers

How to set the GnuPG home directory within the GnuPG Python binding?

When trying to initialize the GnuPG binding in Python, I'm getting an error message TypeError: __init__() got an unexpected keyword argument 'gnupghome' This is the code I'm running: import gnupg gpg =…
Samson Yerraguntla
  • 101
  • 1
  • 1
  • 7
10
votes
5 answers

Batch file script to remove special characters from filenames (Windows)

I have a large set of files, some of which contain special characters in the filename (e.g. ä,ö,%, and others). I'd like a script file to iterate over these files and rename them removing the special characters. I don't really mind what it does, but…
njr101
  • 9,499
  • 7
  • 39
  • 56
10
votes
1 answer

Using GPG with org-mode

What I want is to be able to make a 'heading' under which I can have encrypted data. I should be able to have multiple headings within the same file in emacs. I had this working, but unfortunately I don't remember what I needed to do in order to…
notablytipsy
  • 387
  • 1
  • 4
  • 19
9
votes
1 answer

gpg --export-secret-keys

Whenever I decrypt a file with gpg, I get asked for my passphrase. E. g. gpg -d File.gpg However I can export my private key without getting asked for my passphrase: gpg --export-secret-keys --armor --output SecretKeysFile.asc Is the exported…
user1032774
  • 91
  • 1
  • 1
  • 2
9
votes
2 answers

verify gpg signature without installing key

How do i verify a gpg signature (cli or w/ node js) without installing the public key? i do have the public key but don't want to add it to the keyring. Any hints? Thanks, Florian
Florian
  • 3,145
  • 1
  • 27
  • 38
9
votes
0 answers

GPG Suite remember password indefinitely

I'm using GPG Suite with macOS Monterey, in order to save a GPG key's password, so that I can make verified git commits. Problem: Currently every time I make a verified commit (git commit -S -m "Commit message") for the first time every day, I am…
Thanasis M
  • 1,144
  • 7
  • 22
9
votes
1 answer

Using python-gnupg to decrypt file encrypted with gpg

I have a process that is creating a symmetrically encrypted file with gpg: gpg --batch --passphrase=mypassphrase -c configure.txt I can decrypt the encrypted file using gpg just fine with any user so long as I have the passphrase. This is as…
Trapperb
  • 91
  • 1
  • 1
  • 4
9
votes
1 answer

PGP key armored encoding in Go's openpgp package

I am trying to print a PGP public key in an ASCII armored encoding using Go's openpgp/armor package. The output I would expect: -----BEGIN PGP PUBLIC KEY BLOCK----- -----END PGP PUBLIC KEY…
max
  • 677
  • 1
  • 9
  • 34
9
votes
1 answer

(gnupg) Which is the public and which is the private key in this pair?

I need to generate a PGP Public/Private key. I've never done this before. I've read documentation but the examples given do not match what I am seeing on my computer. I generated the keys with gnupg. I run the command to list the public keys gpg…
AnonyMouse
  • 432
  • 8
  • 24