You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If none of that works, please make sure to include the following information in
your bug report:
I stumbled on this issue while using paramiko when attempting to load an OpenSSH private key. Using cryptography 3.1, I experience an this issue: ValueError: ('Invalid private key', [_OpenSSLErrorWithText(code=67764350, lib=4, func=160, reason=126, reason_text=b'error:040A007E:rsa routines:RSA_check_key_ex:iqmp not inverse of q')])
I uninstalled cryptography and reinstalled version 3.0 and the issue was resolved. The key loads fine.
To generate the type of key I experienced the issue with I ran this command: ssh-keygen -o -t rsa -b 4096 -C "[email protected]" -f test_rsa
Then pointing to that new key, I try to load the key using paramiko: python -c "import paramiko;paramiko.RSAKey.from_private_key_file('test_rsa')"
I apologize I am not showing steps to reproduce with cryptography. Hopefully, I was not in error posting this here.
The text was updated successfully, but these errors were encountered:
setuptools
andpip
:Successfully installed pip-20.2.2
openssl is already the newest version (1.1.1-1ubuntu2.1~18.04.6)
cryptography
:If none of that works, please make sure to include the following information in
your bug report:
I stumbled on this issue while using paramiko when attempting to load an OpenSSH private key. Using cryptography 3.1, I experience an this issue:
ValueError: ('Invalid private key', [_OpenSSLErrorWithText(code=67764350, lib=4, func=160, reason=126, reason_text=b'error:040A007E:rsa routines:RSA_check_key_ex:iqmp not inverse of q')])
I uninstalled cryptography and reinstalled version 3.0 and the issue was resolved. The key loads fine.
To generate the type of key I experienced the issue with I ran this command:
ssh-keygen -o -t rsa -b 4096 -C "[email protected]" -f test_rsa
Then pointing to that new key, I try to load the key using paramiko:
python -c "import paramiko;paramiko.RSAKey.from_private_key_file('test_rsa')"
I apologize I am not showing steps to reproduce with cryptography. Hopefully, I was not in error posting this here.
The text was updated successfully, but these errors were encountered: