Open MrDuartePT opened 9 months ago
I have a similar error from just running tpm2_ptool:
$ tpm2_ptool
Traceback (most recent call last):
File "/usr/bin/tpm2_ptool", line 5, in <module>
from tpm2_pkcs11.tpm2_ptool import main
File "/usr/lib/python3.11/site-packages/tpm2_pkcs11/tpm2_ptool.py", line 6, in <module>
from .commandlets_store import InitCommand # pylint: disable=unused-import # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/tpm2_pkcs11/commandlets_store.py", line 13, in <module>
from .utils import bytes_to_file
File "/usr/lib/python3.11/site-packages/tpm2_pkcs11/utils.py", line 21, in <module>
from tpm2_pytss.ESAPI import ESAPI
File "/usr/lib/python3.11/site-packages/tpm2_pytss/__init__.py", line 2, in <module>
from .ESAPI import ESAPI
File "/usr/lib/python3.11/site-packages/tpm2_pytss/ESAPI.py", line 2, in <module>
from .types import *
File "/usr/lib/python3.11/site-packages/tpm2_pytss/types.py", line 24, in <module>
from tpm2_pytss.internal.crypto import (
File "/usr/lib/python3.11/site-packages/tpm2_pytss/internal/crypto.py", line 223, in <module>
class _MyRSAPrivateNumbers(rsa.RSAPrivateNumbers):
TypeError: type 'cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateNumbers' is not an acceptable base type
$ pacman -Q | grep 'pytss|cryptography|tpm2'
python-cryptography 42.0.5-1
python-tpm2-pytss 2.1.0-3
tpm2-openssl 1.2.0-1
tpm2-pkcs11 1.9.0-1
tpm2-tools 5.6-1
tpm2-totp 0.3.0-2
tpm2-tss 4.0.1-1
tpm2-tss-engine 1.1.0-2
Re: RSAPrivateNumbers error Me, too.
Works fine on one machine, always fails on another. Both are running the same distro, Debian bookworm.
I'm damned if I can see the difference between the two systems.
When I try to import my new created ssh key with ou withouth password I allways get this error: