Questions tagged [gpg]

gpg is the main command line tool of the GNU Privacy Guard (GnuPG), implementing the OpenPGP standard for public key cryptography. It allows encryption, (verification of) signatures and trust models like the web of trust. gpg (and its library gpgme) are the base of many FOSS crypto applications (like mail user agents). There is a standalone version (1.x) and one (2.x) requiring gpg-agent for secret key handling.

Filter by
Sorted by
Tagged with
1 vote
2 answers
20 views

Setting up debian archive keys on risc64: new key but contains no user ID

I have a Sipeed Lichee RV that runs a Debian image, but I cannot install software due to missing key. I have followed the Package Authentication Instructions but am getting this error: root@sipeed:/...
user avatar
  • 665
0 votes
0 answers
14 views

Why does the GPG in 'pinentry-mode loopback' only remember 29 characters?

I noticed that when the GPG has pinentry-mode loopback enabled, the password is only stored in the cache up to 30 characters. If the password is longer, it keeps asking me to re-enter it. Why does ...
user avatar
  • 1
0 votes
0 answers
16 views

Password not remembered in 'pinentry-mode loopback' (GPG)

I have an encrypted secret file - secret.gpg. For better security I created a separate user user2 in whose home folder this file is stored. The idea is that from under user1 (via sudo) to access only ...
user avatar
  • 1
-1 votes
0 answers
26 views

Is there a script to query multiple key servers to confirm a gpg public key?

I'm trying to verify the checksums of a linux distribution. These come with a signed file for verification. Unfortunately, since the signature for import into the keyring comes from the same site that ...
user avatar
0 votes
0 answers
36 views

Use NTRU+x25519 key exchange with gpg-agent?

OpenSSH now (as of v9.0) defaults to 'sntrup761x25519-sha512@openssh.com' as its key exchange algortihm. When using gpg-agent (for example, but I don't think necessarily, with an OpenPGP smartcard ...
user avatar
  • 1,588
0 votes
1 answer
28 views

APT-KEY GPG --recv-key process hangs without any network traffic

On Debian 11, running as root. I am attempying to add the mysql repository public key (due to the expiry in Feb) and update to mysql 8.0, but every apt-key or gpg command I run just HANGS. Even adding ...
user avatar
  • 87
1 vote
2 answers
38 views

Make GPG encrypted file look like binary executable

I have a weird ask. I have a tar achive, archive.tar.gz, filled with plaintext files. That archive is then gpg encrypted into archive.tgz.gpg. In total, archive.tgz.gpg is < 100KB. Now, I want to ...
user avatar
1 vote
2 answers
59 views

The difference between sign-key and edit-key

An issue based on this post. If you want to trust a public key, two commands can achieve the target: gpg --edit-key someone's_public_key gpg --sign-key someone's_public_key The obvious point ...
user avatar
  • 35
0 votes
1 answer
62 views

How can suppress the warning info when to verify apache?

Warning info "This key is not certified with a trusted signature!" when to verify apache : wget https://downloads.apache.org/accumulo/1.10.2/accumulo-1.10.2-bin.tar.gz wget https://downloads....
user avatar
  • 35
0 votes
0 answers
10 views

some info in apache's KEYS file

There are few lines at the beginning of apche's KEYS file: This file contains the GPG keys needed to verify Apache Accumulo releases. To update this file, execute the following command after changing ...
user avatar
  • 35
0 votes
0 answers
46 views

Request for help repairing output of apt update

This is the output of sudo apt update I would appreciate it if someone could help me fix the problems, I'm only new to Linux. I'm running (Linux kali 5.16.0-kali5-amd64 #1 SMP PREEMPT Debian 5.16.14-...
user avatar
0 votes
0 answers
18 views

GPG failing with no error for one of my encrypted files

I'm using gpg 2.2.20 to encrypt plain text password files using my PGP key on Ubuntu as well as OSX (both have the same PGP key). I've got a single encrypted file that won't decrypt in Ubuntu but it ...
user avatar
  • 123
8 votes
3 answers
796 views

tar.gpg vs tar.gz.gpg

Is it redundant to compress a tar archive before encrypting it using GPG? From my understanding, GPG will compress the file that it encrypts. Is it preferable to do tar -> gpg instead of tar -> ...
user avatar
  • 1,832
0 votes
1 answer
280 views

gpg decryption error - bad session key

I have batch encrypted some backup files using a script. The OS is CentOS 7 and the current version of gpg is 2.0.22. The important parts of the script are: enter code here`echo Enter passphrase read ...
user avatar
  • 1
1 vote
3 answers
316 views

apt-get gpg error when i try to update

i have a librem14 running pureos, i keep getting error running apt-get update librem14@PureOS:~$ sudo apt update An error occurred during the signature verification. The repository is not updated ...
user avatar
0 votes
0 answers
31 views

gpg not working pinentry-curses: no LC_CTYPE known - assuming UTF-8 while decrypt inside a while loop

My gpg is working fine gpg -c /home/abcd/test.text Its asking my the password 2 times and works fine but it gave the error when I was trying while IFS="," read -r rec_column1 rec_column2 do ...
user avatar
1 vote
0 answers
15 views

It seems I have SSH keys saved under two emails, but I can't find one of them, how can I find an SSH key that is "already imported?"

I am on machine B and seeking to SSH into machine C. I failed to, which made me think perhaps I haven't actually set up my SSH keys on machine B. If I do ls -al ~/.ssh on machine b, I see -rw------- ...
user avatar
  • 121
1 vote
0 answers
64 views

gpg -d hangs while decrypting

i have a key installed on my fedora 35. i see that the subkey for encryption is active and unexpired. i can encrypt with it just fine but when i try to decrypt, it just hangs. though echo 'encrypt ...
user avatar
  • 121
1 vote
1 answer
180 views

no public key on debian 11 unable to apt update

I've tried all methods published in older questions, such as adding from ubuntu.keyserver, using gpg, from hkp://pool.sks-keyservers.net:80 etc, any ideas ¿? gpg: gpg --recv-keys 0E61D3BBAAEE37FE gpg: ...
user avatar
  • 48
1 vote
0 answers
19 views

Does opening a picture in a temporary filesystem leave any traces with Eye of GNOME/eog?

Does the Gnome package eog leave any thumbnails or other privacy leaking information when opening a picture in a different filesystem? I know that thumbnails are created by default in the home ...
user avatar
0 votes
0 answers
50 views

Duplicate GPG key CentOS 8

If I run dnf check I get the following message: centos-gpg-keys-1:8-2.el8.noarch is a duplicate with centos-gpg-keys-1:8-3.el8.noarch How do I get rid of centos-gpg-keys-1:8-2.el8.noarch, I've found ...
user avatar
0 votes
0 answers
52 views

WARNING ** : bad d-i Packages file (time distortion or clock problem)

I install a linux archive via an old NAS in flash kernel boot, and after struggling with the packages, apt fires me on that: Jan 1 01:08:26 main-menu[209] : INFO : The menu item 'download-installer' ...
user avatar
3 votes
2 answers
102 views

zsh completion for gpg

I am using the default _gpg completion file for zsh, which came with my zsh version 5.7.1-1 (debian 10). I have pasted the file here: https://ctxt.io/2/AABg86pPFQ When I do gpg <TAB>, zsh ...
user avatar
0 votes
0 answers
71 views

gpg-agent cannot select the correct key to authenticate ssh connection

Currently the my gpg-agent works fine when there's only one keygrip in the ~/.gnupg/sshcontrol file. When there's a new ssh connection the gpg-agent will give a prompt and ask for passphrase. The ...
user avatar
  • 1
0 votes
0 answers
216 views

Keyserver receive failed: Server indicated a failure

This error has arise when I add tor to my repository and try to use this command: gpg --keyserver keys.gnupg.net --recv A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 It's shows this error gpg: keyserver ...
user avatar
1 vote
0 answers
107 views

GPG using sudo under another user, is `pinentry-mode loopback` safe?

There are 2 users: user1 and user2. When trying to use gpg via sudo (symmetric decryption): user1@host: sudo -u user2 gpg /home/user2/pass.gpg an error gpg: decryption failed: No secret key. I set it ...
user avatar
  • 127
0 votes
1 answer
26 views

How to avoid prompts for passphrase while clearsigning a file?

I am using GPG Version 2.2.20 and whenever I run the following command while signing the release file, I am prompted for the passphrase. gpg --default-key <my_email> --clearsign -o - Release &...
user avatar
0 votes
0 answers
107 views

Missing uids in GPG public key after importing secret key

I want to import my keypair from my current Linux machine to a new one that is going to replace it. Thus, I exported the secret and imported it to the new using ssh: gpg --export --secret-key -a | ssh ...
user avatar
  • 101
1 vote
1 answer
70 views

Unable to use apt-cacher

I would like to use apt-cacher as my package proxy locally. Especially when I rebuilding my Docker image several times in a row. I have apt-cacher installed and running on my system. I set my proxy ...
user avatar
1 vote
0 answers
165 views

Enable SSH access using a GPG key for authentication : The agent has no identities

I have followed How to enable SSH access using a GPG key for authentication to enable SSH access using a GPG key for authentication. $ gpg2 --expert --edit-key <KEY ID> gpg> addkey Please ...
user avatar
  • 1,201
0 votes
1 answer
223 views

How can I check passphrase of gpg from a file?

I want to check whether the passphrase of my user-id located inside a file is correct or not. I have stored my passphrase in a file (/home/user/.gpg_pass.txt), than I use it as: gpg --verbose --batch -...
user avatar
  • 230
3 votes
2 answers
334 views

Migrating away from apt-key adv

I have quite some scripts that are still using the apt-key adv command. And I know this command is deprecated. And soon becoming unable to use. Correct me if I'm wrong, but Debian 11 is the last ...
user avatar
0 votes
1 answer
83 views

Is there a way to get gpg/gpg2 work with macOS macports in 2021?

In the past gpg/gpg2 used to run flawlessly on my MacOS laptop running macports. In the last few month (years?) it seems to have stopped being operational and after spending many hours in trying to ...
user avatar
0 votes
0 answers
133 views

Keyring is ignored by apt

I'm trying implement apt-get on an embedded device. For testing I use one of the Raspbian repositories but apt-get update keeps telling me my keyring has an unsupported file format. I removed the old ...
user avatar
  • 1
17 votes
2 answers
3k views

Now that apt-key is deprecated, how do you add an Ubuntu PPA as a Debian APT source?

Background In the past, if you wanted to install software from an Ubuntu PPA in Debian, the approach was to import/trust the developer's GPG key from keyserver.ubuntu.com, $ sudo apt-key adv --recv-...
user avatar
  • 866
1 vote
1 answer
326 views

gpg: decrypt_message failed: Unexpected error

i am trying to decrypt a text with a valid private key that is imported into my instance and is in working condition. the key decrypts any other text but this particular one results in this error ...
user avatar
  • 121
0 votes
0 answers
72 views

Pass (password manager) taking a long time to request master password

I have two arch linux machines: desktop & laptop; Both have pass as the password manager, with the same gpg key, versions, passwords; but when asking for password on the laptop popup that asks for ...
user avatar
0 votes
1 answer
871 views

`gpg: error retrieving "email" via WKD: No data` when trying credential storage for DockerHub login

I want to use the pass credential store for DockerHub login. Therefore, following mainly this link I installed pass (apt install pass) I installed docker-credential-pass, but following the ...
user avatar
  • 101
0 votes
1 answer
130 views

gpg2 -- get fingerprint using script

I am attempting to extract the fingerprint from a GPG2 key. The fingerprint will then be passed to pass init $GPG2_FINGERPRINT for initialization In the example below I want the fingerprint value ...
user avatar
1 vote
2 answers
954 views

"gpg: error reading key: No public key" when updating manjaro-keyring

I have a super weird issue which has almost been preventing me from installing/updating anything. Anytime pacman tries to update the manjaro-keyring package, I get the error in the title of this post. ...
user avatar
  • 133
0 votes
0 answers
30 views

How to convert a private gpg authenticate subkey to ssh without monkeysphere?

Since monkeyshpere is down[0] I'm looking for an alternative way to convert a PRIVATE gpg subkey to a PRIVATE ssh key. I'm emphasizing private since I keep receiving comments about public key ...
user avatar
  • 249
0 votes
0 answers
71 views

gpg2 exports invalid private key

I need to export both ssh keys from my gpg authentication subkey First I get the fingerprint from my [A] authentication subkey: gpg --list-secret-keys --with-keygrip Having the fingerprint ...
user avatar
  • 249
0 votes
0 answers
37 views

What should I do when I cannot connect to the keyserver?

Due to some reason, I cannot access any keyserver in Mainland China. Which means I have to manually search (with proxy enabled) for keys and manually trust them. Is there a better way for that? I did ...
user avatar
2 votes
1 answer
1k views

GPG can't decrypt: no pinentry program

I can't decrypt my passwords with pass neither with gpg directly. gpg: encrypted with rsa4096 key, ID id, created creation_date "name <email>" gpg: public key decryption ...
user avatar
4 votes
1 answer
76 views

Visualizing encrypted image without saving decrypted version

I am learning how to decrypt secret image files using gpg. In the example below I am encrypting (and then visualizing) a photo called kermit.png. So far I was able to do this as follows: gpg -d kermit....
user avatar
  • 163
3 votes
2 answers
223 views

gpg-agent hanging when trying to access private keys

I'm having trouble using gpg (actually, the gpg-agent) on my Debian Bullseye (Stable) system. More precisely, I use the following: gpg --version | head -n2 gpg (GnuPG) 2.2.27 libgcrypt 1.8.8 uname -...
user avatar
  • 198
0 votes
1 answer
49 views

GPG : no more signatures of a fresh imported key

SHORT GPG doesn't get signatures of an imported public key anymore (with Ubuntu 20.04) while it did it 6 months ago (with Ubuntu 18.04). I don't understand what's wrong. LONG On march, I followed this ...
user avatar
0 votes
1 answer
115 views

GPG drops all non-self-signatures

I want to import/refresh a gpg key from a keyserver including all non self-signatures. Whenever I try to do this gpg says, for example gpg: key <number>: number of dropped non-self-signatures: ...
user avatar
0 votes
1 answer
91 views

scdaemon.conf missing from gpg directory

I tried to setup gpg for use with a smartcard, but the instructions specified edits to scdaemon.conf, which for some reason is missing from the .gnupg folder in the home directory. The folder does ...
user avatar
0 votes
0 answers
35 views

Spamassassin not installed Ubuntu 20.04

I got error while end of the installation of Spamassassin . error: gpg required but not found! It is not recommended, but you can use "sa-update".... Sub-process /usr/bin/dpkg returned an ...
user avatar

1
2 3 4 5
14