sne: use Debian version of cryptography (#78475)
gitea/passerelle/pipeline/head This commit looks good Details

This commit is contained in:
Thomas NOËL 2023-06-13 19:29:58 +02:00
parent d479819f50
commit 7a21a3e50c
2 changed files with 2 additions and 2 deletions

View File

@ -44,8 +44,7 @@ class SNE(BaseResource, HTTPResource):
@property
def cert_public_bytes(self):
with self.client_certificate.open('rb') as f:
certs = x509.load_pem_x509_certificates(f.read())
cert = certs[0]
cert = x509.load_pem_x509_certificate(f.read())
return cert.public_bytes(encoding=serialization.Encoding.PEM)
def check_status(self):

View File

@ -47,6 +47,7 @@ deps =
ldaptools
Pillow<9.5.0
python-ldap<=3.2 # align with Debian <= 11 (buster, bullseye)
cryptography<39
git+https://git.entrouvert.org/publik-django-templatetags.git
commands =
./get_wcs.sh