Skip to Content

Welcome!

This community is for professionals and enthusiasts of our products and services. Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

You need to be registered to interact with the community.
This question has been flagged
5205 Views

Hola, tengo instalado el módulo l10n_cl_fe en Odoo 14 con Ubuntu 20. Estoy tratando de validar un certificado digital .pfx y me aparece el siguiente error:

...
  File "/opt/odoo-addons/community/l10n_cl_fe/models/sii_firma.py", line 128, in action_process
    "emision_date": datetime.strptime(cert.get_notBefore().decode("utf-8"), "%Y%m%d%H%M%SZ"),
  File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 1378, in get_notBefore
    return self._get_boundary_time(_lib.X509_get_notBefore)
Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/odoo/odoo/http.py", line 640, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/odoo/odoo/http.py", line 316, in _handle_exception
    raise exception.with_traceback(None) from new_cause
AttributeError: module 'lib' has no attribute 'X509_get_notBefore'
Al parecer es un problema con la versión de OpenSSL pero no encuentro las versiones en los archivos requirements.txt. Las que tengo instaladas:

# python3 -m OpenSSL.debug

pyOpenSSL: 19.0.0
cryptography: 36.0.1
cffi: 1.15.0
cryptography's compiled against OpenSSL: OpenSSL 1.1.1m  14 Dec 2021
cryptography's linked OpenSSL: OpenSSL 1.1.1m  14 Dec 2021
Pythons's OpenSSL: OpenSSL 1.1.1f  31 Mar 2020
Python executable: /usr/bin/python3
Python version: 3.8.10 (default, Nov 26 2021, 20:14:08)
[GCC 9.3.0]
Platform: linux
Me pueden ayudar con esto, muchas gracias

Saludos
Avatar
Discard