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
-2
votes
1answer
26 views

What are the keyid and finguerprint of a public key in gpg and apt-key?

https://superuser.com/a/931814/ says Here follows an example command to use the GnuPG package's gpg command to receive a key (--recv-keys) with the fingerprint 7CE8FC69BE118222: $ gpg --recv-...
2
votes
1answer
39 views

Keeping GPG Private Keys on Local machine?

Is it good/common practice to store the gpg private keys on my local machine, even if I intend to use them for pass, which obviously encrypts sensible data. Is there a sensible alternative, like ...
1
vote
0answers
38 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
0answers
14 views

Import GPG keys with PHP - no errors, no results

I try to reproduce the next example published at: https://www.php.net/manual/en/function.gnupg-import.php Files public.key and private.key there was created in accordance with published ...
0
votes
0answers
41 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/...
0
votes
1answer
29 views

accidentally changed Debian-Buster certbot key to Ubuntu key

The title says everything. When I type apt-get update, this error comes E: The repository 'http://ppa.launchpad.net/certbot/certbot/ubuntu focal Release' does not have a Release file. N: Updating ...
1
vote
3answers
47 views

GnuPG fails to find default key to sign when using a smart card, yet I have only one. What am I doing wrong?

I'm using Debian-based Docker image, and I have only one usable key in the keyring: $ gpg -K /tmp/test-keyring/pubring.kbx ------------------------------- sec> rsa2048 2012-01-16 [C] [expires: ...
2
votes
1answer
75 views

mmdebstrap - how to add gpg?

Here is the dreaded command: sudo mmdebstrap -v --debug --architectures=riscv64 --include="debian-ports-archive-keyring" sid /tmp/riscv64-chroot "deb [trusted=yes] http://deb.debian.org/debian-ports/ ...
0
votes
1answer
78 views

When run with sudo gpg can't use my secret key even though it shows up with --list-secret-keys

I'm working on a shell script that needs to run as root (with sudo) and uses gpg. Encryption works fine, but decryption refuses to use my secret key for some reason. Specifically the command: sudo ...
0
votes
2answers
43 views

GPG - remove header from decrypted text

I want to get rid of two first lines generated after the usage of gpg -d file.txt.gpg, meaning that only text itself would be left. I tied to use --no-comment, but it seems to not work. gpg: ...
0
votes
1answer
48 views

Can't install webmin (on CentOS 7) package updates

On CentOS7 and Webmin system: I get this error when i try to install webmin package updates..: None of the updates are working and giving this error: Downloading packages: warning: /var/cache/yum/...
-1
votes
1answer
54 views

Echo cmd overwrites gpg file [closed]

I use gpg -e file to encrypt file, which leaves me with a file.gpg file. I cat the contents and its encrypted. (cat file.gpg). Then to test it, I do this: echo 'this is a test' > file.gpg This ...
0
votes
1answer
37 views

GPG error: “The following signatures were invalid” on Docker installation with cURL

I'm trying to install docker on my Raspberry Pi 4b (raspian 10 buster), but get this error on running the installation command as listed on the official website: ~ > sudo curl -sSL https://get....
0
votes
0answers
17 views

What does the “Certificates” section in seahorse do?

What does the "Certificates" / "System Trust" section of seahorse do? I am trying to sign a document in LibreOffice and the menu there uses the word "Certificate", so I am thinking that I need to ...
0
votes
1answer
122 views

List all keys with SHA-1 in the gpg keyring

After reading a paper about "First Chosen-Prefix Collision on SHA-1 and Application to the PGP Web of Trust", I wonder how many SHA-1 keys are left in specific key rings. How to list all keys in a ...
0
votes
0answers
28 views

Any possibility to import a gpg private key into keystore.jks file?

I have a gpg private key in a file .asc, I need to import it into a keystore.jks file. How to do that import ?
0
votes
1answer
91 views

How to decrypt file that was symmetrically encrypted using GPG?

I've created and symmetrically encrypted a file using GPG: touch test.txt && echo 'test' >> test.txt gpg --output test.txt --symmetric test.txt But now I cannot figure out how to ...
0
votes
1answer
75 views

Not able to install latest R statistical package in Debian Stable

I am trying to install latest R package on Debian Stable (Buster) following instructions on this page: https://cloud.r-project.org/ I added following to /etc/apt/sources.list: deb https://cran....
0
votes
1answer
104 views

GPG encryption in Nautilus right click menu

I often use gpg command to encrypt files like so gpg -c file which produces a file.gpg. I would like to get rid of the command line aspect and have a right click button in my Nautilus. I tried ...
0
votes
1answer
364 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
1answer
202 views

How to verify checksum file of centos 8?

How to verify that the CHECKSUM file for the CentOS 8 ISO is real? Download check sum and key: $ wget https://www.centos.org/keys/RPM-GPG-KEY-CentOS-Official $ wget http://www.gtlib.gatech.edu/pub/...
-2
votes
1answer
185 views

GPG: Unsupported Binary Format

Getting this error on running following command sudo apt-get update Error: GPG error: http://ubuntu-cloud.archive.canonical.com/ubuntu precise-updates/grizzly Release: Detached signature file '/var/...
0
votes
1answer
105 views

Mutt: don't ask for pgp passphrase

I have a gpg key without password. In mutt I set the config to sign all the messages. But every time I send a message "Enter PGP passphrase". How can I get rid of it. Here is the config for the ...
0
votes
0answers
71 views

What is the proper configuration for gpg, ssh, and gpg-agent to use GPG auth subkeys for SSH with pinentry in a multi-session tmux environment?

Context I would like to use GPG authentication subkeys instead of SSH keys. I would also like to use gpg-agent to manage password caching for these keys. I am running in a headless environment, so ...
-1
votes
1answer
100 views

The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2518248EEA14886

gpg errorW: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2518248EEA14886
1
vote
1answer
419 views

How to renew an expired encryption subkey with gpg

I renewed my gpg key pair, but I am still receiving the following error from gpg. gpg: WARNING: Your encryption subkey expires soon. gpg: You may want to change its expiration date too. How can I ...
0
votes
0answers
18 views

Problem during install of Spotify - stable inRelease not verified, because key is not available

I just tried to install spotify through the application manager. The download went smoothly. However, when i went to the update manager and wanted to see if spotify needed any updates this warning ...
1
vote
2answers
49 views

why cryptsetup cannot use /dev/fd/63 as keyfile?

# cryptsetup luksOpen /dev/somedevice --key-file <(gpg2 somekeyfile.gpg) always failed with Failed to open key file. Is there any way to make this work? --key-file - also fails. The only thing I ...
0
votes
1answer
63 views

updating ubuntu issue apt-get update

I am unable to update "sudo apt-get update" in my PC (Ubuntu 18.04). I keep receiving this error and tried many different solutions existed in StackExchange and Google, however, nothing seemed to work ...
0
votes
0answers
869 views

GPG error: … The following signatures couldn't be verified because the public key is not available [duplicate]

I am trying to install Kali Linux repositories (using apt-get update) on jailbroken iPad but I've got this error: GPG error: http://http.kali.org kali-rolling Release: The following signatures couldn'...
2
votes
1answer
741 views

What is in this directory $HOME/.gnupg/private-keys-v1.d ? And where are the private keys stored?

In the .gnupg directory there are these files, (alpha numeric)*.key e.g. 1EFA02EFP.key What are they? Are these v1 gpg key files? And how do i import these? And where are the private keys held? I ...
0
votes
0answers
49 views

How to gpg --gen-key without using gpg-agent to wrap a passphrase?

On a system, using a secondary user. With gpg --gen-key, a window pops up that asks for a passphrase to wrap the generated key. However, using this secondary user, I get this response: gpg: ...
0
votes
0answers
170 views

Ownership of .gnupg folder causing permission denied

there are some workerNodes in which different users wants to encrpyt or decrypt certain files. for that to happen they import the required keys that they themselves are passing to. (Hadoop project in ...
0
votes
0answers
45 views

pass password prompt from systemd user unit

I have a systemd user unit which invokes vdirsyncer to sync calendars. I have configured vdirsyncer to use pass (unix password manager) in order to get the CalDAV password. However, when this unit is ...
1
vote
0answers
153 views

How to mount a gpg-encrypted tar archive file?

On my laptop I actually have a folder where I store personal data which I don't want to share: private_folder ├── baz │   └── secret_file_3 └── foo └── bar ├── secret_file_1 └── ...
0
votes
0answers
15 views

How to fix remote gpg agent when it stops working?

This is driving me crazy. I previously asked this: gpg-agent mysteriously stopped working - agent on remote system no longer connecting to ssh socket If I log out overnight everything will work when ...
0
votes
0answers
15 views

dirmngr and gpg recv key no result

I've started dirmngr explicitly: dirmngr --daemon --homedir /home/person/.gnupg --http-proxy 192.168.0.1:6060 And i have a custom script to check for outgoing connections which flags any connections. ...
0
votes
0answers
70 views

GPG error: NODATA, How to correctly setup my server for a apt repository and my apt repository?

i have a repository made by me, im using apache, but i have a critical problem, when i run the command "apt-get update", i got this error in apt: E: GPG error: http://localhost ./ InRelease: ...
0
votes
1answer
95 views

Recover lost ssh key still registered in gpg agent

I've been using a ssh key for a while by opening it using gpg agent. I do remember the gpg agent password, but I don't remember the ssh key. How could I recover the ssh key from the gpg agent?
3
votes
2answers
31 views

Logging shell sessions encrypted?

I log all my shell activity using script, but am worried that there are quite a few passwords and other secret stuff in these log files. Does anybody know of any way of logging the shell sessions in ...
0
votes
2answers
175 views

Compare Key ID of RPM package with Key Fingerprint of RPM-GPG-KEY

During work with RPM packages I frequently need to validate signatures against available GPG keys. Using rpm -qip --nosignature <package.rpm> | grep Signature gives me an Key ID, i.e.: ...
2
votes
1answer
410 views

“gpg-agent is older than us” warning message even after running gpgconf --kill all [closed]

I have installed gpg version 2.2.17 from source. When I run gpg --card-status gpg reports: gpg: WARNING: server 'gpg-agent' is older than us (2.2.4 < 2.2.17). gpg: Note: Outdated servers may ...
1
vote
0answers
305 views

gpg consuming 100% cpu

I'm using gpg (GnuPG) 2.0.22. I'm using it to encrypt my backup files. However, I have observed that once it start encryption, it uses 100% cpu. Any way to avoid this? It's necessary and on priority. ...
0
votes
0answers
356 views

~/.gnupg problem: gpg: WARNING: unsafe ownership on homedir - unable to change permissions

I keep getting this message with the following command: $ chown -R $(whoami) ~/.gnupg/ chown: changing ownership of '/home/chh1/.gnupg/pubring.kbx': Permission denied chown: changing ownership of '/...
1
vote
1answer
60 views

Having trouble installing Vidalia

I am trying to install Vidalia on my Ubuntu 18.04 following this https://people.torproject.org/~sysrqb/webwml/docs/debian-vidalia.html.en However gpg --keyserver keys.gnupg.net --recv 886DDD89 ...
1
vote
0answers
130 views

gpg bad signature clear text

How do you verify a clearsign signature if all you got is the person public key and their clearsign signature, say from an email without a source file. For ex: -----BEGIN PGP SIGNED MESSAGE----- ...
1
vote
1answer
45 views

how can I get gpg to list only my keys?

I would like to query gpg to list only the keys that I own on my local keyring. How is this done? I can see all keys by doing gpg list-keys -- that shows all the keys. I want just my keys.
0
votes
1answer
581 views

How can I fix this gpg error with Backup (deja-dup, duplicity)?

Every day when I have a scheduled backup running, I see this error: Error processing remote manifest (duplicity-inc.20190724T191929Z.to.20190726T191408Z.manifest.gpg): GPG Failed, see log below: ====...
2
votes
0answers
163 views

User input in cronjob

I have created a script which calls another script.I'm implementing this via below cronjob 55 12 * * * cd /backup2 && ./script2.sh The another script ,I'm calling(restore1.sh) requires ...
0
votes
1answer
230 views

How decrypt a file in nano text editor?

I encrypted a text file in terminal using "gpg -c filename" and got "filename.txt.gpg" created in my file manager. I deleted the original unencrypted file. Now I want to decrypt it in Nano so I can ...

1
2 3 4 5
11