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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
25 views

GPG: AllowSetForegroundWindow(13116) failed: The parameter is incorrect

I'm trying to generate a key pair in GnuGPG and receiving "GPG: AllowSetForegroundWindow(13116) failed: The parameter is incorrect." Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O We ...
user2073183's user avatar
0 votes
0 answers
36 views

Is it possible to recover a zip file corrupted by GnuPG?

I recently started encrypting a zip file with: gpg --symmetric my_file.zip It was taking a long time - the archive is about 300 MB - and so I decided to cancel the operation part way through. The zip ...
chancellorofpaphos's user avatar
0 votes
1 answer
40 views

GPG: Which key is GPG exactly using for encrypting and decrypting?

Sometime back I installed GPG and been using it to encrypt files and text. Command used to encrypt: gpg -c file.zip > file.zip.gpg Command used to decrypt: gpg -d file.zip.gpg > file.zip Till ...
We are Borg's user avatar
4 votes
2 answers
1k views

Can anyone with the passphrase decrypt a file encrypted with GnuPG plus the symmetric flag?

Say that I own Laptop A. Say that, on Laptop A, I encrypt a file using the command: gpg --symmetric my_file.txt And say that I then install that encrypted file on a USB stick. Now suppose that six ...
chancellorofpaphos's user avatar
0 votes
0 answers
16 views

GPG allows importing an invalid secp256k1 public key

I came across a PGP public key that seems invalid. The key is a secp256k1 public key that supported by GPG. In fact, GPG allows importing that key even if it has an invalid secp256k1 public key inside....
Andreas Tzionis's user avatar
0 votes
0 answers
83 views

How to use OpenPGP smartcard with Avtor CR-371M reader?

I have an OpenPGP card that was setup on a different computer with a different cardreader and is known to work fine for signing emails with GnuPG. Now I am trying to use it on a Windows 10 desktop ...
Roman Riabenko's user avatar
0 votes
1 answer
84 views

I decided that my gnupg key I generated is not okay. I removed the ".gnupg" folder which contained it. Is that enough before generating a new key?

I generated my key with gpg --full-generate-key then it got placed inside the HOME folder's .gnupg folder. I removed the entire .gnupg folder now. Is that enough if I decide to generate a brand new ...
Zoltan King's user avatar
0 votes
0 answers
28 views

GPG: [unknown] in a showpref output?

I'm inspecting my key pair by showpref and get something like this: [ unknown] (1). [email protected] <[email protected]> Cipher: AES256, AES, AES192, 3DES AEAD: Digest: SHA256, ...
playmobilmeister's user avatar
0 votes
0 answers
36 views

How do I tell pass to update my key if `pass init` isn't working?

I am trying to use pass again after a longish lull, and it was (reasonably) complaining that my gpg key was expired. I used the instructions at Can you extend the expiration date of an already expired ...
Amanda's user avatar
  • 272
0 votes
0 answers
77 views

4096 bit key generation on OpenPGP card

What is the corresponding command to create a 4096 bit RSA key on an OpenPGP card via gpg(2) --card-edit? The documentation just indicates --algo=. I tried RSAwith different values like 3072 and 4096 -...
LeifSec's user avatar
  • 63
0 votes
0 answers
41 views

Hide gpg passphrase from process list

I have made a script that lets me edit gpg encrypted files in vim: #!/bin/sh read_password() { printf "Enter passphrase: " stty -echo read password stty echo echo } ...
testing's user avatar
0 votes
1 answer
86 views

Edit symmetrically encrypted file with gpg

I am writing a script that lets the user edit a gpg encrypted file with vim. I have already done it with asymmetric encryption like this: #!/bin/sh # TODO: add support for symmetric encryption if [ $...
Jeff's user avatar
  • 13
0 votes
0 answers
725 views

`gpg: key XXX not found: Not found` when listing public keys

Recently, when doing a gpg --list-keys <email> against my own personal email, I've noticed that GnuPG started giving me a number of errors before proceeding with normal output: $ gpg --list-keys ...
intelfx's user avatar
  • 172
0 votes
1 answer
80 views

Can `gpg --symmetric` produce reproducible output?

Out of curiosity, I would like to know if it possible to use gpg --symmetric in a way that encrypting the same data with the same password (and algorithms) will generate the same output each time. I ...
Gonçalo Ribeiro's user avatar
0 votes
1 answer
87 views

How to sign somebody else's gpg key when master key somewhere else?

Along the same lines as this post, in which they never posted the solution. How to finally do it? What steps to follow to sign somebody else's key? I am just starting to use GPG and run into the same ...
gsal's user avatar
  • 1
1 vote
2 answers
4k views

Unable to update with dnf because of a GPG check FAILED

Since last week I can´t update anything. If I try sudo dnf update, the process starts normally but then I get the following error: error: Verifying a signature using certificate ...
nbneo's user avatar
  • 51
1 vote
2 answers
219 views

GPG keys not working when using su - <user>

I've two accounts on my home machine, one work, one general. Occassionally I want to access my pass password database from my general account whilst logged in as my work user. Problem is I get the ...
James's user avatar
  • 113
1 vote
0 answers
36 views

Recover Kleopatra Notepad

TL;DR Where does Kleopatra store it's notepad, if it does at all ? Where can I find information on the internal notepad feature ? Details Is Kleopatra's notepad stored somewhere ? where ? Kleopatra ...
playmobilmeister's user avatar
1 vote
0 answers
337 views

How can I extend the expiration date of an expired GPG key?

I am trying to extend the expiration date of an expired GPG/PGP key, mainly using the results from this post. My steps look like this : $ gpg --list-keys pub rsa4096 2021-01-01 [C] [expired: 2023-01-...
Pankkake's user avatar
0 votes
0 answers
22 views

Managing signed commits as an organization

We are looking to introduce signing of commits into our company. Currently we are leaning towards using GPG kays, but we can consider SSH if what we want cannot be achieved with GPG. We are using a ...
user avatar
1 vote
1 answer
70 views

Will bad thing happed if i remove an uid from my pgp key?

I added an photo uid to my openpgp keyring a few days ago. If i want to update this image later, do i have to revoke the old one and keep it on the key? I don't want to because it would obviously make ...
Starua's user avatar
  • 13
0 votes
1 answer
90 views

Error on exported gpg secret key from linux to Mac [duplicate]

I have exported a gpg key from linux to Mac. Exporting commands on linux are as follows gpg --export-secret-keys -a test_01.asc gpg --export -a test_01_pub.asc Importing commands on Mac are as ...
user219155's user avatar
0 votes
1 answer
93 views

Adding gpg-exported ssh key to ssh-agent

I exported one authentication key from gpg to a public ssh key (with the --export-ssh-key), now I'd like to add its privat key with ssh-add to be able to clone a repository on github through the ssh ...
TornaxO7's user avatar
0 votes
0 answers
333 views

Kleopatra won't open

Out of the blue Kleopatha just refuses to open, I have dug through the internet and found nothing that works. I ran it as an admin and for some reason it shows in task manager that its there but ...
user avatar
0 votes
0 answers
190 views

Unable to forward gpg agent

My goal is to make commit on a remote server. The problem is when I tried to $ git commit -m "test". It throws error mini-mini-01:~/test$ git commit -m "a" error: gpg failed to ...
Jason Rich Darmawan's user avatar
0 votes
0 answers
48 views

Removing public key from secring file with gpg command (or other)

I have a secring.gpg file that contains a mix of secret keys and public keys. Which I guess is wrong. It causes a problem when running a java program using the BouncyCastle library: org.bouncycastle....
tyrone copex's user avatar
0 votes
1 answer
129 views

GnuPG and TPM : IPC error

Ι installed the latest version of gpg in manjaro OS: $lsb_release -a LSB Version: n/a Distributor ID: ManjaroLinux Description: Manjaro Linux Release: 22.0.4 Codename: Sikaris and test tpm ...
111's user avatar
  • 121
1 vote
1 answer
75 views

Is situation (with GPG) possibly a malware attack?

I am taking care of an ubuntu server (22.04) and suddenly I was not able to access some files via FTP. I checked a few things and noticed a gpg root process consuming a lot of CPU. It kept restarting ...
Jorge's user avatar
  • 121
0 votes
2 answers
207 views

Is there a way to import PGP keys *interactively* using GPG?

I'm using PGP since version 2.3a, and I had liked the interactive user interface of it. Specifically when opening a file with PGP keys, PGP asked me what I want to do with it, allowing me to confirm ...
U. Windl's user avatar
  • 514
0 votes
0 answers
20 views

GPG fails to prevent me from signing a file with a subkey with no sign capability

I'm learning GPG, I've created a primary key and subkeys for different usage on an air-gapped laptop. Then I've successfully transfered the subkeys to my dirty laptop. When I try to sign a file with --...
lefuturiste's user avatar
0 votes
0 answers
392 views

gpg --pinentry-mode loopback too much data for the ICP layer in CLI (non-gui) mode?

When I use X11 GUI mode, I can enter my passphrase through the prompt without errors: 'gpg -d <my encrypted file>'. However, when I try the same from a CLI (windowless mode) specifying pinentry-...
John McGreen's user avatar
1 vote
1 answer
450 views

aws-vault: prompt for pass password if necessary

I'm using pass as a backend to aws-vault on a remote machine and it seems like I need to manually add the "password" for the profile into gpg-agent before aws-vault can make use of it. ...
Keltek's user avatar
  • 111
1 vote
1 answer
838 views

KWallet Error when attempting to decrypt the wallet ... Inappropriate ioctl for device

Whenever I try to open something that needs access to KWallet (e.g. Browser), this dialog box pops up: I've read elsewhere that to fix this you need to set the GPG_TTY environment variable to $(tty), ...
iamkneel's user avatar
  • 133
0 votes
0 answers
192 views

Generate GPG key on Windows 10 gives error message

gpg --generate-key This is the error message I'm getting: We need to generate a lot of random bytes. It is a good idea to perform some other action (type on the keyboard, move the mouse, utilize the ...
user avatar
5 votes
2 answers
739 views

How do I get thunderbird to use my gpg keyring?

Since the latest "improve"ments to Thunderbird, I now have two different gpg keyrings instead of just one. How can I get Thunderbird to use the gpg keyring in ~/.gnupg, instead of its own ...
enigmaticPhysicist's user avatar
1 vote
0 answers
190 views

Thunderbird keeps asking PGP key

Since this morning, Thunderbird keeps asking « Please enter the passphrase to unlock the openPGP secret key ... » in a popup every ~30 seconds. I don't really remember what I did to trigger that. Now ...
Laurent Claessens's user avatar
0 votes
2 answers
658 views

Remembering gpg passphrase in Win 10 and Ubuntu

What can I do to forget about typing the passphrase again and again for the commits? There's this answer about Kleopatra, but apparently the UI has changed and there's no option for cached passphrase.
Lippiece's user avatar
0 votes
1 answer
108 views

How come, after editing my GPG key multiple changes, it is still working for file decryption?

In this GPG key of mine, I have / at the time of reading likely have had an unfortunate photo: I am still undecided what picture (if any) to put in there, likely this one: No matter which one I end ...
Vlastimil Burián's user avatar
1 vote
1 answer
711 views

Why can't I sign a friend's GPG key, even though I can sign git commits and messages just fine?

I'm trying to sign someone's GPG key, and keep getting a strange error: # for example $ gpg --sign-key [email protected] pub rsa2048/DBD2CE893E2D1C87 created: 2017-06-27 expires: never ...
c-x-berger's user avatar
0 votes
0 answers
140 views

How to solve "gpg: symmetric encryption of `[stdin]' failed: Broken pipe"?

I'm getting the following error when I've tried to rub backup to the SFTP server: gpg: iobuf_flush failed on close: Broken pipe gpg: symmetric encryption of `[stdin]' failed: Broken pipe The Google ...
Eliaor360's user avatar
0 votes
0 answers
173 views

Migrated GPG key does not allow decrypting GPG file

I migrated from Windows 10 to Ubuntu 22.04. I exported my private GPG key doing this from Windows: gpg --export-secret-keys KEY_ID_HERE > private.key Then imported it into Ubuntu doing: gpg --...
Álvaro Franz's user avatar
0 votes
0 answers
102 views

SSH keys derived from GPG keys on YubiKey seem incorrect

I have a yubikey with ED25519 certificates on it. The keygrip of the authentication key is 7AE7F1D55730AEA2A0C4276C345E197B0EFA093A When I run gpg --export-ssh-key {key_name} it returns ssh-ed25519 ...
Desultory's user avatar
  • 198
0 votes
2 answers
1k views

Unable to use Windows OpenSSH agent with GPG Agent and Yubikey

I have a Yubikey which has ed25519 certificates loaded onto it. One of these is an authentication certificate. I'm able to export the sha has of this by running gpg --export-ssh-key {key_id}, and ...
Desultory's user avatar
  • 198
2 votes
2 answers
2k views

How to Verify Fingerprint of a .gpg File

I was following this instruction to install VirtualBox on my Ubuntu 20.04 LTS machine. As per instruction I registered the public key: wget -O- https://www.virtualbox.org/download/oracle_vbox_2016.asc ...
Tando's user avatar
  • 35
1 vote
0 answers
116 views

Trigger graphical password prompt from a cron job

I have a few script to automate linux system backups with Borg. But those script need me to input a password through pinentry (gpg password prompt), in order to unlock my SSH key or the backup ...
Aeredren's user avatar
1 vote
1 answer
147 views

GPG: notify before password prompt in terminal

I use GPG to encrypt a file in a shell script (in Linux). The file to be encrypted is created for a long time, so the script is executed in background, and I don't see when the password prompt is ...
Canis Lupus's user avatar
0 votes
1 answer
174 views

How to re-install of GPG4win and start from scratch?

It appears that I used GPG4win many years ago. Now I want to use it again -- with no relationship to any earlier use, which I do not care about. I want to verify electrum.exe via ThomasV's signature. ...
Cab's user avatar
  • 1
0 votes
1 answer
214 views

GPG: Which password should be used to sign key?

I am learning to use GPG. I have made a keypair with the password "a" to make sure that I cannot mistype the password. Immediately after making it, I entered gpg --edit-key id gpg> fpr ...
Mikke Mus's user avatar
  • 153
0 votes
1 answer
1k views

How to generate secring.gpg from pubring.kbx?

I have a legacy software that works fine with older gnupg, however, we are attempting to update gnupg used. The older version of gnupg creates the secring.gpg, but this new version create pubring.kbx. ...
Rafael's user avatar
  • 1
0 votes
2 answers
1k views

GPG Hanging When Generating a Key

I tried to follow the GitLab instructions to general GPG keys on a MX 21.1 Wildflower (based on Debian 11, codename bullseye) Virtual Box VM (host machine Windows 10). GitLab Instructions I decided on ...
SGM1's user avatar
  • 101

1
2 3 4 5
16