Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cloudvision/Connector: Use SHA256 to sign the CSR
0. Currently the cloudvision-python package pins the lib `cryptography` to 39.X.Y, as 40.0.X has breaking changes for our use-case. 1. Also, the package is using the same signing algorithm as of client/user's certificate. But there is no such a hard requirement. It can use any acceptable signing algorithm. 2. `cryptography version 40.0.0 onwards, the lib has restricted the choices of hashing algorithm to be used for signing a CSR i.e. `CertificateSigningRequestBuilder.sign()` has restricted the acceptable types of signing algorithm from `typing.Optional[hashes.HashAlgorithm]` to `typing.Optional[_AllowedHashTypes]` where `_AllowedHashTypes` is a subset of `hashes.HashAlgorithm`. 3. The backward incompatible change #2 in `cryptography` along with the hard requirement as per #1 together blocks the cloudvision-python package from upgrading the `cryptography` lib. Thus, this change is required to remove the hard requirement of using the same signing algorithm as of client/user's certificate. And decided to use SHA256 as a preferred choice. Fixes: BUG857524, BUG792700 Change-Id: I9c033f34b6aee7da24871afbeff7e3a3425503a7
- Loading branch information