FAQ Database Discussion Community


How to query version of an OpenPGP public key

openpgp
While reading RFC 4880 for OpenPGP, I read about version 3 and version 4 of OpenPGP keys. I do not understand what these versions mean other than specifying the packet format. How can I find out a version of a key? I know for code we can use Bounce Castle's...

How to use GnuPG inside Docker containers, as it is missing entropy?

docker,gnupg,entropy,openpgp
I need to dockerize an apt repository. The packages in it need to be signed, which is currently done by aptly publish snapshot -distribution="stable" -gpg-key="<key id>" my-snapshot Before that a key needs to be created using gpg --gen-key. But this way the private key will be crated inside the docker...

What is the point of maven's OpenPGP signatures if anyone can create and upload any keys?

maven,gnupg,sonatype,openpgp
Sonatype requires the (non-SNAPSHOT version) artifacts to be GPG-signed; the public OpenPGP keys should be uploaded to a (MIT) key server. But anyone can create any OpenPGP key with any name an e-mail and upload them to the key server. There is (as far as I know; or am I...

Unable to construct VERIFY_PIN_DIRECT control command

smartcard,apdu,smartcard-reader,openpgp,pcsc
I'm writing a JAVA-app to access my OpenPGP-Card V2.0. The card terminal im using is a "REINER SCT cyberJack RFID standard" which only supports PC/SC under OSX, and now I want to implement the PC/SC 2.0-command "VERIFY_PIN_DIRECT". I tried the following control sequence, the bytes after the | are the...

openpgp.js on wp8 error

javascript,cordova,windows-phone-8,openpgp,openpgp.js
I'm using an openPgpJs library in my app, created with Apache Cordova. Here's the part of the code: var publicKey = openpgp.key.readArmored(_publicKey); openpgp.encryptMessage(publicKey.keys, text).then(function (pgpMessage) { // success callback(pgpMessage); }).catch(function (error) { // failure console.error(error); }); It works fine but not on WP8. If fails, 'cause openpgp var is undefined....

Go - Golang openpg - Create Key pair and create signature

go,gnupg,pgp,openpgp
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" "golang.org/x/crypto/openpgp" "golang.org/x/crypto/openpgp/armor" "golang.org/x/crypto/openpgp/packet" "fmt" ) //Create ASscii Armor from openpgp.Entity func PubEntToAsciiArmor(pubEnt *openpgp.Entity) (asciiEntity string)...