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
3
votes
1 answer

GPG sign not using keys from gpg-connect-agent

I'm trying to make PGP keys sharing from Windows 10 to WSL 2 with Ubuntu 20.04. I'm using this tool: https://github.com/BlackReloaded/wsl2-ssh-pageant My current situation is that with gpg-connect-agent 'keyinfo --list' /bye all my Windows GPG keys…
Claudio Weiler
  • 589
  • 2
  • 15
3
votes
2 answers

Misformed armored text error when loading key using OpenPGP

I'm trying to decrypt a file encrypted with GnuPG 2.2.28 using the Node.js package openPGP, but I can't even seem to load the private key to start with and I get the following error: { "errorType": "Runtime.UnhandledPromiseRejection", …
craigcaulfield
  • 3,381
  • 10
  • 32
  • 40
3
votes
3 answers

Creating OpenPGP messages in Java using FIPS 140-2 library

I am currently upgrading an application that generates OpenPGP messages to be FIPS 140-2 compliant. Currently I generate PGP messages that use RSA/AES-256 encryption which are both approved algorithms using BouncyCastle and its OpenPGP provider. I…
Michael
  • 2,460
  • 3
  • 27
  • 47
3
votes
1 answer

OpenPGPkeyserver No keys found after Submit OpenPGP Public Key

When I submit a new Key in http://hkps.pool.sks-keyservers.net/ it returns 200 OK and the following body: 1 key(s) added successfully. Key block added to key server database. New public keys added: Yet, I am not sure if the key was successfully…
Miguel Gamboa
  • 8,855
  • 7
  • 47
  • 94
3
votes
1 answer

Can you manually add a comment to a PGP public key block and not break it?

Pretend that the following is a valid PGP PUBLIC KEY BLOCK: -----BEGIN PGP PUBLIC KEY…
NYCeyes
  • 5,215
  • 6
  • 57
  • 64
3
votes
2 answers

How to generate OpenPGP KeyPair without passphrase using BouncyCastle?

I'm working on a project which needs to generate GPG-Keys for public-key encryption. My language of choice for it is Scala and the library for the cryptographic stuff is BouncyCastle Key generation works fine, but I can't find a way to generate keys…
jsadfeew
  • 2,247
  • 1
  • 18
  • 25
3
votes
0 answers

Unable to send/upload pgp keys to keyservers

C:\Users\shiny>gpg --send-keys 170AD0000539A3B gpg: sending key 170AD0000539A3B to hkps://hkps.pool.sks-keyservers.net gpg: keyserver send failed: Server indicated a failure gpg: keyserver send failed: Server indicated a failure gpg --send-keys…
Shiny
  • 161
  • 1
  • 1
  • 9
3
votes
1 answer

Decrypting a non ASCII armored PGP file in Go

Is it possible to decrypt binary .PGP file with Go's "golang.org/x/crypto/openpgp" library? The following code works with an armored ASCII encoded file but throws EOF error with a binary PGP file. Is there a similar function to armor.Decode() that…
Daniel Alderman
  • 137
  • 3
  • 11
3
votes
2 answers

No Valid GPG found while installing kubernetes

Error while adding kubernetes key curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - gpg: no valid OpenPGP data found. I tried using wget verbose command wget --no-check-certificate -vO -…
sushma
  • 43
  • 1
  • 6
3
votes
2 answers

Can an OpenPGP public and private key pair can have different key ID (short key ID)?

Can an OpenPGP public and a private key pair, which can be used for encryption and decryption successfully, have different key IDs (short key IDs)? What I have tried: I have used Bouncy Castle (C#) to get the short key id for a test OpenPGP public…
A_m0
  • 974
  • 2
  • 17
  • 45
3
votes
1 answer

Ionic 2 and openpgp equals no errors but app does not bootup

I have a working ionic 2 app. I wanted to add the openpgp library. So I did a npm install and then added the typings. Webpacks fine but now I get no errors, just a white screen. If I comment out the import * as openpgp from 'openpgp' the app…
Eric G
  • 935
  • 12
  • 21
3
votes
2 answers

Travis: gpg: signing failed: secret key not available

I try to deploy my opensource project to Nexus Repository (https://oss.sonatype.org) using the travis ci, but unfortunately travis doesn't found the secret key for gpg signed step. I follow all steps on…
Nbento
  • 185
  • 3
  • 10
3
votes
1 answer

Expected GPG user ID for Maven Central artifacts?

I was going through the (seemingly intricate) procedures for getting a company's artifact on Maven Central. Then I got to the GPG signing part and entered a new world of confusion and conundrums. GPG has so many options, and it's not evident what a…
Garret Wilson
  • 18,219
  • 30
  • 144
  • 272
3
votes
1 answer

Bouncy Castle as provider v/s Bouncy Castle API

I have a case where I need to encrypt some files using OpenPGP. I am using Bouncy Castle to do so. As I understand it Bouncy Castle encryption can be used in java in two ways: I add Bouncy Castle as a provider and continue to use the standard Java…
user2078217
  • 129
  • 2
  • 12
3
votes
1 answer

Encrypting file using GnuPG on command line hangs forever

There is one file I want to encrypt with GnuPG by gpg2 --homedir=~/.gnupg --always-trust=true --recipient="BlahBlah" --encrypt=/path/to/file --output=/path/to/output_file However this command seems to hang forever and never return.…
Xinwei Liu
  • 333
  • 6
  • 15