GNU Privacy Guard (GnuPG or GPG) is OpenPGP compliant FOSS alternative to PGP encryption software.
Questions tagged [gpg]
162 questions
6
votes
3 answers
General GnuPG tips
Prompted by the recent vulnerability in SHA-1 and admonitions to begin the process of moving away from that hash function, I'm playing around with GnuPG again. I was just wondering how other folks use the system. Use these questions as prompts,…

Drew Stephens
- 662
- 7
- 12
6
votes
3 answers
GPG doesn't work in crontab
I have the following script:
#!/bin/sh -e
PWD="supersecretpassword"
file="/backup/2do/example.txt"
echo before
echo $PWD | gpg --passphrase-fd 0 -c $file
echo after
The scripts works perfectly fine if executed manually, but simply stops working…

MrG
- 289
- 3
- 10
6
votes
5 answers
user GPG key not able to be used by SUDO
I created a script that runs duplicity to backup files I have on a VPS,and uses a GPG key that I generated as a user.
When I try and run this script as SUDO I get:
GPGError: GPG Failed, see log below:
===== Begin GnuPG log =====
gpg: C7B2Y6DO:…

BassKozz
- 645
- 2
- 8
- 15
5
votes
2 answers
Why do I get this APT warning: Signature by key [...] uses weak digest algorithm (SHA1)?
I'm hosting a private Debian repository for some custom Raspberry Pi code. I originally built the software on Raspbian Jessie (version 8), generated a GPG key which I use to sign the repository, and ran sudo apt-key add ... on all the devices, to…

soapergem
- 719
- 4
- 13
- 29
5
votes
1 answer
How can I set up automated, encrypted backups of live MySQL databases on a Ubuntu VPS to Google Drive using Duplicity?
We're using DigitalOcean as our VPS provider. They have a tutorial on how to set up Duplicity for encrypted backups, but it doesn't cover database backups or the Google Drive endpoint.
I found a few other tutorials online regarding Duplicity and…

alexw
- 371
- 3
- 12
5
votes
1 answer
How to export private key? (GnuPG)
I have successfully created GnuPG public/private key pair using RSA and RSA algorithm. How can I export a public key and private key in the form of file with the .asc extension?

rancho
- 181
- 1
- 1
- 4
5
votes
1 answer
Cannot update Debian Wheezy due to GPG error (NODATA)
I have a server running on Debian Wheezy.
It's apt source file has following configuration:
deb http://ftp.uk.debian.org/debian/ wheezy main non-free contrib
deb-src http://ftp.uk.debian.org/debian/ wheezy main non-free contrib
deb…

Lashae
- 183
- 1
- 12
5
votes
1 answer
How do you enable the storing of GPG / PGP keys in OpenLDAP
I've searched high and low trying to find a method that allows me to store GPG keys for existing users in an OpenLDAP server. The only relevant how-to I've found is this. However, I'm unable to get this method to work with the existing OpenLDAP…

zymhan
- 1,371
- 1
- 17
- 30
5
votes
3 answers
GPG/PGP Signatures & Encryption - An Academic Security Question
Digital Signatures
Digital signatures take place whereby you apply your private key to a particular message (or the hash of that message in most cases).
The recipient then takes your public key - not surprisingly publicly available - and then…

khosrow
- 4,163
- 3
- 27
- 33
5
votes
3 answers
PGP: on the web, what if everything was tampered?
I am trying to wrap my head around how Public Key Cryptography can really work in a secure manner.
From what I can gather, you go to example.com and download their PGP/GPG Public Key and add it to your keyring. They then send you a text file (or…

Ken R.
- 63
- 2
5
votes
4 answers
Ubuntu add repo app-key fails
On Ubuntu 20.04 LTS, I'm trying to install packages like MongoDB, Sublime Text 3 etc. but before adding them their repo url must be added.
I'm trying this command:
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add…

Shah-G
- 183
- 3
- 11
4
votes
1 answer
gpg-agent: fatal error in syslog on ssh login
In the syslog for my Ubuntu server, there is an error that appears whenever I log in using an SSH user account.
systemd[27299]: usr/bin/gpg-agent failed (exitcode=2): General error
systemd[27299]: gpgconf: fatal error (exit status 1)
systemd[27299]:…

John Doe
- 323
- 3
- 16
4
votes
1 answer
How do I successfully import public key 94532124541922FB into GPG?
I think I need to have the key 94532124541922FB in my keyring as multistrap is reporting:
W: GPG error: http://packages.roundr.devuan.org/merged ascii InRelease: The following signatures couldn't be verified because the public key is not available:…

fadedbee
- 2,068
- 5
- 24
- 36
4
votes
1 answer
How to reposync saltstack? reposync failing with error message `Removing [...], due to missing GPG key.`
On a RHEL 7.4 system, I add the salt-latest repo as follows:
yum -y install https://repo.saltstack.com/yum/redhat/salt-repo-latest-2.el7.noarch.rpm
Notice, amongst other things, this creates the following two GPG key…

Edward Ned Harvey
- 512
- 3
- 6
- 14
4
votes
1 answer
force ssh to use agent, without fallback to directly accessing the IdentityFile
Company policy requires some ssh keys to be stored securely, e.g. on dedicated USB device. Using keys not stored on the host machine works flawlessly using gnupg with enable-ssh-support, even when multiple keys are used:
Host example.com
…

anx
- 8,963
- 5
- 24
- 48