Compatibilité Debian Buster
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
parent
77ccb2bbb4
commit
163cbc27c0
@ -4,6 +4,7 @@ import argparse
|
||||
import base64
|
||||
import cbor2
|
||||
from cryptography import x509
|
||||
from cryptography.hazmat.backends import default_backend
|
||||
from cryptography.hazmat.primitives.asymmetric import ec
|
||||
from cryptography.hazmat.primitives.asymmetric.utils import \
|
||||
encode_dss_signature
|
||||
@ -78,7 +79,8 @@ def analyse_qrcode(qrcode: str, additional_info: bool = False,
|
||||
with open(os.path.join(base_dir, 'certs', f"{cert_name}.pem")) as f:
|
||||
cert_asc = f.read()
|
||||
|
||||
cert = x509.load_pem_x509_certificate(cert_asc.encode())
|
||||
cert = x509.load_pem_x509_certificate(cert_asc.encode(),
|
||||
default_backend())
|
||||
|
||||
public_key = cert.public_key()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user