Chứng chỉ tự ký cho máy in ePOS

Để làm việc với Odoo, một số mẫu máy in có thể hoạt động mà không cần hệ thống IoT, nhưng có thể yêu cầu giao thức HTTPS để thiết lập kết nối an toàn giữa trình duyệt và máy in. Tuy nhiên, khi truy cập địa chỉ IP của máy in qua HTTPS, hầu hết các trình duyệt sẽ hiển thị trang cảnh báo. Trong trường hợp này, bạn có thể tạm thời bắt buộc kết nối, cho phép truy cập trang qua HTTPS và sử dụng máy in ePOS trong Odoo miễn là cửa sổ trình duyệt vẫn mở.

Cảnh báo

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.

Quan trọng

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

Navigate to the ePOS' IP address (e.g., https://192.168.1.25) and force the connection by clicking Advanced and Proceed to [IP address] (unsafe).

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.

Nhấp Danh sách chứng chỉ trong phần Xác thực, sau đó nhấp tạo để tạo Chứng chỉ tự ký mới. Trường Tên chung sẽ tự động được điền. Nếu không, hãy nhập địa chỉ IP của máy in. Chọn số năm hiệu lực của chứng chỉ trong trường Thời hạn hiệu lực, nhấp Tạo, sau đó Đặt lại hoặc khởi động lại máy in thủ công.

The self-signed certificate is generated. Reload the page and click SSL/TLS in the Security section to ensure Selfsigned Certificate is correctly selected in the Server Certificate section.

Quan trọng

  • If you need to export SSL certificates from an operating system or web browser that has not been mentioned, search for export SSL certificate + the name of your browser or operating system in your preferred search engine.

  • Similarly, to import SSL certificates from an unmentioned OS or browser, search for import SSL certificate root authority + the name of your browser or operating system in your preferred search engine.

Check if the certificate was imported correctly

To confirm your printer's connection is secure, connect to its IP address using HTTPS. For example, navigate to https://192.168.1.25 in your browser. If the SSL certificate has been applied correctly, you should no longer see a warning page, and the address bar should display a padlock icon, indicating that the connection is secure.