Questions tagged [gpg]

GNU Privacy Guard (GnuPG or GPG) is OpenPGP compliant FOSS alternative to PGP encryption software.

162 questions
2
votes
1 answer

Are PGP Universal keys compatible with the openPGP standard?

I'm having issues importing a PGP Universal Public key on a system that supports openPGP. Are these two different standards/formats? Should they be compatible?
Mike B
  • 11,871
  • 42
  • 107
  • 168
2
votes
2 answers

Different results from GnuPG and OpenSSL when using AES256 encryption

Text: apple Pass: password openssl aes-256-cbc -e -a -in apple.txt Output: U2FsdGVkX1/sqDrVkgk/7dKiCfLW+1/bgvRT/YAopJQ= gpg -c --cipher-algo AES256 apple.txt Output:…
Howard
  • 2,135
  • 13
  • 48
  • 72
2
votes
1 answer

List all gpg encrypted files that include a given recipient

An employee will be leaving our company, and we have a directory tree containing a number of files, each holding a password for a specific service, and each file is encrypted to those who require it. I'd like to try and list all the files which…
DanH
  • 827
  • 2
  • 9
  • 26
2
votes
1 answer

gpg key and what is it for? GPG key retrieval failed error

What is a gpg key and why do i need it? I get this nagging error when i install a fresh centos vps machine: GPG key retrieval failed: [Errno 5] OSError: [Errno 2] No such file or directory: '/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL'
chrisjlee
  • 1,005
  • 2
  • 13
  • 21
2
votes
1 answer

Duplicity restore reports "Invalid SSH password" when I'm using a private key for connection

I'm testing the restoration of a backup with duplicity 0.6.15. I can login to my backup server just fine using ssh and sftp using the following commands and my private key: ...sftp root@client:~# sftp -oPort=7843 backupUser@192.168.x.x Enter…
leeand00
  • 4,869
  • 15
  • 69
  • 110
2
votes
1 answer

PGP Encryption Proxy for Mail Server

I have a friend who is located in a part of the world that makes email encryption prudent for them. While I recommended OpenPGP, my friend thinks that it would have too high of a setup requirement for many of the people that would be sending them…
woodsbw
  • 569
  • 2
  • 7
  • 18
2
votes
2 answers

Validating GPG key signature authenticity

I'm trying to validate the integrity of my httpd-2.2.17.tar.gz image. I followed the steps written in the following pages: http://httpd.apache.org/download.cgi#verify http://httpd.apache.org/dev/verification.html#Validating But I got: WARNING:…
Dor
  • 165
  • 1
  • 3
  • 12
2
votes
1 answer

GPG key server for internal network

I'm looking for some software that works just like the public key servers but will only serve keys for a local network, hence the server needs to not sync with the public network. Can anyone suggest any software that can do this and how to configure…
Rwky
  • 774
  • 1
  • 8
  • 17
2
votes
2 answers

what are the minimal user permissions required to scp files to a remote server?

I want to setup a cron job to transfer data from one host (A) to another (B). My understanding so far is that I will have to create a user on machine B, so that scp can copy the files to a folder in the users home directory. However, I do not want…
user35402
  • 1,171
  • 3
  • 10
  • 18
2
votes
9 answers

Output/pipe ntbackup directly to GPG

Currently, we can perform and encrypt a Windows backup with ntbackup and GPG in 2 separate steps in a batch script, as below: ntbackup backup "@selection_file.bks" /f "backup_file.bak" gpg --recipient "recipient" --encrypt "backup_file.bak" --output…
nedm
  • 5,630
  • 5
  • 32
  • 52
2
votes
0 answers

GPG hangs when using a Yubikey

I am trying to debug why all of the sudden my Yubikey is taking very long to access. The Yubikey holds a GPG private key, that is then used for GPG and SSH. It was working just fine for several months and now it is taking several seconds just to…
cdecker
  • 411
  • 2
  • 5
  • 18
2
votes
2 answers

What are required environment variables for GPG?

I'm trying to setup the docker credentials, and it requires to initialize the gpg first. Here are my steps: root@remote_machine:~# gpg --gen-key gpg (GnuPG) 2.2.4; Copyright (C) 2017…
2
votes
0 answers

What is GPG equivalent of ssh-add?

When using password-secured SSH keys I can use ssh-add to preemptively unlock a key before it needs to be used and have it cached in ssh-agent for future use. What is a GPG equivalent of ssh-add? I know how to increase the caching time of GPG keys…
Jan Stolarek
  • 255
  • 1
  • 3
  • 8
1
vote
1 answer

Use ssh key on GPG card to decrypt data

When a Windows instance is created in AWS, its password is encrypted using the public part of an SSH key. It's then possible to use the following command to retrieve the encrypted password: aws ec2 get-password-data…
a-h
  • 111
  • 3
1
vote
1 answer

How to lock / unlock a gpg hardware token via script

I would like to execute gpg --card-edit; verify; quit non-interactively to unlock a gpg hardware token (i.e. smartcard or yubikey). My usecase is: Enter a password e.g. via ssh Store it in the kernel keyring Pass it to the hardware token when…
Reiner Rottmann
  • 633
  • 1
  • 7
  • 19