> For the complete documentation index, see [llms.txt](https://manual.seara.biz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://manual.seara.biz/connect-to-seara-with/how-to-setup-equipment-connect-to-seara/set-ssl-certificate.md).

# Set SSL Certificate

## &#x20;**วิธีการ Import Certification ไปยังอุปกรณ์ Mikrotik**&#x20;

1. เปิด Winbox เข้าไปที่ Mikrotik แล้วเลือกไฟล์ SSL ทั้งหมดลากเข้าไปวางใน Winbox ดังเพื่อ upload file ทั้งหมดเข้าไปในอุปกรณ์ตามรูป

<figure><img src="/files/0NM8v2BXfcAbY7xSVLrL" alt=""><figcaption><p>แสดงตัวอย่างการ upload certificate file</p></figcaption></figure>

2. ไปที่ Menu System > Certificates  &#x20;

<figure><img src="/files/r7WxBQJ71LCjCW9OypCJ" alt=""><figcaption><p>แสดงวิธีการ import certificate</p></figcaption></figure>

3. Import Certificate ทั้งหมด โดยไปที่ Menu Import  เพื่อตั้งค่าไฟล์ Certificate  โดยให้ให้ทำทีละไฟล์จนครบทั้ง 4 ไฟล์

3.1  **Import ไฟล์นามสกุล crt**&#x20;

* **Name:** ตั้งชื่อ Certification
* **File Name:** เลือกไฟล์ Crtificate นามสกุล crt
* **Passphrase:**  หาก Certification มีรหัสผ่านให้ระบุ phassphase ให้ถูกต้อง

จากนั้นกดปุ่ม Import เพื่อเพิ่ม Certificate เข้าสู่ระบบ

<figure><img src="/files/gdLeoKQlAhIZme5iHlNH" alt=""><figcaption></figcaption></figure>

3.2 **Import ไฟล์นามสกุล bundle**&#x20;

* **Name:** ตั้งชื่อ Certification
* **File Name:** เลือกไฟล์ Crtificate นามสกุล bundle ทั้ง 2 ไฟล์
* **Passphrase:**  หาก Certification มีรหัสก็ให้ใส่รหัสด้วย   แต่ถ้าไม่มีก็ไม่ต้องใส่

จากนั้นกดปุ่ม Import เพื่อเพิ่ม Certificate เข้าสู่ระบบ

<figure><img src="/files/Y1znnlp10ud6EV8keKHd" alt=""><figcaption></figcaption></figure>

3.3 **Import ไฟล์นามสกุล key**

* **Name:** ตั้งชื่อ Certification
* **File Name:** เลือกไฟล์ Crtificate นามสกุล key
* **Passphrase:**  หาก Certification มีรหัสก็ให้ใส่รหัสด้วย   แต่ถ้าไม่มีก็ไม่ต้องใส่

จากนั้นกดปุ่ม Import เพื่อเพิ่ม Certificate เข้าสู่ระบบ

<figure><img src="/files/4JWYum38I7Vif9hLBPQG" alt=""><figcaption></figcaption></figure>

เมื่อ Import  Cetificate ครบถ้วนแล้วใน Ceriticate จะแสดงข้อมูลดังรูปตัวอย่าง

<figure><img src="/files/cj4rjighmA3mDnyWPmvN" alt=""><figcaption><p>ตัวอย่างเมื่อ Import Certiciate ครบถ้วนแล้ว</p></figcaption></figure>

## [นำ Certificate ไปใช้งาน](#user-content-fn-1)[^1]ใน www-ssl และ hotspot

1. ตั้งค่า Service ของ SSL&#x20;

ไปที่ **Menu  IP > Service**  และดับเบิ้ลคลิ๊กตรง Menu **www-ssl**   ตามภาพด้านล่างนี้

<figure><img src="/files/BuGxrsyN272RLsxcIRlQ" alt=""><figcaption></figcaption></figure>

เมื่อดับเบิ้ลคลิ๊กตรง Menu **www-ssl**  ให้เราตั้งค่าเพิ่มเติ่มดังนี้

* **Name:**  ค่า default
* **Port:** 443
* **Available From:**  ค่า default
* **VRF:** main
* **Certificate:** เลือกชื่อ Certificate ที่เราตั้งไว้ในConfig file นามสกุล crt  ในที่นี่ชื่อ cer
* **TSL Version:** any

จากนั้นกด OK

<figure><img src="/files/6VBeUVarAs1B5qKME89j" alt=""><figcaption></figcaption></figure>

2. ตั้งค่า SSL ให้กับ Hotspot

ไปที่ **Menu  IP > Hotspot**  และไปที่หัวข้อ **Server Profiles** ตามภาพด้านล่างนี้

<figure><img src="/files/TvzBezcBkvJWXTVFynD7" alt=""><figcaption></figcaption></figure>

&#x20;ดับเบิ้ลคลิ๊กที่ default&#x20;

<figure><img src="/files/2c6TvusubXnJEhaHq0kU" alt=""><figcaption></figcaption></figure>

**ให้แก้ไขเพิ่มเติมในส่วนของ Menu ด้านล่างนี้**

{% tabs %}
{% tab title="General" %}
แก้ไข DNS Name ตาม Certificate ในที่นี้คือ seara.captive-portal.net

<figure><img src="/files/B8zAMLBIL4ssVTxjr0tZ" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Login" %}
**Login By :** ให้เลือก HTTP CHAP และ HTTPS เท่านั้น

**SSL Certificate :** เลือกชื่อ Certificate ที่เราตั้งไว้ในConfig file นามสกุล crt  ในที่นี่ชื่อ cer

<figure><img src="/files/g97aR8IZscJvr1DtGoSI" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

## ทดสอบว่า Cetificate สามารถใช้งานได้บน Captive Portal

&#x20;ทดสอบโดยการให้เครื่อง client เชื่อมต่อกับ WIFI hostpot และเปิด Web Browser เพื่อตรวจสอบการการตั้งค่าถูกต้องจะพบเครื่องหมายกุญแจ และมีการเรียกใช้ https แสดงว่าระบบมีการตั้งค่าการใช้งานที่ถูกต้อง

<figure><img src="/files/8bM068xqgzxwQx0dCjN1" alt=""><figcaption><p>ตัวอย่างการเชื่อมต่อด้วย https</p></figcaption></figure>

[^1]:


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://manual.seara.biz/connect-to-seara-with/how-to-setup-equipment-connect-to-seara/set-ssl-certificate.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
