mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-01-17 01:18:06 +00:00
CA cert is also uploaded to perform PKA.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
3c160f69c0
commit
8fd3b4d858
1 changed files with 1 additions and 1 deletions
|
|
@ -275,7 +275,7 @@ def initialize(card, args):
|
||||||
j = get_pki_data('cvc', data=data)
|
j = get_pki_data('cvc', data=data)
|
||||||
print('Device name: '+j['devname'])
|
print('Device name: '+j['devname'])
|
||||||
dataef = base64.urlsafe_b64decode(
|
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, 0xa4, 0x00, 0x00, [0x2f, 0x02])
|
||||||
response = send_apdu(card, 0x20, 0x00, 0x81, list(pin))
|
response = send_apdu(card, 0x20, 0x00, 0x81, list(pin))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue