Self-signed certificate for ePOS printers

To work with Odoo, some printer models that can be used without an IoT system 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.

Warning

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.

Important

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.

คลิก รายการใบรับรอง ในส่วน การรับรองความถูกต้อง และคลิก สร้าง เพื่อสร้าง ใบรับรองที่ลงนามเอง ใหม่ ควรกรอก ชื่อสามัญ โดยอัตโนมัติ หากไม่เป็นเช่นนั้น ให้กรอกด้วยหมายเลขที่อยู่ IP ของเครื่องพิมพ์ เลือกปีที่ใบรับรองจะมีผลใช้ในช่อง ระยะเวลาใช้งาน คลิก สร้าง และ รีเซ็ท หรือรีสตาร์ทเครื่องพิมพ์ด้วยตนเอง

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.

Important

  • 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

หากต้องการยืนยันว่าการเชื่อมต่อเครื่องพิมพ์ของคุณปลอดภัย ให้เชื่อมต่อกับที่อยู่ IP โดยใช้ HTTPS ตัวอย่างเช่น ไปที่ https://192.168.1.25 ในเบราว์เซอร์ของคุณ หากใช้ใบรับรอง SSL อย่างถูกต้องแล้ว คุณจะไม่เห็นหน้าคำเตือนอีกต่อไป และแถบที่อยู่จะแสดงไอคอนแม่กุญแจ ซึ่งบ่งชี้ว่าการเชื่อมต่อนั้นปลอดภัย