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
0answers
10 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
21 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
10 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
24 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
18 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
38 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
6 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 (...
-1
votes
0answers
24 views

Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)) [duplicate]

I tried downloading mongodb using the command: wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add - it threw an error: Warning: apt-key is deprecated. Manage keyring ...
0
votes
0answers
24 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
22 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
31 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
17 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
54 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
33 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
22 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
37 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
29 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
21 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
32 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
31 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
332 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
23 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
8 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
45 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
48 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
51 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
46 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
99 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
19 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 ...
0
votes
0answers
38 views

How to sign multiple gpg keys in a bash script (non-interactively)

I'm setting up some keys for our team. I want to make a bash script that will sign all the (known) keys that I have just imported. I want to sign the keys without prompts (non-interactive). Here's ...
1
vote
1answer
332 views

Author's GPG subkey has expired, what can I do?

I am trying to download an update for a piece of software, and my package manager says that the key is invalid and thus warns me. W: Failed to fetch https://deb.torproject.org/torproject.org/dists/...
1
vote
1answer
100 views

gpg/pinentry - Can't enter passphrase outside terminal

I am trying to decrypt a gpg file inside a script. When I run gpg -d file.gpg in the terminal, I get prompted to enter the password in a curses dialog box. But when I run a script containing that line,...
0
votes
1answer
8 views

Is it possible to organize pub keys in groups using GnuPG?

I would like to separate imported pub keys (gpg --import) in groups to organize them. For example, I have a bunch of pub keys I would like to keep for a long time vs others that I need to use once or ...
2
votes
1answer
1k views

yay error: gpg: keyserver receive failed: No name

I am trying to install spotify using yay on Arch linux. But when I run yay -S spotify this happens: john@arch-thinkpad ~> yay -S spotify :: There are 5 providers available for spotify: :: ...
0
votes
0answers
13 views

Mac GPG Issues when Encrypting File

I was trying to encrypt a file using the following command line: gpg —symmetric —cipher-algo AES256 -o answers.txt.gpg questions.txt But I get the error message: gpg: WARNING: no command supplied. ...
1
vote
1answer
38 views

PGP key export is very long - how to shorten?

I recently needed to publish my PGP key. However the export is veeery long: $ gpg2 --list-secret-keys --keyid-format LONG /home/user/.gnupg/pubring.kbx ----------------------------- sec rsa4096/...
0
votes
1answer
67 views

How to start GnuPG SSH Agent for gvfs?

I use Gnome 3.36.3 (Ubuntu 20.04.1) with GnuPG 2.2.19 as SSH agent. I tell OpenSSH where to find the GnuPG SSH agent socket in my ~/.profile file: export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-...
0
votes
1answer
91 views

`gpg --recv-keys` works, but `auto-key-retrieve` does not

I am trying to verify the file https://clientupdates.dropboxstatic.com/dbx-releng/client/dropbox-lnx.x86_64-108.4.453.tar.gz using the signature provided here: https://clientupdates.dropboxstatic.com/...
0
votes
1answer
115 views

How to get more gpg-agent info?

I followed encrypted netrc file with gpg tutorial. I edited my ~/.profile like this if test -f $HOME/.gpg-agent-info && \ kill -0 `cut -d: -f 2 $HOME/.gpg-agent-info` 2>/dev/null; then ...
0
votes
0answers
11 views

Signing archive on linux subshell for windows

Hello I am trying to sign a file, but keep getting this error: "no default secret key: No secret key". I used Kleoptra, but it puts .sig instead of .gpg.
0
votes
1answer
65 views

How can I use an unsigned public key to encrypt a large file using openssl?

openssl this way can only encrypt small files: openssl rsautl -encrypt -pubin -inkey public_key.pem -in secret.txt -out secret.enc openssl as I found suggested here throws an error: openssl smime -...
1
vote
1answer
398 views

How to cache gpg key passphrase with gpg-agent and keychain on Debian 10?

I have a Debian 10 server. I want to send email with msmtp and I need to cache a passphrase for a gpg key. The smtp password needed by msmtp is encrypted in a file using this gpg key. msmtp will use ...
1
vote
0answers
310 views

Import PGP Keys with no user id into gpg

My company used Authora Edge to create / manage pgp keys. The company unexpectedly closed, and we are in the process of migrating the existing keys into gpg. When trying to import the public keys, I ...
1
vote
2answers
231 views

help understanding gpg --list--keys output

when I run gpg --list-keys I get the following output. /home/yax/.gnupg/pubring.kbx ---------------------------- pub rsa2048 2020-10-09 [SC] 4424C645C99A4C29E540C26AAD7DB850AD9CFFAB uid ...
1
vote
1answer
69 views

How to import secret key on OpenGPG smartcard (copied from one machine/OS to another)?

I run a couple of PCs and they both multi-boot into more than one OS (Win10/Linux{Devuan}/FreeBSD & Win10/Linux{Devuan} respectively). I use Thunderbird + Enigmail (sticking with Version 68.x of ...
0
votes
0answers
35 views

GPG hangs on signing documents

I'm new to GPG and have been very frustrated that my GPG always hang when asked to sign documents. And I can't figure out why nor how to fix it. I've followed the tutorial by MakeTechEasier to ...
1
vote
0answers
169 views

Decrypting a file with GNU PGP inside a container: gpg: no valid OpenPGP data found

I'm trying to decrypt a file with a GPG private key I was given and a passphrase. We are using a Docker container running ubuntu 18.04 LTS for our decryption process. The docker container runs a shell ...
0
votes
0answers
19 views

How to archive (tar) a folder and encrypt with gpg in one fell swoop without doing both separately?

I currently encrypt folders for upload to google by doing: First tar: tar cf foldername.tar /path/to/foldername and then gpg: gpg -c --cipher-algo AES256 -o foldername.tar.gpg foldername.tar I am ...
0
votes
0answers
211 views

'gpg: no valid OpenPGP data found' when trying to install Signal on freshly-installed Debian 10

I got the error why running curl -s https://updates.signal.org/desktop/apt/keys.asc | sudo apt-key add -. This is my first time using Debian so there might be some config I have to do first.

1
2 3 4 5
12