perkeep / perkeep

Perkeep (née Camlistore) is your personal storage system for life: a way of storing, syncing, sharing, modelling and backing up content.
https://perkeep.org/
Apache License 2.0
6.51k stars 449 forks source link

Error while setting up CLI with GPG smartcard (yubikey) #1051

Open NiklasMerz opened 6 years ago

NiklasMerz commented 6 years ago

I just tried to install camput with my gpg key which is on a yubikey. But camput --init throws an error.

> camput -secret-keyring="/home/niklas/.gnupg/secring.gpg" init --gpgkey XXX
Error: Could not find keyId XXX in ring /home/niklas/.gnupg/secring.gpg: openpgp.ReadKeyRing of "/home/niklas/.gnupg/secring.gpg": openpgp: unsupported feature: hash for S2K function: 0

Looks like the Go opengpg library does not support these stubs from GPG smartcards. Is there any method to get that working anyway?

Thanks

NiklasMerz commented 6 years ago

Ok I dug through the Golang issue trackerand I found this CL:https://go-review.googlesource.com/c/crypto/+/32797.