Fixed crypto key loading

This commit is contained in:
Adolfo Gómez García 2022-03-06 15:40:49 +01:00
parent 21c2976d82
commit a179522f4c

View File

@ -205,7 +205,7 @@ class CryptoManager(metaclass=singleton.Singleton):
]:
try:
return serialization.load_pem_private_key(
settings.RSA_KEY.encode(), password=None, backend=default_backend()
rsaKey.encode(), password=None, backend=default_backend()
)
except Exception as e:
raise e