add der print sketch

This commit is contained in:
merlokk 2018-11-14 18:44:17 +02:00
commit 5e3fa42c23
3 changed files with 5 additions and 2 deletions

View file

@ -340,6 +340,9 @@ int CmdHFFidoRegister(const char *cmd) {
uint8_t public_key[65] = {0};
// TODO: print DER certificate in DER view
PrintAndLog("----------------DER TLV-----------------");
asn1_print(&buf[67 + keyHandleLen], derLen, " ");
PrintAndLog("----------------DER TLV-----------------");
// load CA's
mbedtls_x509_crt cacert;