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
0answers
7 views

GnuPG support for ISA crypto extensions

For performing some results comparison, I was searching online for usages of 'gpg' command with hardware crypto extensions enabled/disabled (eg. AES-NI and ARM NEON), but found none. Instead I find a ...
0
votes
2answers
31 views

What is the difference between a GPG signature and a detached signature?

We can sign a file with gpgp: gpg -s file.pdf Which generates a file signature file.pdf.gpg. It is also possible to make a detached signature: gpg -b file.pdf Which generates file.pdf.sig. I noticed ...
0
votes
1answer
37 views

How do I remove older versions of gpg on Raspbian OS?

I am trying to install the latest version of GnuPG library on a Raspberry Pi 4 device. I find that the Raspbian OS already comes with installed gpg binaries, which is not allowing me to install newer ...
0
votes
1answer
54 views

Why is there no '-c' option for decrypt command of GnuPG?

I would like to know if there is any support for specifiying cipher algorithm in the decrypt command. Currently I don't find any such support unlike the encryption command which can be used to specify ...
0
votes
0answers
21 views

GPG key is not getting generated : agent_genkey in gpg is looking for some file

I'm facing issue to generate gpg key on my mac(10.15.7 Catalina). It is showing some error that the agent_genkey is looking for some file which is not available. Below is the debug information from ...
0
votes
1answer
19 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
2answers
45 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
18 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 ...
0
votes
1answer
24 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
23 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 ...
1
vote
1answer
36 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" -...
0
votes
1answer
25 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. ...
0
votes
0answers
31 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 ...
0
votes
1answer
57 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
48 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] ...
1
vote
1answer
159 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 ...
1
vote
1answer
17 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: ...
2
votes
0answers
60 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
1answer
66 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 -...
0
votes
1answer
133 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
35 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 ...
0
votes
2answers
26 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
0answers
47 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
30 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 ...
0
votes
1answer
62 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
28 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 ...
1
vote
1answer
62 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 ...
0
votes
0answers
14 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
27 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
46 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 ...
0
votes
1answer
34 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
0answers
51 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
230 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
0answers
43 views

How to use GnuPG as ssh-agent

I want to use gnuPG as ssh agent, so that I do not always have to type in the passphrase for ssh file. I added the lines unset SSH_AGENT_PID if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; ...
0
votes
0answers
40 views

GPG pinentry not receiving key presses during passphrase entry when forwarding gpg-agent

When forwarding my gpg-agent to a remote server I am able to see the my private key listed. Even though I unlocked my key locally I still need to unlock it on the remote machine. However when I try to ...
0
votes
0answers
43 views

ssh-add to gpg-agent without being prompted for passphrase

Using gpg-agent, when I ssh-add key.pem, GPG prompts me to protect it with a passphrase (distinct, I believe, from any passphrase on the key itself as set with ssh-keygen -N <passphrase>). The ...
0
votes
0answers
36 views

Forwarding GPG SSH agent

Is it possible to forward the GPG Authentication Key used for SSH to another host. So basically: Host1 connects to Host2 using the GPG Key. Host2 connects to Host3 using the GPG key on Host1. I know ...
0
votes
1answer
27 views

gpg does not prompt for password - dwm

I setup gpg with pass on a new computer and pass does not prompt me for the password of my gpg key, meaning I can't access my encrypted passwords on that computer. What can I do? when I run pass ...
0
votes
1answer
56 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 ...
1
vote
0answers
64 views

Parabola GNU/Linux-libre installation: problem with key

I'm trying to install Parabola GNU/Linux-libre (OpenRC) and I repeatedly get this error during pacstrap /mnt base elogind udev-init-scripts. error: some-package: signature from "A Packager <a-...
-2
votes
2answers
2k views

gpg: no valid OpenPGP data found. in kali linux add-apt-repository

When I try to add any repository I have this error: root@Hacknonimous:~# sudo add-apt-repository ppa:agornostal/ulauncher Application launcher for Linux More info: https://launchpad.net/~...
2
votes
0answers
28 views

Is it possible to check for the presence of a cached GPG key without modifying the GPG timer?

I only know a way* of getting the information of the presence of a cached GPG passphrase, that is, to run $ gpg-connect-agent 'keyinfo --list' /bye S KEYINFO 01B3BE66C2EAC153C4ED25F01FEE13D356EF289F D ...
0
votes
1answer
10 views

How to use gnupg remotely on buster while also logged into the local GUI

I have a Debian buster system where I am logged in to the local GUI and also logged in over ssh. I need to sign something with gnupg over ssh. Unfortunately I get no prompt for a passphrase on my ssh ...
1
vote
1answer
58 views

linux gpg how to specify crypto strength

When using gpg to encrypt a file, I use gpg -c important.docx but it always uses 2048 how do you specify 4096? I am looking RSA 4096 + RSA 4096 Thank you. Any help appreciated. doop
1
vote
1answer
70 views

Starting gpg-agent with specific options

I have an application, run as a service by a system user, which uses GPG (using libgpgme in C). This user has no home directory and I would like to eliminate password caching. Therefore I'd like gpg-...
1
vote
0answers
61 views

Debian: How does apt verify downloaded packages? [duplicate]

I can see from my firewall that apt is downloading packages using http. Considering this is an insecure protocol, how does apt verify the integrity of the downloaded package?
0
votes
1answer
21 views

Where to place permanent file in debian package?

My company has a debian repository which has new gpg keys. We want to generate new package versions which add these keys to /etc/apt/trusted.gpg.d. The caveat is that we only want to add those in that ...
1
vote
1answer
50 views

gpg search path for public keys appears to vary. significantly with gpg version. What to do?

Having only recently realized that "chmod" accepts some parameters other than "777" I'm trying to send signed files to an automated email handler. I thought this would be easy ...
0
votes
1answer
288 views

What is the armored option for in GnuPG?

when I export a gpg private or public key, and specify armored as a switch, I get plain text key, however, the gnupgp website seems to state that these keys are actually encrypted. What's the point in ...
0
votes
0answers
24 views

GPG File Decryption Issue After Importing Public And Private Keys In Local System

I had generated GnuPG public and private keys in my Windows System which I have saved in a separated directory of my system's hard-drive. Then after sometime I installed Manjaro Linux and I imported ...

1
2 3 4 5
13