[Cryptography-dev] Certificates with RSASSA_PSS

2022-03-08 Thread Doran, Andrew
Hi, We are using the cryptography module with pyWinRM to run PowerShell scripts on Windows servers from Linux. We have a situation where this fails because of a certificate issue. If we edit oid.py to add:- SignatureAlgorithmOID.RSASSA_PSS: hashes.SHA256() to the dictionary _SIG_OIDS_TO_HASH,

Re: [Cryptography-dev] Certificates with RSASSA_PSS

2022-03-08 Thread Alex Gaynor
Hi Andrew, Unfortunately fully supporting PSS certificates is not merely a matter of adding a value to SIG_OIDS_TO_HASH. This is tracked in https://github.com/pyca/cryptography/issues/2850 and https://github.com/pyca/cryptography/issues/4858. However, if that PR works for you, then you can likely