Certificado HTTPS (IoT)

Hypertext Transfer Protocol Secure (HTTPS) is the secure and encrypted version of Hypertext Transfer Protocol (HTTP), which is the primary protocol used for data communication between a web browser and a website. It secures communications by using an encryption protocol known as Transport Layer Security (TLS), previously called Secure Sockets Layer (SSL). The security of HTTPS relies on TLS /SSL certificates, which authenticate the provider and verify their identity.

The use of HTTPS is required to communicate with certain network devices, particularly payment terminals. If the HTTPS certificate is not valid, some devices cannot interact with the IoT system.

Nota

En esta documentación y en todo Odoo, el término certificado HTTPS se refiere a un certificado SSL válido que permite una conexión HTTPS.

HTTPS certificate generation

The HTTPS certificate is generated automatically. When the IoT system is (re-)started (e.g., after it is connected to the Odoo database), a request is sent to https://www.odoo.com, which returns the HTTPS certificate if the IoT system and database meet the eligibility criteria:

  • La base de datos debe ser una instancia de producción. La instancia de la base de datos no debe ser una copia, un duplicado, un entorno de prueba o un entorno de desarrollo.

  • The Odoo subscription must be ongoing (In Progress status) and have an IoT box subscription line.

Cuando se haya recibido el certificado:

  • The IoT system’s homepage address is updated to a new HTTPS URL ending with .odoo-iot.com. Click the URL to establish a secure HTTPS connection.

    La aplicación IoT de Odoo. Aparece una caja IoT con el dominio .odoo-iot.com.
  • The HTTPS certificate banner displays the certificate’s validity period. To view this information, click the (cogs) button on the IoT system’s homepage.

    Página de inicio del IoT box con fecha de validez del certificado HTTPS.

Problemas y errores en la generación del certificado HTTPS

No se genera el certificado HTTPS

Las causas potenciales incluyen las siguientes:

  • No IoT box subscription is linked to your account.

  • The IoT box subscription was added after connecting the IoT system to the database. In this case, refresh the IoT system’s homepage or reboot/restart the IoT system to regenerate the HTTPS certificate.

  • El firewall impide que el certificado HTTPS se genere correctamente. En este caso, desactiva el firewall hasta que el certificado se genere con éxito.

    Nota

    Algunos dispositivos, como routers con firewall integrado, pueden impedir que se genere el certificado HTTPS.

Se puede acceder a la página de inicio del sistema IoT usando su dirección IP pero no la URL xxx.odoo-iot.com

Contacta a tu administrador de sistemas o de red para solucionar el problema. Los problemas relacionados con la red están fuera del alcance de los servicios de soporte de Odoo.

  • Si el router permite la configuración manual de DNS, actualiza la configuración para usar Google DNS.

  • Si el router no admite esto, necesitas actualizar la configuración de DNS directamente en cada dispositivo que interactúa con el sistema IoT para usar Google DNS. Las instrucciones para configurar DNS en dispositivos individuales se pueden encontrar en el sitio web del fabricante respectivo.

Nota

  • Algunos dispositivos IoT, como terminales de pago, probablemente no requieren cambios de DNS, ya que normalmente están preconfigurados con ajustes de DNS personalizados.

  • En algunos navegadores, se muestra un código de error que menciona el DNS (como DNS_PROBE_FINISHED_NXDOMAIN).

Errores

A specific error code is displayed on the IoT system’s homepage if any issues occur during the generation or reception of the HTTPS certificate.

Truco

Cuando accedes a la página de inicio del sistema IoT, automáticamente verifica si hay un certificado HTTPS e intenta generar uno si falta. Si aparece un error, actualiza la página para ver si el problema se resuelve.

ERR_IOT_HTTPS_CHECK_NO_SERVER

The server configuration is missing, i.e., the Odoo instance is not connected to the IoT system.

ERR_IOT_HTTPS_CHECK_CERT_READ_EXCEPTION

An error occurred while attempting to read the existing HTTPS certificate. Verify that the HTTPS certificate file is readable.

ERR_IOT_HTTPS_LOAD_NO_CREDENTIAL

The contract and/or database UUID is missing form the IoT.

Verify that both values are correctly configured. To update them, access the IoT box’s or Windows virtual IoT’s homepage, click the (cogs) button, then click Credential.

ERR_IOT_HTTPS_LOAD_REQUEST_EXCEPTION

Ocurrió un error inesperado mientras el sistema IoT intentaba acceder a https://www.odoo.com. Esto probablemente se debe a problemas relacionados con la red, como:

  • El sistema IoT no tiene acceso a Internet.

  • Las restricciones de red (p. ej., firewalls o VPN) impiden la comunicación con https://www.odoo.com.

Nota

  • Para acceder a los detalles completos de la excepción de solicitud con información sobre el error, activa el modo desarrollador, haz clic en la tarjeta del sistema IoT en la app IoT y haz clic en Descargar registros en el formulario del sistema IoT. Para definir los niveles de registro grabados en el archivo de registro del sistema IoT, accede a la página de inicio del IoT box o del IoT virtual de Windows, haz clic en el botón (engranajes) y luego en Nivel de registro al final de la página.

  • Para solucionar problemas relacionados con la red, contacta con tu administrador de sistemas o red; estos problemas están fuera del alcance de los servicios de soporte de Odoo.

ERR_IOT_HTTPS_LOAD_REQUEST_STATUS

El sistema IoT alcanzó correctamente https://www.odoo.com pero recibió una respuesta HTTP (códigos de estado) inesperada.

Este código de error incluye el estado HTTP. Por ejemplo, ERR_IOT_HTTPS_LOAD_REQUEST_STATUS 404 significa que el servidor devolvió una respuesta «Página no encontrada».

Para resolver este problema:

  1. Abre https://www.odoo.com en un navegador web para comprobar si el sitio web está temporalmente en mantenimiento.

  2. Si https://www.odoo.com está en mantenimiento, espera a que se reanude.
    Si el sitio web está operativo, abre un ticket de soporte y asegúrate de incluir el código de estado HTTPS de 3 dígitos en el ticket.

ERR_IOT_HTTPS_LOAD_REQUEST_NO_RESULT

The IoT system successfully connected to https://www.odoo.com, but the server refused to provide the HTTPS certificate.

Comprueba que el sistema IoT y la base de datos cumplan los requisitos de elegibilidad para un certificado HTTPS.