go-piv / piv-go

Keys and certificates for YubiKeys, written in Go
Apache License 2.0
368 stars 65 forks source link

RSA stored with OpenPGP #86

Closed tcastelly closed 3 years ago

tcastelly commented 3 years ago

Hello,

Thank you very much for this project. On my Yubikey I imported RSA keys to be able to sign/encrypt/authenticate. I use OpenPGP for this. I'm wondering if I can use this project to do the same.

My PublicKeyAlgorithm is ECDSA, so I guess it's the "internal" certificat of my Yubikey not my imported keys.

Thanks.

ericchiang commented 3 years ago

My understanding is that PIV applet and the GPG applet are separate on Yubikeys, and that you can't important keys generated in one through another.

https://support.yubico.com/hc/en-us/articles/360013645480-Resetting-the-Smart-Card-PIV-Applet-on-Your-YubiKey

https://support.yubico.com/hc/en-us/articles/360013761339-Resetting-the-OpenPGP-Applet-on-the-YubiKey