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
Add a support for modern Key serialization into Transport class. Currently only support of PKCS#1 is present, modern serialization PKCS8 could not be used.
Eg. RSA key generated with:
from cryptography.hazmat.primitives.asymmetric import rsa
from cryptography.hazmat.primitives import serialization
RSAKeyGen = rsa.generate_private_key(public_exponent=65537,key_size=4096)
RSAPem = RSAKeyGen.private_bytes(
encoding=serialization.Encoding.PEM,
format=serialization.PrivateFormat.PKCS8,
encryption_algorithm=serialization.NoEncryption())
with open("./serverKey.pem", "wb") as f:
f.write(RSAPem)
Should be usable and not raise SSHException("'not a valid RSA private key file'") while loading the RSA key by paramiko RSAKey class
Activity
bskinn commentedon Nov 25, 2022
Flagging this to include/consider in the key/auth rewrite of #387.
Thanks for the suggestion, @Jan-Sedlacek!
abhishekthukaram commentedon Mar 5, 2023
Hi @Jan-Sedlacek and @bskinn : Any update on the support of PKCS8 in paramiko , I am getting the same issue when using the paramiko library
bskinn commentedon Mar 5, 2023
@abhishekthukaram -- bitprophet is now in the beginning stages of the key/auth rewrite -- all things keys should be much better soon.