diff options
author | Wataru Ashihara <wsh@iij.ad.jp> | 2022-03-25 17:44:43 +0900 |
---|---|---|
committer | Julien Cristau <jcristau@debian.org> | 2022-12-06 10:24:21 +0100 |
commit | c7a3136aa0290f09080ff90d2c21d43b70710310 (patch) | |
tree | a3a2990bf8d19c914708048a936e0a134b30d5a7 /debian/changelog | |
parent | ac305ca929f9617de8c237a63ea05dc9fa5ead1c (diff) | |
download | ca-certificates-c7a3136aa0290f09080ff90d2c21d43b70710310.tar.gz |
Make certdata2pem.py work with newer cryptography versions
certdata2pem.py is incompatible the cryptography package version 2.
$ pip3 install -U cryptography~=2.0 # 2.9.2
...
$ python3 certdata2pem.py
...
Traceback (most recent call last):
File "certdata2pem.py", line 125, in <module>
cert = x509.load_der_x509_certificate(obj['CKA_VALUE'])
TypeError: load_der_x509_certificate() missing 1 required positional argument: 'backend'
$ pip3 install -U cryptography~=3.0 # 3.4.8
...
$ python3 certdata2pem.py # ok
...
I think this should be noted in README.
cryptography>=35.0 is also incompatible:
$ pip3 install -U cryptography~=35.0
...
$ python3 certdata2pem.py
Traceback (most recent call last):
File "certdata2pem.py", line 125, in <module>
cert = x509.load_der_x509_certificate(obj['CKA_VALUE'])
File "/home/wsh/.local/lib/python3.8/site-packages/cryptography/x509/base.py", line 443, in load_der_x509_certificate
return rust_x509.load_der_x509_certificate(data)
TypeError: argument 'data': 'bytearray' object cannot be converted to 'PyBytes'
Diffstat (limited to 'debian/changelog')
0 files changed, 0 insertions, 0 deletions