initializing ESP32 #109
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
hi
I built the image for ESP32-S3 board
built and flashed ok
also while sending get random APDU im getting good results
but while trying to initialize it using the python script im getting an error
is there other way to initialize ESP32 boards? (on rp2040 its all good)?
thanks
$ python3 pico-hsm-tool.py initialize
Pico HSM Tool v1.14
Author: Pol Henarejos
Report bugs to https://github.com/polhenarejos/pico-hsm/issues
This tool will erase and reset your device. It will delete all private and secret keys.
Are you sure?
[Press enter to confirm]
Public Point: 04b4d591d267773a2246afd677eac2553ce9e35577d1bdc8d80dfbc693d0c5e4efecb9a7706806d3e33aa971efeaf7ad963e29bbb9a17a48a8e91b1656128eee7c
Traceback (most recent call last):
File "/home/bina/projects/pico/pico-hsm/tools/pico-hsm-tool.py", line 509, in
run()
File "/home/bina/projects/pico/pico-hsm/tools/pico-hsm-tool.py", line 506, in run
main(args)
File "/home/bina/projects/pico/pico-hsm/tools/pico-hsm-tool.py", line 485, in main
initialize(picohsm, args)
File "/home/bina/projects/pico/pico-hsm/tools/pico-hsm-tool.py", line 215, in initialize
j = get_pki_data('cvc', data=data)
File "/home/bina/projects/pico/pico-hsm/tools/pico-hsm-tool.py", line 151, in get_pki_data
response = urllib.request.urlopen(req)
File "/usr/lib/python3.9/urllib/request.py", line 214, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.9/urllib/request.py", line 523, in open
response = meth(req, response)
File "/usr/lib/python3.9/urllib/request.py", line 632, in http_response
response = self.parent.error(
File "/usr/lib/python3.9/urllib/request.py", line 561, in error
return self._call_chain(*args)
File "/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain
result = func(*args)
File "/usr/lib/python3.9/urllib/request.py", line 641, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 500: Internal Server Error
update:
after reinstall all python iv got this message:
python3 pico-hsm-tool.py initializePico HSM Tool v2.4
Author: Pol Henarejos
Report bugs to https://github.com/polhenarejos/pico-hsm/issues
Traceback (most recent call last):
File "/home/bina/projects/pico/new56/pico-hsm/tools/pico-hsm-tool.py", line 642, in
run()
File "/home/bina/projects/pico/new56/pico-hsm/tools/pico-hsm-tool.py", line 639, in run
main(args)
File "/home/bina/projects/pico/new56/pico-hsm/tools/pico-hsm-tool.py", line 607, in main
picohsm = PicoHSM(args.pin, slot=args.slot)
File "/home/bina/.local/lib/python3.9/site-packages/picohsm/PicoHSM.py", line 225, in init
self.__card.connect()
File "/usr/local/lib/python3.9/dist-packages/pyscard-2.3.1-py3.9-linux-x86_64.egg/smartcard/CardConnectionDecorator.py", line 52, in connect
self.component.connect(protocol, mode, disposition)
File "/usr/local/lib/python3.9/dist-packages/pyscard-2.3.1-py3.9-linux-x86_64.egg/smartcard/pcsc/PCSCCardConnection.py", line 159, in connect
raise CardConnectionException("Context already released")
smartcard.Exceptions.CardConnectionException: Context already released
Try installing an older version of pyscard
on linux i succeeded
but on windows , always get raise Exception('time-out: no card inserted')
tried all versions
thanks