ilo4_toolbox icon indicating copy to clipboard operation
ilo4_toolbox copied to clipboard

RSA key format is not supported

Open SamuelGaudemer opened this issue 2 years ago • 2 comments

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

SamuelGaudemer avatar Jun 22 '22 14:06 SamuelGaudemer

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

sultanqasim avatar Nov 09 '22 19:11 sultanqasim

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

nikaiw avatar Jan 16 '24 18:01 nikaiw