ly4k / Certipy

Tool for Active Directory Certificate Services enumeration and abuse
MIT License
2.44k stars 340 forks source link

TypeError: load_pem_private_key() missing 1 required positional argument: 'backend' #145

Closed dean1233 closed 1 year ago

dean1233 commented 1 year ago

I have issue with running make. I got the following error: File "/opt/sdk-2.2.0/src/build/common/pt_creator.py", line 807, in ptCreator.parse(sys.argv[1:]) File "/opt/sdk-2.2.0/src/build/common/pt_creator.py", line 685, in parse private_key = serialization.load_pem_private_key( TypeError: load_pem_private_key() missing 1 required positional argument: 'backend'

Previous solution (https://github.com/ly4k/Certipy/issues/31) mentioned it is related to cryptography and it needs to be 35.0.0. However, mine is already 35.0.0:

pip list | grep cryptography

cryptography 35.0.0

Any suggestions to get over it? Using pycryptodome 3.17 (instead of pycrypto, if it matters)