airbus-seclab / ilo4_toolbox

Toolbox for HPE iLO4 & iLO5 analysis
GNU General Public License v2.0
414 stars 80 forks source link

RSA key format is not supported #23

Open scamwork opened 2 years ago

scamwork commented 2 years ago

Hello,

I have this value error when i'm launching : python ilo5_fw_decrypt.py --infile ilo5_235.bin

Traceback (most recent call last): File "/home/kali/Desktop/ILO_TOOLBOX/ilo4_toolbox/scripts/iLO5/ilo5_fw_decrypt.py", line 82, in <module> rsa_pkey = load_private_key() File "/home/kali/Desktop/ILO_TOOLBOX/ilo4_toolbox/scripts/iLO5/ilo5_fw_decrypt.py", line 50, in load_private_key pkey = RSA.import_key(key_buffer, passphrase=pem_password_cb()) File "/usr/local/lib/python3.10/dist-packages/Crypto/PublicKey/RSA.py", line 736, in import_key return _import_keyDER(der, passphrase) File "/usr/local/lib/python3.10/dist-packages/Crypto/PublicKey/RSA.py", line 679, in _import_keyDER raise ValueError("RSA key format is not supported") ValueError: RSA key format is not supported

I have pycryptodome 3.6.5. I use the same rsa_private_key_ilo5.asc file. I don't know why this error appears ?

thanks for your help, Best regards

sultanqasim commented 2 years ago

See my fix: https://github.com/airbus-seclab/ilo4_toolbox/pull/22

nikaiw commented 9 months ago

can you confirm if you still have the issue with the PR ?