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
0
votes
1answer
25 views

How to download 1.4.13 version of gnupg in linux server?

Maybe this problem is not good, but I have tried it for two days. Still no success. I want to download the 1.4.13 version of gnupg, but I found that the various websites of gnupg are not accessible. I ...
0
votes
0answers
11 views

Encryption with gpg works but not sign-encrypt

I made a script that auto backups of my Keepass DB to Google Drive So first it is encrypted, but I would like signing too I used 2 systems, a Mac Mini (Intel) (2c/2t, 16G RAM) and a Ubuntu 20.04 VPS (...
0
votes
0answers
15 views

installing security key

I have a security key (specifically a TrustKey g320 with finger print reader) that I would like to use under Linux (Ubuntu 20.04). On one hand, I'd like to use it to authenticate when pushing to ...
2
votes
1answer
1k views

Problem with gpg when using apt

I'm scratching my head to find a way to correct broken gpg stuff in apt. When i try to install Nodejs : curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash - sudo apt-get install -y ...
0
votes
1answer
14 views

key signing: can't see new signatures

I'm getting a few friends to sign my key. Each time they've signed my key, if they send the signed key to a key server, when I try to get the signatures with gpg --refresh-keys --keyserver some....
0
votes
0answers
17 views

Using specific gpg key in ssh_config

I have multiple GPG keys. One of them I use on daily basis, signing commits, e-mails and such, it is on my computers and ready at hand. I have a different key that I consider more trustworthy, I use ...
0
votes
1answer
16 views

Give keys/subkeys in gpg names

I am learning how to use gpg, and I would like create multiple keys for different purposes, for example one to encrypting my emails, anther for connecting to ssh, yet another for pass password store. ...
1
vote
0answers
32 views

signing email with PGP key outside Mutt UI interface

I'd like to use mutt to send and sign the email directly from command line like e.g. mutt -s "MySubject" user@domain.com < message OR echo " " | mutt -s "MySubject" -...
30
votes
3answers
30k views

“No such file or directory” when generating a gpg key

I'm trying to generate a gpg key $ gpg --full-gen-key but eventurally I get an error gpg: agent_genkey failed: No such file or directory Key generation failed: No such file or directory I'm on ...
0
votes
0answers
19 views

GPG not prompting for passphrase

So up until yesterday gpg was working all fine. But today, it doesn't prompt for passphrase, I just get an empty blinking command line. I'm using gpg for signing git commits. I thought the problem was ...
3
votes
1answer
104 views

Gnupg secp256k1 signature does not match other implementations

I am trying to make the gpg agent sign for cryptocurrency purposes. I've tried signing a couple of hashes, and the signature of one of them gets a different r while getting the same s than other ...
0
votes
1answer
53 views

How to prevent curl output from printing a preceding pipe's output?

I have a command piping an encrypted gpg stream into curl: echo "Some Text" | gpg -o - | curl --silent -T - \ -X PUT \ --output /dev/null \ ${myurl} \ When running this, I see something ...
0
votes
1answer
4k views

explanation of RHEL/CentOS 7 yum repo gpg key

I do not understand how one gpg key can work for any of a thousand rpm's downloaded from a repository? For example, in RHEL/Centos 7.x install EPEL (extra packages for enterprise linux); results in /...
3
votes
2answers
784 views

How can I PGP decrypt an entire mbox?

Thunderbird cannot search PGP-encrypted emails. Hence, I was considering copying all my emails from IMAP to local storage, then decrypting them all locally, so that they are searchable. Is this ...
14
votes
8answers
77k views

keyserver receive failed (on every keyserver available)

I recently installed Ubuntu 17.04 and I'm not able to add any ppa. I tried to manually add keys using different keyservers but on every attempt I'm getting keyserver received error: $ sudo apt-key ...
0
votes
1answer
26 views

gpg unusable secret key error

I have imported a private key into gpg and I can see the key is there: $ gpg --list-keys /home/stuyod/.gnupg/pubring.kbx --------------------------------- pub rsa2048 2021-03-25 [C] ...
4
votes
2answers
3k views

Evolution with GnuPG: `no imported public key` even if it is imported

I was running Evolution on Debian buster (testing) amd64 with GnuPG to encrypt mails. I have my GPG private key on a YubiKey actings as GPG smartcard. As Evolution somehow failed to load my calendars ...
1
vote
1answer
2k views

Somehow, someway, gpg: no valid OpenPGP data found

Trying to install tor through this websites guide. Working well, until I reach a SIGNATURE VERIFICATION FAILED error. They said to run this command to fix the key: gpg --homedir "$HOME/.local/share/...
1
vote
1answer
69 views

gpg: Can't check signature: No public key

I can decrypt file on one machine, but on another one it says "can't check signature" (but still decrypts file). $ sudo gpg --lock-never -o update.tar -r my@email.com --decrypt myfile.sig ...
10
votes
4answers
4k views

Encrypt directory with GnuPG?

Is there any way to encrypt a directory using gpg? It seems to only accept files as arguments.
2
votes
2answers
2k views

Recovering GPG keys from a backup directory

I have a backup image mounted at /mnt. I need to recover (and revoke) a key in the secret keyring on this backup. How can I list keys and generate a revocation key for a key stored in this other ...
1
vote
1answer
12 views

Unknown validity despite having signed the key myself

The key currently has an unknown validity: $ gpg --edit-key some.user pub rsa4096/FAC6C35BDFF9359A created: 2020-03-01 expires: 2022-03-01 usage: SC trust: full validity: ...
1
vote
0answers
29 views

How can I use GPG agent forwarding over ssh when systemd owns the remote sockets?

I'm trying to follow these guides and answers https://wiki.gnupg.org/AgentForwarding https://superuser.com/questions/161973/how-can-i-forward-a-gpg-key-via-ssh-agent https://gist.github.com/...
0
votes
2answers
23 views

create parallel gpg

I am trying to tar, compress and encrypt a large backup folder but the process is slow as I believe gpg is single threaded. I have been tryping to use split to divide the root folder so instead of ...
0
votes
1answer
52 views

GnuPG, Prompt for passphrase from bash script

how can I prompt for passphrase from bash script? I get this error message: problem with the agent: Inappropriate ioctl for device. #!/bin/bash fname="/home/user/elist.txt" while IFS= read -...
1
vote
2answers
2k views

GPG Key Gen Fails - no such file or directory

I believe I've read and tried all the suggestions, starting with this post about the exact same issue. I'm trying to generate a new key with: gpg --full-generate-key and it keeps ending with: gpg: ...
0
votes
1answer
85 views

gpg failed to sign the data, failed to write commit object

I have searched the whole universe this error but i could not find any helpful tips. I have created a key using keybase and added my public key to github gpg my gpg --list-secret-keys --keyid-format ...
0
votes
1answer
29 views

Can't log into Ubuntu 18.04

Today I booted up Ubuntu and the login screen was back to the default for some reason and every time I tried to log in it would show a black screen and return me back to the login screen. I have tried ...
7
votes
2answers
6k views

How to get yum to use the already imported gpg keys?

I am trying to add an external repository inside the yum.repos.d directory. The packages and metadata for that repository are signed with a gpg key. In case it's relevant, I'm on CentOS 7.2 So far as ...
1
vote
2answers
3k views

CentOS 8: GPG check FAILED errors on sudo yum update

Immediately after an install from a verified ISO of CentOS 8.0.1905, I logged on as root, enabled the network, logged off; logged in as the user created in installation, and and ran sudo yum update. ...
2
votes
4answers
6k views

GPG error when I want to apt update

I just installed Kali NetHunter and I'm trying to do a simple apt update but it looks like a public key is missing root@kali:~# apt-get update  0% [Waiting for headers] [Connected to packages....
0
votes
0answers
44 views

Can I store my fetchmail passwords in one (or more) gpg file?

About .msmtprc I use somethig as passwordeval "gpg -dq ~/.mutt/pwd.gpg" for each account. Is it possible to do something similar also for fetchmail? For two or more accounts?
0
votes
1answer
19 views

Can I decrypt files with a GPG smartcard?

I'm trying to figure out what I can and can't do with my Librem Key as far as using the key slots. I've generated an RSA 4096-bit key with signing, encryption, and authentication subkeys, backed it up ...
31
votes
5answers
32k views

I try to add passwords to the “pass” password manager. But my attempts fail with “no public key” GPG errors. Why?

I am trying to install Pass: the standard Unix password manager, however, when I try to add passwords to the appliation I get these errors gpg: Kelly's Passwords: skipped: No public key gpg: [stdin]: ...
0
votes
1answer
45 views

Remote Server: Permission denied (publickey) when using rsync with ssh with gpg via cronjob

I want to do regular backups of my remote VPS via a cronjob. Both systems run Debian 10. I have been following this guide and tweaked it to my liking. Relevant parts of the script: /root/.local/bin/...
1
vote
1answer
46 views

Strange error with GnuPG: claims “no secret key” when terminal is too small

This is the content of my .gnupg/gpg-agent.conf: pinentry-program /usr/bin/pinentry-curses When I try to retrieve a password from pass' store, e.g. via pass -c path/to/password in a very small-sized ...
1
vote
1answer
24 views

Different PGP public keys vs program used

I create a pair keyring with the new embedded tool from Thunderbird and export it into a file (.asc by default and readable). Then I import these keys with gpg, finally I export again these keys with ...
0
votes
0answers
9 views

gpg edit-key <my email>

my private key is stored in .gnupg/private-keys-v1.d as <my_long_number.key> I have forgotten how I set up the keys. They work very well for encryption and decryption under gpg (GnuPG) 2.2.3 (...
0
votes
0answers
25 views

Unable to install git - GPG signature problems [duplicate]

I recently installed Kali Rolling for WSL and I can't install git or many other packages. Here's the error I get when trying to install git: $ sudo apt install git Reading package lists... Done ...
0
votes
1answer
32 views

Make files read-only - except for the program that creates them

So I've got a situation where programX.py creates files such as file1.txt. How could one make it so that only programX.py has the rights to edit (write to) file1.txt? So anything else (such as a user) ...
0
votes
1answer
35 views

Searching keys with gpg results in key server failure

The following simple command is failing $ gpg --search-keys "hi" gpg: error searching keyserver: Server indicated a failure gpg: keyserver search failed: Server indicated a failure ...
37
votes
8answers
55k views

gpg: keyserver receive failed: Server indicated a failure

This error has arise when I add gns repository and try to use this command: #sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F88F6D313016330404F710FC9A2FD067A2E3EF7B the error is: gpg:...
1
vote
2answers
2k views

SUSE Linux Signature verification failed

When I code, build and sign .rpm file for SUSE Linux, it is signed successfully as follows: rpm --checksig -v xxx.rpm Header V4 RSA/SHA256 Signature, key ID 7936b039: OK Header SHA1 digest: OK ...
0
votes
1answer
44 views

Why would GPG Pinentry be slow when opening in GUI but instantaneous when opening in CLI?

Having a hard time figuring out the debugging steps for this behavior. I'll run some gpg command and, typically, about 20 seconds later a GUI Pinentry window will pop up where I type in my password ...
0
votes
0answers
36 views

Cannot verify artifacts.elastic.co's certificate

I am under a corporate firewall, when trying to get the key of elasticsearch, I am getting the following: wget -4 -v https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - --2021-01-...
0
votes
1answer
143 views

No valid OpenPGP data found - Elasticsearch wget

I am trying to install elasticsearch on Ubuntu 20.04, but I am getting the following error: home@VirtualBox$ wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - gpg: no ...
0
votes
1answer
635 views

gpg: keyserver receive failed: No data

I am getting this error when I am trying to install gauge framework. sudo apt-key adv --keyserver hkp://keys.gnupg.net:80 --recv-keys A04A6C4681484CF1 Executing: /tmp/apt-key-gpghome.cjtfKq6QwL/gpg.1....
86
votes
18answers
216k views

gpg asks for password even with --passphrase

I expect the following command to extract the gpg file without asking for password: gpg --passphrase 1234 file.gpg But it asks for the password. Why? This also have the same behavior: gpg --...
5
votes
2answers
3k views

Encrypt with GPG using a key passed as CLI argument

I want to create a script that would automatically encrypt and push to GitHub into public repo some sensible files I don't want to expose (but do want to keep together with the whole project). As a ...
1
vote
1answer
2k views

gpg --passphrase-file doesn't work as root?

I'm trying to encrypt our backups using GnuPG as a pipe (reading from stdin and writing to stdout). The passphrase is read from a file. An example command: echo "mysecret" | gpg --passphrase-file ...

1
2 3 4 5
13