Questions tagged [openpgp]

The OpenPGP standard was originally derived from PGP (Pretty Good Privacy)

OpenPGP software uses a combination of strong public-key and symmetric cryptography to provide security services for electronic communications and data storage. These services include confidentiality, key management, authentication, and digital signatures.

See also:

362 questions
4
votes
1 answer

GPG key forwarding on Debian

I'm trying to use the private key from my openpgp card from my Debian laptop to a RPi. I followed the different hints found on google, in particular: extra-socket in ~/.gnupg/gpg-agent.conf removed it again when founding that this extra socket…
wollud1969
  • 497
  • 4
  • 13
4
votes
0 answers

Warning: gnupg::adddecryptkey(): get_key failed

I am using gnupg php functions to decrypt a file. With the help of another post on here I managed to get it to list the keys (gnupg_keyinfo) by using gnupg_import and changing the owner of the gnupg directory and chmod permissions. I can also…
Dan
  • 103
  • 1
  • 13
4
votes
1 answer

How to deal with temporary apt-key adv failures?

I have a dockerfile that adds OpenPGP keys on the fly. The problem is the keyserver hkp://pgp.mit.edu:80 fails to respond from time to time. Is there anything I can do to avoid this kind of time wasting failures?
codefx
  • 9,872
  • 16
  • 53
  • 81
4
votes
1 answer

Batch encrypt with public key using Gpg4win command line

We are setting up our first EDI system that relies on incoming and outgoing file encryption using OpenPGP. The incoming files that are encrypted with our public key, we can successfully decrypt using our private key using Gpg4win's command line…
Eds
  • 533
  • 4
  • 16
  • 35
4
votes
1 answer

Looking for a model explaining the internal structure of a PGP-signed & encrypted file

I'm trying to debug & extend an existing piece of Java code using BouncyCastle to decrypt and verify secured attachments. I've looked through the BouncyCastle samples but what it's harder to extract from there is a model of what a PGP-secured…
wishihadabettername
  • 14,231
  • 21
  • 68
  • 85
4
votes
3 answers

Using BouncyCastle with GnuPG 2.1's `pubring.kbx` file

I'm trying to use BouncyCastle with PGP2 to read public keys ring. The problem is that since GnuPG 2.1 it's stored in pubring.kbx instead of pubring.gpg. That leads to IOException public key ring doesn't start with public key tag: tag 0x0 Any idea…
Jakub Kubrynski
  • 13,724
  • 6
  • 60
  • 85
4
votes
2 answers

How to get a public OpenPGP key only knowing its fingerprint?

I have only an OpenPGP key's public fingerprint. I do not know the key ID or almost anything else. How can I get the corresponding public key? Are there any online service to do this?
igorpyan
  • 43
  • 1
  • 3
4
votes
2 answers

OpenPGP library

Is there a library to create OpenPGP keys, or to encrypt a file using OpenPGP?
apaderno
  • 28,547
  • 16
  • 75
  • 90
4
votes
3 answers

Go - Golang openpg - Create Key pair and create signature

I'm currently working on openpgp in combination with golang. I use the following code to generate a new keypair and create a self-signature on the resulting public key: package main import ( "bytes" "crypto" "time" …
Thea Queen
  • 45
  • 1
  • 5
4
votes
1 answer

gpgsm -a --export-secret-key-p12 [keyid] under windows showing error message "No secret key"

have installed the gpg4win version 2.2. I have Successfully created the certificate using gpgsm --gen-key > test.p10 I want to export the created certificate request into pkcs12 format with gpgsm --export-secret-key-p12, but while exporting into p12…
4
votes
1 answer

GPGME Passphrase prompt issue (Ruby)

In the example below, I have tried password and passphrase. Neither seem to allow me to run my code without a openpgp box prompting for the passphrase, the following message: Pinentry Mac "Please enter the passphrase to unlock the secret key for the…
user2012677
  • 5,465
  • 6
  • 51
  • 113
4
votes
1 answer

OpenPGP/X.509 bridge: how to verify public key?

I'd like to use OpenPGP authentication over TLS, but lack of implementations made me use a temporary solution: an OpenPGP/X.509 bridge certificate. The approach is very similar to the approach used in…
Daniele Ricci
  • 571
  • 1
  • 7
  • 28
4
votes
2 answers

How to make an GnuPG key compatible with Pycrypto

I'm trying to use a key generated via GPG with RSA encryption (this part is changeable, GnuPG and Pycrypto aren't) to encrypt a file, but I'm having trouble actually importing the key. I'm currently using code like this: key =…
4
votes
0 answers

What does this ambiguous pronoun represent in the text of RFC 4880?

What does RFC 4880 sec 5.1 mean by "this"? The value "m" in the above formulas is derived from the session key as follows. First, the session key is prefixed with a one-octet algorithm identifier that specifies the symmetric encryption algorithm…
calccrypto
  • 8,583
  • 21
  • 68
  • 99
4
votes
3 answers

Generating PGP keypair, and signing text with an encrypted PGP private key, in Javascript

I'm writing something that needs to do electronic signatures. Some users will be geeks like me and already have their own PGP keys. Most won't, and won't want to futz with installing or maintaining it anyway. As a workaround solution, I want to do…
Sai
  • 6,919
  • 6
  • 42
  • 54