CA cert is also uploaded to perform PKA.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2023-03-06 01:01:20 +01:00
parent 3c160f69c0
commit 8fd3b4d858
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -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))