Verified Commit 3a248a72 authored by Vojtech Myslivec's avatar Vojtech Myslivec
Browse files

crypto: Update to recent cryptography version 2.7

Use AuthorityKeyIdentifier itself instead of extension in
from_issuer_subject_key_identifier classmethod
parent 6ae02c1e
Pipeline #57517 passed with stages
in 1 minute and 25 seconds
......@@ -31,7 +31,7 @@ ALLOWED_HASHES = {
def build_aki(issuer):
# construct AKI from issuer Subject Key Identifier if it has some
ski = issuer.extensions.get_extension_for_class(x509.SubjectKeyIdentifier)
ski = issuer.extensions.get_extension_for_class(x509.SubjectKeyIdentifier).value
aki = x509.AuthorityKeyIdentifier.from_issuer_subject_key_identifier(ski)
except x509.ExtensionNotFound:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment