GNU Privacy Guard (GnuPG or GPG) is OpenPGP compliant FOSS alternative to PGP encryption software.
Questions tagged [gpg]
159 questions
94
votes
9 answers
GPG does not have enough entropy
I've got a ton of processes running in the background to try and get enough entropy, but I am still failing.
**We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize…
Joey BagODonuts
- 1,635
- 2
- 16
- 16
65
votes
9 answers
gpg --gen-key hangs at gaining enough entropy on centos 6
Trying to generate a key for a server.
gpg --gen-key
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives…
stormdrain
- 1,377
- 7
- 28
- 51
50
votes
1 answer
How to verify an imported GPG key
I'm new to this PGP thing. Here are my questions:
Verification
When I do this, I'm given the message "This key is not certified with a trusted signature". Is there anyway to make it trusted and better yet what's the proper way for doing…
user192702
- 921
- 4
- 15
- 22
46
votes
6 answers
How to backup GPG?
What are the critical files I need to backup from GPG? I guess my private key would qualify of course, but what else?
jldupont
- 1,779
- 4
- 23
- 27
44
votes
2 answers
GPG - why am I encrypting with subkey instead of primary key?
When encrypting a file to send to a collaborator, I see this message:
gpg: using subkey XXXX instead of primary key YYYY
Why would that be? I've noticed that when they send me an encrypted file, it also appears to be encrypted towards my subkey…
Michael H.
- 543
- 1
- 4
- 15
33
votes
2 answers
How to verify a file using an asc signature file?
As an example, this project offers an *.asc file with a PGP signature to verify the contents of the download (as opposed to a checksum, you can see the empty column): https://ossec.github.io/downloads.html
How would I use this file? I tried gpg…
user8897013
- 443
- 1
- 4
- 7
24
votes
5 answers
How to install gpg keys from behind a firewall?
I understand that keyservers are using the port 11371 but in many cases you are not allowed to connect to this port and you cannot add
There a many cases when you cannot modify the firewall configuration.
Example command that fails
gpg…
sorin
- 7,668
- 24
- 75
- 100
22
votes
4 answers
How to generate gpg key without user interaction?
I found in https://www.gnupg.org/documentation/manuals/gnupg/Unattended-GPG-key-generation.html#Unattended-GPG-key-generation method to generate gpg keys without user interaction, but it doesn't seem to work.
My script is:
#!/usr/bin/env bash
rm -rf…
eijeze
- 415
- 1
- 4
- 10
20
votes
4 answers
How do I import a RSA SSH key into GPG as the _primary_ private key?
I currently have a SSH key that I've used for a while and I'd like to start using GnuPG with a new keyring. However, given that I've used my key for ages, I would like to still use that key in GPG as the main/primary key. I've tried importing the…
SineSwiper
- 2,539
- 3
- 13
- 10
19
votes
5 answers
Using PGP keys for SSH
I use a 4096 byte RSA PGP key; since SSH also uses the RSA standard, is it at all possible to use the PGP key as an SSH key without installing additional software on the server (and as little as possible on the client)?
user18725
- 191
- 1
- 1
- 4
19
votes
3 answers
How to prevent gpg from creating .gnupg directory in user's home directory
I'm trying to run use the gpg tool to encrypt and decrypt files and I would like to know if it's possible to run this tool without it changing a user's global state. Specifically, running gpg for the first time as a given user will cause it to…
Richard Cook
- 293
- 1
- 2
- 6
16
votes
2 answers
Reprepro export could not find signing key
We have a private debian repository that was set up years ago by an earlier system admin. Packages were signed by the older key, 7610DDDE (which I had to revoke), as shown here for the root user on the repo server.
# gpg…
Andy Dorman
- 193
- 2
- 7
16
votes
2 answers
How can I decrypt multiple files in a directory with gpg?
I have a directory with multiple .gpg files, all encrypted with the same passphrase. How can I decrypt them all without entering the passphrase over and over?
Chris Shain
- 481
- 1
- 3
- 11
14
votes
4 answers
Validating signature trust with gpg?
We would like to use gpg signatures to verify some aspects of our
system configuration management tools. Additionally, we would like to
use a "trust" model where individual sysadmin keys are signed with a
master signing key, and then our systems…
larsks
- 41,276
- 13
- 117
- 170
12
votes
3 answers
Encrypted offsite backup using GPG with private key never on backup server?
I have a backup server, that creates xz compressed tar archives of directory trees to be backed up. These tar archives can get huge (multiple TBs), are split into pieces (2.5TB), and each piece is written to a LTO-6 tape, and the tapes go…
oberstet
- 319
- 1
- 4
- 14