Fix add backend in cert

This commit is contained in:
Mauricio Baeza 2021-01-10 14:23:39 -06:00
parent b612991476
commit 38f3c125cd
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ class SATCertificate(object):
args = f'openssl rsa -inform PEM -outform PEM -in "{str(path)}" -passin pass:{token}'
pem = subprocess.check_output(args, shell=True).decode()
key = serialization.load_pem_private_key(
pem.encode(), password=None, default_backend())
pem.encode(), password=None, backend=default_backend())
digest = hashes.Hash(hashes.SHA512(), default_backend())
digest.update(obj.rfc.encode())