Pasar rutas para openssl
This commit is contained in:
parent
b9e1c3332a
commit
4ecaf7126d
|
@ -119,13 +119,9 @@ def base_datos():
|
||||||
|
|
||||||
|
|
||||||
def _get_cert(data):
|
def _get_cert(data):
|
||||||
key = b''
|
key = data['path_enc']
|
||||||
pem = b''
|
pem = data['path_pem']
|
||||||
cer = data['path_cer'].read_bytes()
|
cer = data['path_cer']
|
||||||
if data['path_enc'].is_file():
|
|
||||||
key = data['path_enc'].read_bytes()
|
|
||||||
elif data['path_pem'].is_file():
|
|
||||||
pem = data['path_pem'].read_bytes()
|
|
||||||
cert = SATCertificate(cer, key, pem)
|
cert = SATCertificate(cer, key, pem)
|
||||||
return cert
|
return cert
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue