From 4ecaf7126d8a3f88676e902f2a04cd0c8f9d45ab Mon Sep 17 00:00:00 2001 From: El Mau Date: Thu, 31 Mar 2022 21:59:16 -0600 Subject: [PATCH] Pasar rutas para openssl --- source/sat/util.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/source/sat/util.py b/source/sat/util.py index e3ca8ce..5adc7ab 100644 --- a/source/sat/util.py +++ b/source/sat/util.py @@ -119,13 +119,9 @@ def base_datos(): def _get_cert(data): - key = b'' - pem = b'' - cer = data['path_cer'].read_bytes() - if data['path_enc'].is_file(): - key = data['path_enc'].read_bytes() - elif data['path_pem'].is_file(): - pem = data['path_pem'].read_bytes() + key = data['path_enc'] + pem = data['path_pem'] + cer = data['path_cer'] cert = SATCertificate(cer, key, pem) return cert