Merge pull request #3 from kevgliss/hotfix/upload
API change in cryptography
This commit is contained in:
commit
b1f93c5dd2
@ -90,7 +90,7 @@ def private_key_str(value, name):
|
|||||||
:return: :raise ValueError:
|
:return: :raise ValueError:
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
serialization.load_pem_private_key(str(value), backend=default_backend())
|
serialization.load_pem_private_key(str(value), None, backend=default_backend())
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise ValueError("The parameter '{0}' needs to be a valid RSA private key".format(name))
|
raise ValueError("The parameter '{0}' needs to be a valid RSA private key".format(name))
|
||||||
return value
|
return value
|
||||||
|
Loading…
Reference in New Issue
Block a user