initialize error #100

Closed
opened 2025-07-27 23:52:24 +08:00 by shpinog · 3 comments

Получаю следующию ошибку

uv run --script --active --no-config tools/pico-hsm-tool.py initialize  --so-pin 01234567
Pico HSM Tool v2.4
Author: Pol Henarejos
Report bugs to https://github.com/polhenarejos/pico-hsm/issues


********************************
*   PLEASE READ IT CAREFULLY   *
********************************

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: 049cd894730e91d2ea203ec42cc921f0e3b24e7a5a590b7eb92012be8844094082574a7d23b424295c3469f37380e12207dff2c0f63d12f38938e35a33c7013f64
Traceback (most recent call last):
  File "/home/shpinog/github/fido/pico-hsm/tools/pico-hsm-tool.py", line 571, in <module>
    run()
    ~~~^^
  File "/home/shpinog/github/fido/pico-hsm/tools/pico-hsm-tool.py", line 568, in run
    main(args)
    ~~~~^^^^^^
  File "/home/shpinog/github/fido/pico-hsm/tools/pico-hsm-tool.py", line 542, in main
    initialize(picohsm, args)
    ~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/home/shpinog/github/fido/pico-hsm/tools/pico-hsm-tool.py", line 240, in initialize
    j = get_pki_data('cvc', data=data)
  File "/home/shpinog/github/fido/pico-hsm/tools/pico-hsm-tool.py", line 172, in get_pki_data
    response = urllib.request.urlopen(req)
  File "/usr/lib/python3.13/urllib/request.py", line 189, in urlopen
    return opener.open(url, data, timeout)
           ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/urllib/request.py", line 495, in open
    response = meth(req, response)
  File "/usr/lib/python3.13/urllib/request.py", line 604, in http_response
    response = self.parent.error(
        'http', request, response, code, msg, hdrs)
  File "/usr/lib/python3.13/urllib/request.py", line 533, in error
    return self._call_chain(*args)
           ~~~~~~~~~~~~~~~~^^^^^^^
  File "/usr/lib/python3.13/urllib/request.py", line 466, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.13/urllib/request.py", line 613, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 500: Internal Server Error
Получаю следующию ошибку ``` uv run --script --active --no-config tools/pico-hsm-tool.py initialize --so-pin 01234567 Pico HSM Tool v2.4 Author: Pol Henarejos Report bugs to https://github.com/polhenarejos/pico-hsm/issues ******************************** * PLEASE READ IT CAREFULLY * ******************************** 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: 049cd894730e91d2ea203ec42cc921f0e3b24e7a5a590b7eb92012be8844094082574a7d23b424295c3469f37380e12207dff2c0f63d12f38938e35a33c7013f64 Traceback (most recent call last): File "/home/shpinog/github/fido/pico-hsm/tools/pico-hsm-tool.py", line 571, in <module> run() ~~~^^ File "/home/shpinog/github/fido/pico-hsm/tools/pico-hsm-tool.py", line 568, in run main(args) ~~~~^^^^^^ File "/home/shpinog/github/fido/pico-hsm/tools/pico-hsm-tool.py", line 542, in main initialize(picohsm, args) ~~~~~~~~~~^^^^^^^^^^^^^^^ File "/home/shpinog/github/fido/pico-hsm/tools/pico-hsm-tool.py", line 240, in initialize j = get_pki_data('cvc', data=data) File "/home/shpinog/github/fido/pico-hsm/tools/pico-hsm-tool.py", line 172, in get_pki_data response = urllib.request.urlopen(req) File "/usr/lib/python3.13/urllib/request.py", line 189, in urlopen return opener.open(url, data, timeout) ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.13/urllib/request.py", line 495, in open response = meth(req, response) File "/usr/lib/python3.13/urllib/request.py", line 604, in http_response response = self.parent.error( 'http', request, response, code, msg, hdrs) File "/usr/lib/python3.13/urllib/request.py", line 533, in error return self._call_chain(*args) ~~~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.13/urllib/request.py", line 466, in _call_chain result = func(*args) File "/usr/lib/python3.13/urllib/request.py", line 613, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 500: Internal Server Error ```

Try again.

Try again.

Try again.

[shpinog@archlinux pico-hsm]$ uv run --script --active --no-config tools/pico-hsm-tool.py initialize  --so-pin 01234567
Pico HSM Tool v2.4
Author: Pol Henarejos
Report bugs to https://github.com/polhenarejos/pico-hsm/issues


********************************
*   PLEASE READ IT CAREFULLY   *
********************************

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: 049cd894730e91d2ea203ec42cc921f0e3b24e7a5a590b7eb92012be8844094082574a7d23b424295c3469f37380e12207dff2c0f63d12f38938e35a33c7013f64
Traceback (most recent call last):
  File "/home/shpinog/github/fido/pico-hsm/tools/pico-hsm-tool.py", line 571, in <module>
    run()
    ~~~^^
  File "/home/shpinog/github/fido/pico-hsm/tools/pico-hsm-tool.py", line 568, in run
    main(args)
    ~~~~^^^^^^
  File "/home/shpinog/github/fido/pico-hsm/tools/pico-hsm-tool.py", line 542, in main
    initialize(picohsm, args)
    ~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/home/shpinog/github/fido/pico-hsm/tools/pico-hsm-tool.py", line 240, in initialize
    j = get_pki_data('cvc', data=data)
  File "/home/shpinog/github/fido/pico-hsm/tools/pico-hsm-tool.py", line 172, in get_pki_data
    response = urllib.request.urlopen(req)
  File "/usr/lib/python3.13/urllib/request.py", line 189, in urlopen
    return opener.open(url, data, timeout)
           ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/urllib/request.py", line 495, in open
    response = meth(req, response)
  File "/usr/lib/python3.13/urllib/request.py", line 604, in http_response
    response = self.parent.error(
        'http', request, response, code, msg, hdrs)
  File "/usr/lib/python3.13/urllib/request.py", line 533, in error
    return self._call_chain(*args)
           ~~~~~~~~~~~~~~~~^^^^^^^
  File "/usr/lib/python3.13/urllib/request.py", line 466, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.13/urllib/request.py", line 613, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 500: Internal Server Error

I still get the same error

> Try again. ``` [shpinog@archlinux pico-hsm]$ uv run --script --active --no-config tools/pico-hsm-tool.py initialize --so-pin 01234567 Pico HSM Tool v2.4 Author: Pol Henarejos Report bugs to https://github.com/polhenarejos/pico-hsm/issues ******************************** * PLEASE READ IT CAREFULLY * ******************************** 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: 049cd894730e91d2ea203ec42cc921f0e3b24e7a5a590b7eb92012be8844094082574a7d23b424295c3469f37380e12207dff2c0f63d12f38938e35a33c7013f64 Traceback (most recent call last): File "/home/shpinog/github/fido/pico-hsm/tools/pico-hsm-tool.py", line 571, in <module> run() ~~~^^ File "/home/shpinog/github/fido/pico-hsm/tools/pico-hsm-tool.py", line 568, in run main(args) ~~~~^^^^^^ File "/home/shpinog/github/fido/pico-hsm/tools/pico-hsm-tool.py", line 542, in main initialize(picohsm, args) ~~~~~~~~~~^^^^^^^^^^^^^^^ File "/home/shpinog/github/fido/pico-hsm/tools/pico-hsm-tool.py", line 240, in initialize j = get_pki_data('cvc', data=data) File "/home/shpinog/github/fido/pico-hsm/tools/pico-hsm-tool.py", line 172, in get_pki_data response = urllib.request.urlopen(req) File "/usr/lib/python3.13/urllib/request.py", line 189, in urlopen return opener.open(url, data, timeout) ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.13/urllib/request.py", line 495, in open response = meth(req, response) File "/usr/lib/python3.13/urllib/request.py", line 604, in http_response response = self.parent.error( 'http', request, response, code, msg, hdrs) File "/usr/lib/python3.13/urllib/request.py", line 533, in error return self._call_chain(*args) ~~~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.13/urllib/request.py", line 466, in _call_chain result = func(*args) File "/usr/lib/python3.13/urllib/request.py", line 613, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 500: Internal Server Error ``` I still get the same error

Should be fixed now. Reopen if still persists.

Should be fixed now. Reopen if still persists.
Sign in to join this conversation.