ePOS打印机的自签名证书

To work with Odoo, some printer models that can be used without an IoT box may require the HTTPS protocol to establish a secure connection between the browser and the printer. However, trying to reach the printer’s IP address using HTTPS leads to a warning page on most web browsers. In that case, you can temporarily force the connection, which allows you to reach the page in HTTPS and use the ePOS printer in Odoo as long as the browser window stays open.

警告

The connection is lost after closing the browser window. Therefore, this method should only be used as a workaround or as a pre-requisite for the following instructions.

Generate, export, and import self-signed certificates

For a long-term solution, you must generate a self-signed certificate. Then, export and import it into your browser.

重要

Generating an SSL certificate should only be done once. If you create another certificate, devices using the previous one will lose HTTPS access.

导航到 ePOS 的 IP 地址(例如,https://192.168.1.25),点击 高级转到 [IP 地址](不安全) 强制连接。

warning page about the connection privacy on Google Chrome

Warning page on Google Chrome, Windows 10

Then, sign in using your printer credentials to access the ePOS printer settings. To sign in, enter epson in the ID field and your printer serial number in the Password field.

在:guilabel:身份验证`部分点击:guilabel:`证书列表,然后点击:guilabel:创建,生成新的**自签名证书**。通用名称 应自动填写。如果没有,请填写打印机 IP 地址编号。在 有效期间 字段中选择证书的有效期,点击 创建,然后点击 重设 或手动重启打印机。

自签名证书已生成。重新加载页面并点击:guilabel:`安全性`部分中的 SSL/TLS,以确保在:guilabel:`服务器证书`部分中,选择了正确的 自签名证书

重要

  • 如果您需要从未提及的操作系统或网络浏览器导出 SSL 证书,请在您的首选搜索引擎中搜索 导出 SSL 证书 + 您的浏览器或操作系统的名称

  • 同样,要从未提及的操作系统或浏览器导入 SSL 证书,请在您的首选搜索引擎中搜索 导入 SSL 证书根颁发机构 + 您的浏览器或操作系统的名称

检查证书是否正确导入

要确认打印机的连接安全,请使用 HTTPS 连接到其 IP 地址。例如,在浏览器中导航到 https://192.168.1.25。如果 SSL 证书已正确应用,您不应再看到警告页面,并且地址栏应显示挂锁图标,表明连接安全。