Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to silence EllipticCurvePublicNumbers.encode_point CryptographyDeprecationWarning when using Paramiko in Python

CryptographyDeprecationWarning:

encode_point has been deprecated on EllipticCurvePublicNumbers and will be removed in a future version. Please use EllipticCurvePublicKey.public_bytes to obtain both compressed and uncompressed point encoding.

like image 735
Rajesh s Avatar asked Feb 25 '19 07:02

Rajesh s


People also ask

Why is paramiko not working in Python?

The 'paramiko' python module depends on the 'cryptography' module. There is a known 'CryptographyDeprecationWarning' problem (see paramiko/paramiko#1369) that can be resolved by installing 'cryptography==2.4.2'. Ignore CryptographyDeprecationWarning in CI.

Does the'paramiko'Python module depend on the'cryptography'module?

The 'paramiko' python module depends on the 'cryptography' module. There is a known 'CryptographyDeprecationWarning' problem (see paramiko/paramiko#1369) that can be resolved by installing 'cryptography==2.4.2'.

Is there a cryptographydeprecationwarning problem with paramiko?

There is a known 'CryptographyDeprecationWarning' problem (see paramiko/paramiko#1369) that can be resolved by installing 'cryptography==2.4.2'. Ignore CryptographyDeprecationWarning in CI. Ignore UserWarning.

How to fix ignore cryptographydeprecationwarning in CI?

Ignore CryptographyDeprecationWarning in CI. The 'paramiko' python module depends on the 'cryptography' module. There is a known 'CryptographyDeprecationWarning' problem (see paramiko/paramiko#1369) that can be resolved by installing 'cryptography==2.4.2'.


1 Answers

This has been fixed in Paramiko 2.5.0 already:
https://www.paramiko.org/changelog.html#2.5.0
https://github.com/paramiko/paramiko/pull/1379
https://github.com/paramiko/paramiko/issues/1369

like image 120
Martin Prikryl Avatar answered Sep 23 '22 14:09

Martin Prikryl