ใบรับรอง 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.
Note
ในเอกสารประกอบนี้และทั่วทั้ง Odoo คำว่า ใบรับรอง HTTPS หมายถึงใบรับรอง SSL ที่ถูกต้องซึ่งอนุญาตให้มีการเชื่อมต่อ 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:
ฐานข้อมูลต้องเป็นอินสแตนซ์ ที่ใช้งานจริง อินสแตนซ์ฐานข้อมูลไม่ควรเป็นสำเนา ข้อมูลซ้ำ สภาพแวดล้อมสำหรับทดสอบ หรือสภาพแวดล้อมสำหรับพัฒนา
The Odoo subscription must be ongoing (In Progress status) and have an IoT box subscription line.
เมื่อได้รับใบรับรองแล้ว:
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.
The HTTPS certificate banner displays the certificate's validity period. To view this information, click the (cogs) button on the IoT system's homepage.
ปัญหาและข้อผิดพลาดในการสร้างใบรับรอง HTTPS¶
ใบรับรอง HTTPS ไม่สร้าง¶
สาเหตุที่เป็นไปได้มีดังนี้:
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.
ไฟร์วอลล์ป้องกันไม่ให้ใบรับรอง HTTPS ถูกสร้างอย่างถูกต้อง ในกรณีนี้ ให้ปิดใช้งานไฟร์วอลล์จนกว่าใบรับรองจะถูกสร้างสำเร็จ
Note
อุปกรณ์บางประเภท เช่น เราเตอร์ที่มีไฟร์วอลล์ในตัว อาจป้องกันไม่ให้ใบรับรอง HTTPS ถูกสร้าง
สามารถเข้าถึงหน้าแรกของระบบ IoT ได้โดยใช้ IP address แต่ไม่สามารถใช้ URL xxx.odoo-iot.com ได้¶
ติดต่อผู้ดูแลระบบหรือผู้ดูแลเครือข่ายของคุณเพื่อแก้ไขปัญหา ปัญหาที่เกี่ยวข้องกับเครือข่ายอยู่นอกเหนือขอบเขตของบริการสนับสนุนของ Odoo
หากเราเตอร์อนุญาตให้กำหนดค่า DNS ด้วยตนเองได้ ให้อัปเดตการตั้งค่าเพื่อใช้ Google DNS
หากเราเตอร์ไม่รองรับสิ่งนี้ คุณจำเป็นต้องอัปเดตการตั้งค่า DNS โดยตรงบนอุปกรณ์แต่ละเครื่องที่ติดต่อกับระบบ IoT เพื่อใช้ Google DNS คำแนะนำในการกำหนดค่า DNS บนอุปกรณ์แต่ละเครื่องสามารถพบได้ในเว็บไซต์ของผู้ผลิตที่เกี่ยวข้อง
Note
อุปกรณ์ IoT บางประเภท เช่น เครื่องชำระเงิน มักจะไม่จำเป็นต้องเปลี่ยนแปลง DNS เนื่องจากโดยทั่วไปจะได้รับการกำหนดค่าล่วงหน้าด้วยการตั้งค่า DNS แบบกำหนดเอง
ในเบราว์เซอร์บางตัว จะแสดงรหัสข้อผิดพลาดที่กล่าวถึง DNS (เช่น
DNS_PROBE_FINISHED_NXDOMAIN)
เกิดข้อผิดพลาด¶
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.
Tip
เมื่อคุณเข้าถึงหน้าแรกของระบบ IoT ระบบจะตรวจสอบใบรับรอง HTTPS โดยอัตโนมัติและพยายามสร้างใบรับรองหากไม่พบ หากปรากฏข้อผิดพลาด ให้รีเฟรชหน้าเพื่อดูว่าปัญหาได้รับการแก้ไขหรือไม่
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¶
เกิดข้อผิดพลาดที่ไม่คาดคิดขณะที่ระบบ IoT พยายามเข้าถึง https://www.odoo.com สาเหตุมักเกิดจากปัญหาที่เกี่ยวข้องกับเครือข่าย เช่น:
ระบบ IoT ไม่มีการเข้าถึงอินเทอร์เน็ต
ข้อจำกัดของเครือข่าย (เช่น ไฟร์วอลล์หรือ VPN) ป้องกันการสื่อสารกับ https://www.odoo.com
Note
เพื่อเข้าถึงรายละเอียดข้อยกเว้นของคำขอทั้งหมดพร้อมข้อมูลเกี่ยวกับข้อผิดพลาด เปิดใช้งานโหมดนักพัฒนา คลิกการ์ดของระบบ IoT ในแอป IoT และคลิก ดาวน์โหลดบันทึก บน ฟอร์มของระบบ IoT เพื่อกำหนดระดับบันทึกที่บันทึกในไฟล์บันทึกของระบบ IoT เข้าถึงหน้าแรกของกล่อง IoT หรือ Windows virtual IoT คลิกปุ่ม (ฟันเฟือง) จากนั้น ระดับบันทึก ที่ด้านล่างของหน้า
เพื่อแก้ไขปัญหาที่เกี่ยวข้องกับเครือข่าย ให้ติดต่อผู้ดูแลระบบหรือผู้ดูแลเครือข่ายของคุณ ปัญหาเหล่านี้อยู่นอกเหนือขอบเขตของบริการสนับสนุนของ Odoo
ERR_IOT_HTTPS_LOAD_REQUEST_STATUS¶
ระบบ IoT เข้าถึง https://www.odoo.com สำเร็จ แต่ได้รับ การตอบกลับ HTTP (รหัสสถานะ) ที่ไม่คาดคิด
รหัสข้อผิดพลาดนี้รวมถึงสถานะ HTTP ตัวอย่างเช่น ERR_IOT_HTTPS_LOAD_REQUEST_STATUS 404 หมายความว่าเซิร์ฟเวอร์ส่งคืนการตอบกลับ "ไม่พบหน้า"
เพื่อแก้ไขปัญหานี้:
เปิด https://www.odoo.com ในเว็บเบราว์เซอร์เพื่อตรวจสอบว่าเว็บไซต์ปิดชั่วคราวเพื่อการซ่อมบำรุงหรือไม่
- หาก https://www.odoo.com ปิดเพื่อการซ่อมบำรุง ให้รอจนกว่าจะกลับมาทำงานอีกครั้งหากเว็บไซต์ทำงานปกติ ให้เปิด ตั๋วสนับสนุน และตรวจสอบให้แน่ใจว่าได้รวมรหัสสถานะ HTTPS 3 หลักไว้ในตั๋ว
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.
ตรวจสอบว่าระบบ IoT และฐานข้อมูลเป็นไปตาม:ref:`ข้อกำหนดคุณสมบัติ <iot/https_certificate_iot/iot-eligibility>`สำหรับใบรับรอง HTTPS