fix: vpn-router-setup, vpn-router-ca and /ca read a CA's key and CRL from the directory each as itself, instead of failing on a CA with a CRL.
Release / release (push) Successful in 26s

This commit is contained in:
slawek committed 2026-10-25 23:07:24 +01:00
1 parent 448ce05b3a
commit 7404ee88c4
2 files changed
+11 -1

No files matched your search

@@ -229,7 +229,7 @@ def authority(connection, name):
attributes = connection.search_s(authority_dn(name), ldap.SCOPE_BASE, attrlist=AUTHORITY_ATTRIBUTES)[0][1]
except ldap.NO_SUCH_OBJECT:
return None
cert, key, crl = (first(attributes, item) for item in AUTHORITY_ATTRIBUTES[:3])
cert, crl, key = (first(attributes, item) for item in AUTHORITY_ATTRIBUTES[:3])
return {
'name': name,
'cert': x509.load_der_x509_certificate(cert) if cert else None,