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
1
vote
1answer
23 views

Gpg4win keys stuck on failing Windows 10 HDD. What files do I need to extract before it stops working?

My friend's computer was not booting past the bios. He asked me to check it out. I tried to use a recovery USB but sadly chkdsk shows that there are way too many failing sectors on that disk. Booting ...
0
votes
2answers
86 views

apt-get update issue in Kali

I'm running Kali Linux in WSL2. It's a new installation (using wsl --install) but when I try to apt-get update I get the following error: W: An error occurred during the signature verification. The ...
0
votes
0answers
16 views

How can I know if the created GPG key Git Secret key has or doesn’t have a passphrase?

How can I know if the created GPG key Git Secret key has or doesn’t have a passphrase? I have tried comparing the keys, one created without entering the passphrase, and the other with the passphrase, ...
0
votes
1answer
22 views

gpg: only download a key from a keyserver

I have a keyid (648ACFD622F3D138) and keyserver: hkps://keyserver.ubuntu.com. I can download the key and import it with something like: gpg --keyserver hkps://keyserver.ubuntu.com --recv-keys ...
5
votes
1answer
159 views

How to get a PGP RSA key pair with a “rare” fingerprint, e.g. one that begins “ABBA”? (Windows 10)

On Windows 10, how can I automate the generation of PGP RSA key pairs, dumping each one if the 40 hex-character fingerprint doesn't begin ABBA (for example), stopping when a generated pair meets that ...
1
vote
0answers
17 views

duplicity - gnupg - no secret key - no passphrase given

I have a problem with duplicity and gpgnu. Environment (Software): Ubuntu 20.04 gpg (GnuPG) 2.2.19 (from package) libgcrypt 1.8.5 (installed from package) duplicity 0.8.18 (installed manually, since ...
0
votes
0answers
17 views

Gpg behaviour Kali Vs ubuntu

I have a file, say file.txt.gpg, on a kali virtual machine, gpg encrypted with a given password. If I try gpg -d file.txt.gpg the output is: gpg: AES.CFB encrypted data gpg: gcry_kdf_derive failed: ...
0
votes
0answers
18 views

Unable to set a longer timeout in pgp-agent

I use git-2.31.0 with gpg-2.2.27 (I use KDE on ArchLinux), I have configured it with this ~/.gnupg/gpg-agent.conf: default-cache-ttl 43200 But it timeout after 15 minutes, what am I missing?
0
votes
1answer
48 views

Decrypting tar archives with gpg -d, the -d flag does not work

My OS is Ubuntu 20.04.2 lts. I am creating a tar archive from the dir noup1, that contains files and subfolders, with tar cf no1.tar noup1 Encrypt it with gpg -c no1.tar. So now I have a no1.tar.gpg ...
1
vote
1answer
64 views

SSH authentication using gpg-agent and another source for keys?

tl;dr: Is there a way to either disable the persistent import functionality of gpg-agent or work around that to allow using different sources for SSH keys? Situation I use GnuPG 2 keys (on a YubiKey) ...
0
votes
1answer
18 views

TB 78 genreated key cannot be import into gpg

I generated a ECC key then save the private key to file. Then I can import the key to tb78. However, when I try to import it to gpg2, it failed: gpg: key E66BE8B832B7CE7A: "a@example.com" ...
2
votes
1answer
170 views

Unable to complete apt update | GPG Error in Ubuntu 20.04

I decided to do apt update one day and received the following error message. I tried Googling it and trying some fixes without much luck. Wondering if someone has dealt with this before or knows of a ...
1
vote
0answers
38 views

How to make gpg-agent to use socket activation for all gpg command request

I am using arch linux and using the gpg (GnuPG) 2.2.27 I configured gpg with System service at /home/vipin/.local/share/systemd/user/ and using socket activation to start gpg-agent.service gpg-agent-...
0
votes
0answers
83 views

gpg-agent ssh-support throwing sign_and_send_pubkey: signing failed for RSA “(none)” from agent: agent refused

I am using Arch Linux and gpg (GnuPG) 2.2.27. Trying to do a ssh-support with gpg, This i used along with git ssh public key authetication. For that i created a pubic key from gpg. When the socket ...
0
votes
0answers
47 views

Public key won't import in GPG, “no valid user ID”, “unknown algorithm 100”

I received a public key, starting in -----BEGIN PGP PUBLIC KEY BLOCK----- Version: PGP Desktop 10.2.1 (Build 5033) When I --import it, I get (some fields substituted with x) gpg: key CC49xxxxxxxxxxxx:...
0
votes
1answer
45 views

Can not decrypt my gpg file anymore.Any tips?

I have issues decrypting my gpg file. For no reason, i get the following message when I try to gpg -d my encrypted file: gpg: uncompressing failed: Unknown compression algorithm gpg: decrypt_message ...
0
votes
0answers
22 views

gpg --clearsign of latex-based pdf is damaged/corrupted

I am trying to digitally sign a pdf which was compiled in LaTeX. Following the suggestion to use gpg --clearsign given here the output signed pdf is--for some reason--corrupted/damage. Here is a MWE ...
3
votes
1answer
887 views

gpg: signing failed: No pinentry

Im trying to setup my gnupg configuration on MAC OS 11.2.1 So far I have setup my SSH, I have generated my GPG key and added it into GPG agent. Now, if I run this command: echo "test" | gpg ...
0
votes
1answer
27 views

How to add a new key nowadays for which “apt-key add K1” used to be utilized before?

I have the following command wget -q https://download.arangodb.com/arangodb34/DEBIAN/Release.key -O- | sudo apt-key add - Since apt-key has become depricated, how should I add a new key? This warning ...
0
votes
1answer
112 views

Unable to update package using pacman due to gnupg corruption

I managed to hose my system and now update to run pacman to update. When a package is attempted to update the system reports is corrupted (invalid or corrupted package (PGP signature) It seems the ...
0
votes
0answers
8 views

tar in pipe with gpg in remote mounted volume occupies space on root / partition

I wrote a code which scope is creating a tar encrypted with a password using gpg and sending it on a mounted remote volume. tar --hard-dereference -cvzf - -C $filedir $basename | gpg -c --batch --...
1
vote
1answer
57 views

pinentry-mac completely disables prompt for GPG passphrase

This is weird. I am using pass and pinentry-mac to unlock my passwords. My gpg-agent.conf uses pinentry-mac as its pinentry-program. I'm not sure if I updated some dependency recently but suddenly ...
0
votes
1answer
55 views

linux gpg keys security, red hat and debian

There is some difference in terms of security between gpg keys generated with a Red Hat based linux distribution like Fedora and gpg keys generated with a Debian based distribution like Ubutnu?
1
vote
1answer
57 views

How to cryptographically verify the authenticity and integrity of Microsoft Windows .iso releases (with gpg?)

For a given Windows release published by Microsoft, how can I cryptographically verify the authenticity and integrity of the .iso file that I downloaded before I copy it onto a USB drive and attempt ...
0
votes
1answer
27 views

Creating GPG encrypted tar.gz Backup fails

I hope this kind of question is ok here ;) I am on Debian 10 Buster, trying to create an (GPG) encrypted, compressed tar file without intermediary files. I found this article[1] on the web which ...
2
votes
1answer
333 views

Why does gpg's secret and public key have the same keyid?

On my Windows machine running Cygwin, When I run gpg --list-keys --keyid-format LONG gpg --list-secret-keys --keyid-format LONG Both the pub and sec keys have the same value. sub and ssb have the ...
0
votes
1answer
7 views

How to export all local signatures

I have 2 separate keyrings and would like to transfer all public keys and the corresponding signatures I have made to my other key. ~ 10 years ago I created a Master key on an offline computer with ...
0
votes
0answers
13 views

How to make Irssi automatically send a message to a username on connecting to a specific server?

I want Irssi to automatically message NickServ with the message "CONFIRM <PASSWORD HERE>" whenever I connect to irc.rizon.net, and I want it to get the password from a gpg-encrypted ...
1
vote
1answer
22 views

GPG KeyID when listing packets and into keyring

When I check file packets with gpg --list-packets file.gpg it shows that file is encrypted by some key with ID of 16 symbols. But when I try to check this key in my keyring using gpg --list-keys or ...
0
votes
0answers
26 views

Specifying gpg-agent IdentityAgent in Windows SSH config

I recently got a pair of Yubikeys, and I've been spending most of today trying to set them up to work with SSH. I finally managed to get them working from my Linux machine, but I'd also like to have ...
0
votes
0answers
22 views

Signing ssh keys with gpg token on MacOs

I want to sign my SSH host keys using the authentication subkey of my GPG token. I'm following these instructions combined with those ones. I have several GNU/Linux computers with which I'm having no ...
1
vote
2answers
162 views

Using GPG keys generated with WSL in Windows directly?

So I'm just trying to sign my LibreOffice documents digitally. I have generated my GPG key in a Debian WSL terminal using the gpg command line. Yet when I access my LibreOffice documents, File → ...
2
votes
1answer
29 views

GPG imported and exported public keys do not match

At keyserver.ubuntu.com I look up a public key, say this one, using quux foo as the search string, which when you click on any of the hyperlinks there, say the first one, you get this, the first and ...
0
votes
1answer
116 views

How to cryptographically verify the authenticity and integrity of Mozilla releases (Firefox, Thunderbird, etc)

For a given software release published by Mozilla, how can I cryptographically verify the authenticity and integrity of the file that I downloaded before I execute it to install that program? Today I ...
0
votes
0answers
7 views

How do I avoid generating a revocation certificate with GnuPG?

I'm using gpg to encrypt some secret content using a dedicated passphrase-protected keypair that will never be published. So it will also never benefit from the revocation certificate that commands ...
3
votes
0answers
58 views

What do I have to do in CMD.EXE and/or PowerShell to specify a file (-o) with umlaut-characters when decrypting a file with gpg?

In cmd.exe and PowerShell, I am able to encrypt a file into a file whose filename contains umlaut-characters: gpg -c --batch --yes --passphrase "one two three" -o bärlauch.gpg data.txt ...
0
votes
1answer
45 views

DNS: Unable to find specific GPG server

I would like to upgrade my system on Arch Linux distro by yay -Syu but unfortunately, when I try to import new GPG key, I've got DNS error :: PGP keys need importing: -> ...
0
votes
0answers
36 views

windows :GPG is prompting for passphrase even though passphrase cache is set in gpg-agent

I have preset the passphrase in gpgagent but still it is prompting for password first time. Following are the steps i did. installed gpg on windows from https://gnupg.org/download/ (version - 2.2.23) ...
2
votes
0answers
62 views

Can't revoke GPG key on Ubuntu keyserver

I am trying to revoke a GPG key on the Ubuntu keyserver. I have imported the revocation certificate into my GPG keychain and have used gpg --keyserver http://keyserver.ubuntu.com --send-key ...
0
votes
0answers
36 views

Why does gpgtar give no such file or directory, when the encrypted file was inside a directory

Reproduction details: mkdir foo touch foo/bar.txt gpgtar -c -o foo.gpg foo/bar.txt # Type in passphrase "foo" twice gpgtar -d foo.gpg Error: gpgtar: gpg: AES256 encrypted data gpgtar: gpg: ...
0
votes
0answers
17 views

Using GPG4USB, lost my passphrase :(

Hey folks ! I´m using gpg4usb and lost my passphrase. I got my pub key and private key. Any ideas how i can grab my passphrase again? regards, ontheROX
0
votes
1answer
219 views

GPG - invalid marker packet

can anyone help with the following gpg issue? Trying to decrypt an very old gpg-encrypted file (i assume it's a zip archive) fails with a simple "invalid marker packet". Trying --list-...
1
vote
0answers
86 views

Can I decrypt a gpg encrypted file on any computer?

I am storing some 2FA recovery keys inside a txt file, which I then encrypted using gpg -c file, I can decrypt it fine in my own computer (virtual machine actually). But I was wondering, if something ...
0
votes
1answer
939 views

gpg: decryption failed: No secret key

First, I spent an hour trying answers with similar titles so please read this through before flagging this question as a duplicate. I use a YubiKey to store my PGP private key using its smart card ...
0
votes
0answers
33 views

How to add a recipient to a gpg file?

Is there a way to add a recipient to a given gpg file from the command line ? I have read this question but this assumes that I can list the current recipients myself. I want to preserve the current ...
0
votes
0answers
51 views

Disable gnome keyring on debian buster

I have reached my breaking point with trying to figure this out on my own on Debian Buster. I am almost never in front of the computer on which I'm running gpg, so having the passphrase prompt be a ...
0
votes
0answers
32 views

What are the use cases for a certification PGP subkey?

What are the use cases for a certification only PGP subkey? I am not sure if GnuPG supports it but I know Sequoia does.
0
votes
1answer
39 views

Why does GnuPG use a GUI and how can I customize/change it?

*By pass I meant pass for Unix, the standard password manager. I set up GnuPG to use pass and it works just fine. Whenever I need to enter my password, however, I have to enter it in a popup. This ...
0
votes
1answer
168 views

Mac GPG can't generate smartcard keys

Mac OS X Catalina 10.15.7, Homebrew GPG 2.2.23, brand new Yubikey 5C Nano, homebrew pinentry-mac 0.9.4 % gpg --card-edit Reader ...........: Yubico YubiKey OTP FIDO CCID Application ID ...: ...
2
votes
1answer
1k views

Thunderbird's new OpenPGP integration fails to recognise private keys that had the sign subkey removed

I have just upgraded from Thunderbird 68 with Enigmail to Thunderbird 78, with its native OpenPGP features. However, the migration from Enigmail didn't succeed and it fails to associate the keys in my ...

1
2 3 4 5
15