Yubico / ykneo-openpgp

OpenPGP applet for the YubiKey NEO
https://developers.yubico.com/ykneo-openpgp/
GNU General Public License v2.0
215 stars 67 forks source link

No secert key #57

Open jerryxuqwq opened 4 years ago

jerryxuqwq commented 4 years ago

Hi! I have made an openpgp card. I toggled the main key and using keytocard to send key. Some detail information about the card can be seen after gpg --card-status, like this

Reader ...........: Gemalto GemPC Express 00 00 Application ID ...: D2760001240102007413000000010000 Application type .: OpenPGP Version ..........: 2.0 Manufacturer .....: unknown Serial number ....: 00000001 Name of cardholder: [not set] Language prefs ...: [not set] Salutation .......: URL of public key : [not set] Login data .......: [not set] Signature PIN ....: not forced Key attributes ...: rsa2048 rsa2048 rsa2048 Max. PIN lengths .: 127 127 127 PIN retry counter : 3 3 3 Signature counter : 0 Signature key ....: [none] Encryption key....: AXXXXXXXX99 created ....: 2020-05-19 08:23:57 Authentication key: 3XXXXXXXX 0A91 created ....: 2020-05-19 08:25:04 General key info..: sub rsa2048/68F5XXXXXXXX5XXX099 2020-05-19 XXX XX XXX@XXXXXXXX.com sec rsa2048/5EDXXXXXXXXD9 created: 2020-05-19 expires: never
ssb rsa2048/68FXXXXXXXXF099 created: 2020-05-19 expires: never
ssb rsa2048/A788XXXXXXXXA91 created: 2020-05-19 expires: never

However, when I tied to use the card to sign and decrypt, gpg output

gpg:signing failed: No secret key

Additionally, gpg --secret-key output nothing.