Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [gnupg]

GNU Privacy Guard (GnuPG or GPG) is a GPL Licensed alternative to the PGP suite of cryptographic software. GnuPG is compliant with RFC 4880, which is the current IETF standards track specification of OpenPGP.

2
votes
1answer
57 views
+100

Sign only using GpgOL in Outlook

I currently have the Outlook plugging GpgOL which lets me encrypt/sign emails using an OpenPGP encryption key. Is it possible to somehow remove the encryption option or somehow hide the encryption ...
0
votes
0answers
16 views

Kleopatra not connecting to keyserver

I was trying to follow this tutorial (Bitzuma How-to) to verify the PGP key of a piece of software. I therefore installed GPG4Win (version 3.1.5) from their website which worked without a problem. I ...
0
votes
0answers
5 views

Do I need to verify PGP signature if I clone and download a release from a GitHub repository?

Just downloaded a source of Apache ant from GitHub. As it was providing the latest version (10.5) the stable version is not released yet. It's in incubation. So do I need to verify the checksum and ...
1
vote
1answer
33 views

GnuPG package: Difference between pgp and gpg

I feel there's a not much of general user friendly content on the internet about GnPG and it's utilities. At least I couldn't find any to my satisfaction. It's probably because people (except ...
0
votes
0answers
23 views

is it safe to keep ssh keys encrypted with gpg in git?

I found myself switching a lot of computers so I thought of making a small sh file to move my ssh keys around for faster configurations: tar cvzf archive.tar.gz -C ~/.ssh . gpg -c archive.tar.gz rm ...
1
vote
2answers
58 views

How to get original file size from GPG-encrypted file?

I have a large file encrypted with GPG and I also have the key to decrypt it. How can I get the size (in bytes) of the original unencrypted file, without actually decrypting the whole encrypted file?
1
vote
1answer
43 views

How can I do asymmetric encryption on the command line, without relying on installed keyrings, etc.?

My home computer consists of a VMWare host running Linux Mint, and a number of VMWare clients. I run backups every night that compress my VHDs to a removable hard drive. I'd like to encrypt the ...
1
vote
1answer
25 views

Are uids tied to the GPG primary key too?

I'm playing around with GPG (v2.2.8), trying to get a primary/master key with subkeys and several uids attached. To get to the point I'm at, I: Created the master key and gave it only (C)ertify ...
0
votes
1answer
30 views

Look “inside” a GPG key block?

PGP/GPG keys have those begin and end lines, and are encoded with something like base64 (radix-64 apparently). But what exactly is inside the data block? Are there some tools for how to display the ...
0
votes
0answers
27 views

Is it possible to reduce the expiry date of public key in gpg?

If I created a GPG public key with an expiration after 10 years and later I wanted to reduce it to 5 years, is it possible? Also, if I already published the key to a key server, how to make changes ...
1
vote
1answer
59 views

gpg - difference --encrypt-to and --recipient

What is the difference between --encrypt-to and --recipient and what are the advantages and disadvantages of using one over the other, which one should you use for encrypting your own files and what ...
2
votes
1answer
73 views

Unable to delete private subkeys in GnuPG if no master key present

I have a GnuPG key pair with a master key (only Certify capability) and 3 subkeys (Sign, Encrypt and Authenticate capabilities respectively). Actually, when I start, I only have the private keys of ...
0
votes
3answers
21 views

I forgot what I used to encrypt a file, what can I do?

I have a file I'm needing to decrypt, but my operating system was reinstalled and I don't remember which software I should use to decrypt it. Fortunately, the data is still preserved, including what I ...
0
votes
0answers
71 views

gpg-agent fordwaring on Windows using Gpg4win and PuTTY

I managed to get SSH forwarding to a Linux guest from a Windows 10 host using Gpg4win and PuTTY. I can successfully use my private key stored on an GnuPG smartcard connected on my host to login to ...
0
votes
0answers
282 views

Convert GPG private key to QR code?

How can I generate a QR code from a OpenPGP/GnuPG private key on Windows 7? Context: I created a private key pair on a Windows computer and want to import the key to my phone. The phone app has ...
2
votes
1answer
53 views

GPG suite decrypted file is 0 byte

I have a file encrypted with GPG suite 2 years ago... I need it now and tried to decrypt it but the resulting zip file is 0 bytes :(( What does that mean ? I also tried the CLI and Im getting gpg: ...
1
vote
1answer
64 views

How to convert gpg4win's binary to ascii, with Notepad++

I can reliably convert gpg4win's ascii to binary using Notepad++ option "Base64 Decode" (credit: James K Polk). Works every time. But when I attempt the reverse, i.e. convert binary to ascii, it ...
0
votes
0answers
29 views

How to set defaults for gpg4win/Kleopatra

When encrypting a file with ggp4win/Kleopatra, some options are checked by default. See screenshot below: Is there a way to have a different set of boxes checked automatically?
0
votes
1answer
57 views

Unable to edit the trust using gpg and a command file

I am trying to write a plugin to my build tool which wraps GnuPG. I have managed to do everything so far but the one thing I am stuck on is how to trust a newly added key without affecting the trust ...
0
votes
1answer
59 views

How to convert gpg4win's ascii to binary?

gpg4win can save and read encrypted files in two forms: Binary with .gpg extension Base64/ascii with .asc extension Is there a way to convert the Base64/ascii output to binary? I tried with Notepad+...
3
votes
1answer
348 views

What do 'ssb' and 'sec' mean in gpg's output?

When listing keys with gpg2 --list-secret-keys, one is presented with a bunch of lines that begin with sec and ssb. What do these mean?
0
votes
2answers
78 views

gpg-zip using secret key sign a zip

I have the following problem. I created a Key-Pair with Thunderbird (Engimail), then I exported the asc file, and importet it in the git bash to gpg. Now I need to sign a zip. Using the command: ...
0
votes
0answers
17 views

Backinpg up GnuPG data

Let's say I want to backup the minimum amount of information with respect to my current setup. I have one RSA public-private keypair generated on my computer and I want to backup this data so that I ...
1
vote
0answers
116 views

gnupg keyserver configuration

I am on macOS, running gpg (GnuPG) 2.2.10. I am trying to use hkps://hkps.pool.sks-keyservers.net as my keyserver. Since keyserver option for gnupg is deprecated, I add this to ~/.gnupg/dirmngr.conf: ...
1
vote
1answer
56 views

How to verify sks-keyservers HKPS certificate?

I’m trying to make sense of how PGP is supposed to be used securely, but coherent and helpful information on the subject is surprisingly hard to find. So, SKS keyservers provide their HKPS ...
1
vote
1answer
447 views

Decrypt and encrypt a file using gpg without re-typing the passphrase

[Notice: my problem is similar to this. And related to this] Basically I want to edit a symmetrically encrypted filed and then encrypt it again using the same passphrase, without the need to retype ...
1
vote
2answers
218 views

How to delete public key by fingerprint?

In my pubring.gpg I have two users with the same email address, but one of the entries is not valid anymore. How one can delete one of them?
1
vote
0answers
65 views

How do I avoid all passphrase prompts for GPG2's asymmetric decryption?

I've made my own program which utilizes gpg for encrypting and decrypting (both symmetric and asymmetric). It works fine with gpg1 on all accounts, and it works fine with gpg2 for both kinds of ...
0
votes
1answer
102 views

How to make GPG run pinentry on the correct TTY, not just the most recently opened one?

I have export GPG_TTY=$(tty); gpg-connect-agent updatestartuptty /bye; in my .profile so that GPG knows which tty to use when running pinentry. The issue is that this causes pinentry to start on ...
0
votes
0answers
88 views

Signing a message with a SmartCard / Yubikey

So I've gone through a pretty bog-standard GPG-key-setup process, and then used addtokey to move said keys onto a Yubikey 4. Now, on a fresh setup, I want to try and use those keys, to sign something....
1
vote
1answer
21 views

How to show information about revocation in key listing

I need private key listing to show the revocation status I tried these two commands gpg -K gpg --with-colons -K But neither listing says which keys has been revoked Is there a list command that ...
0
votes
0answers
428 views

gpg --decrypt not asking for password and just decrypting, why?

So I encrypt a file using symmetric AES encryption with gnupg 2.2.9: gpg -a --symmetric myfile # This produces myfile.asc as its output I am prompted for a password and enter it. The -a option ...
0
votes
0answers
17 views

What is the meaning of ID in gnupg's decrypt error message?

When I do this: gpg --decrypt filename.gpg I get the following error: gpg: encrypted with RSA key, ID 3662FD5E gpg: decryption failed: No secret key This question says that I can verify if this ID ...
0
votes
1answer
47 views

How to track the password-store in git

I have started using pass, which creates a .password-store directory, with some .gpg files. Strangely enough: » git status On branch master nothing to commit, working directory clean Right after ...
8
votes
1answer
826 views

How to resolve the error: gpg: bad data signature from key: Wrong key usage (0x19, 0x2)

When I run gpg --keyid-format LONG -K I am seeing the following output. Private information replaced with upper case values. gpg: bad data signature from key PROBLEMID: Wrong key usage (0x19, 0x2) /...
0
votes
0answers
29 views

gpg2 mute the err output

It seems the usual way to supress the output of a command in linux is not working for gpg2: $gpg2 -d my_file.gpg 2>/dev/null still outputs some data through stderr. So could some try to find out ...
0
votes
0answers
85 views

Find command script, gpg decryption, and proper shell path

I wrote a script to encrypt and decrypt symmetrically with find, gpg and inotify. paste a file to samba server, I rename it Encrypted-*, inotify triggers find & runs the commands, encrypts, ...
1
vote
0answers
117 views

How to globally disable update checks via gpgconf file on Windows?

What I want to do: We deploy gpg4win automatically and need to adjust some options. Currently I use a startup script to create and edit configuration files below the users %appdata% folder directly. ...
2
votes
0answers
303 views

gpg - Backing up private keys

Having created my keys using gpg --full-generate-key I want to export the keys for back-up, and to install them on other machines I use. So, I use gpg -a --export KeyName >KeyName.pub and gpg ...
0
votes
0answers
50 views

Have gpg-agent start with ssh key file when available, falling back to gpg keys?

On linux (Fedora) using bash, I have setup the GnuPG gpg-agent to act as the ssh-agent successfully. When authenticating over ssh, the agent tries the gpg keys first then falls back to the ssh keyfile ...
1
vote
0answers
206 views

How to sign with a specific subkey using GnuPG?

Say I have two subkeys like below. /c/Users/user/.gnupg/secring.gpg --------------------------------- sec 2048R/DC****** 2017-05-25 uid J D <J.D@gmail.com> ssb 2048R/...
1
vote
1answer
795 views

GNUPG2 suddenly throwing “Error building skey array: No such file or directory”

Some context: I'm a maintainer for a project which uses gnupg2 as part of a framework to encrypt data with a PGP public key so it can't be read if our severs are ever breached, my CI script has worked ...
0
votes
1answer
214 views

Able to decrypt previously encrypted messages without passphrase, but can't export GPG private key

I feel really stupid asking this, but why not. I have a bunch of files I encrypted a while ago with a gpg key pair that is password protected. Since then, I've forgotten the password. But the key must ...
0
votes
1answer
210 views

Verifying/decrypt email using PGP signature/public key

UPDATED QUESTION: Using Outlook 2013 64bit on Windows 7 64bit, I have setup GnuPG which allows me to send encrypted emails. To do that, I asked someone for their public key. I sent them an email ...
0
votes
0answers
48 views

Is it possible for the pass utility to use symmetric encryption for a specific directory?

Recently, I've been looking into using the Unix tool pass as my password manager. I've figured out a workflow I'm happy with for handling my passwords and personal info. Now I'm looking into the best ...
0
votes
0answers
27 views

GnuPG passphrase prompt not displaying correctly

I've been using GnuPG for a while and it worked as expected. But recently I tried to export a secret key and the passphrase prompt was not displaying correctly. Just like this: ...
1
vote
0answers
17 views

GPG should fail silently when external card is not inserted, instead of asking over and over

I'm running Linux. I have a Yubikey 4, where my GPG subkeys are stored. On the computer, gpg-agent transparently uses these keys. The problem is when I don't have my Yubikey inserted. If anything ...
0
votes
1answer
111 views

Need a hand with importing new public key

I am a new user of GnuPG. I am very much familiar with concept of public and private keys, as well as Web of Trust after reading The GNU Privacy Handbook and a couple of blogs. Still, I don't how I ...
1
vote
1answer
86 views

how to prevent gnupg from decrypting files automatically?

I'm on OSX 10.13.4, I am learning how to use gnupg from the terminal. I encrypted a file with gpg --cipher-algo AES256 -c input.txt -o output.gpg it asked me for a password, I made one up, the file ...
3
votes
0answers
633 views

How to configure PuTTY + gpg-agent to connect an SSH Linux server

I have a key-pair generated with Kleopatra (from Gpg4win 3.0 suite). I've converted the public key to an RSA ssh key and add it to the authorized_keys file in a Linux box. On the Windows machine I've ...