Open sevenbitbyte opened 6 months ago
GnuPG is defaulting to interactive mode when gpg --card-edit
is called. I was able to get input/output working but the protocol is a mix of other output formats so needs more parsing. Makes me wonder if other parts of the library could do a better job parsing output using the --status-fd
and --command-fd
flags.
https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=blob_plain;f=doc/DETAILS
Derp, silly me, I already wrote a --status-fd
parser. Seems like maybe just missing a few
https://github.com/datapartyjs/gpg-promised/blob/master/src/gpg-parser.js#L252-L260
🚀 Feature Proposal
Support setting up a SmartCard with new keys and changing typical personalization settings.
Should support highly featured SmartCards like the Yubikey 4 and above and also traditional credit card format devices like the OpenPGP card. Research ways to support re-programmable JavaCards, it would be nice to be able to flash firmware onto card blanks.
command-fd
parsingGET_BOOL
GET_LINE
GET_HIDDEN
GOT_IT
USERID_HINT
NEED_PASSPHRASE
NEED_PASSPHRASE_SYM
NEED_PASSPHRASE_PIN
MISSING_PASSPHRASE
BAD_PASSPHRASE
GOOD_PASSPHRASE
CARDCTL
- Parse op codesSC_OP_FAILURE
- Parse op codeNOTE
- parser same asWARNING
https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=blob_plain;f=doc/DETAILS