From 8fd3b4d85832c4699d2bc159dee7066bf6095cda Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Mon, 6 Mar 2023 01:01:20 +0100 Subject: [PATCH] CA cert is also uploaded to perform PKA. Signed-off-by: Pol Henarejos --- tools/pico-hsm-tool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/pico-hsm-tool.py b/tools/pico-hsm-tool.py index 390cce1..01bd86f 100644 --- a/tools/pico-hsm-tool.py +++ b/tools/pico-hsm-tool.py @@ -275,7 +275,7 @@ def initialize(card, args): j = get_pki_data('cvc', data=data) print('Device name: '+j['devname']) dataef = base64.urlsafe_b64decode( - j['cvcert']) + base64.urlsafe_b64decode(j['dvcert']) + j['cvcert']) + base64.urlsafe_b64decode(j['dvcert']) + base64.urlsafe_b64decode(j['cacert']) response = send_apdu(card, 0xa4, 0x00, 0x00, [0x2f, 0x02]) response = send_apdu(card, 0x20, 0x00, 0x81, list(pin))