# Khởi tạo Certificate

Sau khi mua Log Project, hệ thống sẽ tự động sinh ra certificate cho từng Log Project, certificate này dùng để xác thực Log Agent với hệ thống vMonitor Platform. Để tạo mới hay tải xuống một certificate, hãy làm theo các bước bên dưới:

1. Đăng nhập vào <https://hcm-3.console.vngcloud.vn/vmonitor>.
2. Chọn **Integration -> c**họn **Certificate.**
3. Nếu bạn chưa khởi tạo Log project nào, chọn **New cert** để tạo Certificate mới. Nếu bạn đã khởi tạo Log project thành công từ [Khởi tạo Log project](/vng-cloud-document/vn/vmonitor/dashboards/logs/lam-viec-voi-log-project-quota.md), tại Log project này, chọn **New cert.**
4. Chúng tôi bắt đầu khởi tạo certificate cho Log project của bạn, khi trạng thái certificate là **ACTIVE** nghĩa là certificate này đã sẵn sàng cho bạn sử dụng.
5. Chọn **Tải xuống** để tải thông tin certificate về thiết bị của bạn hoặc chọn **Delete** để xóa Certificate vừa tạo.

Sau khi tải về và giải nén, bạn sẽ thấy các tệp tin certificate và các câu lệnh hướng dẫn cài đặt theo từng môi trường và từng loại agent giúp bạn dễ dàng thiết lập bước đầu:

<table data-header-hidden><thead><tr><th></th></tr></thead><tbody><tr><td><pre><code>/Linux
│   ├── Filebeat               // Bộ cài cho agent filebeat , môi trường Linux
│   |   ├── VNG.trust.pem      // các file pem để  xác thực người dùng
│   |   ├── user.cer.pem       
│   |   ├── user.key.pem
│   |   ├── filebeat.sh        // script cài khởi đầu
│   |   ├── info.md            // thông tin endpoint gửi dữ liệu
│   |   ├── readme.md          // hướng dẫn sơ bộ
│   ├── Logstash               // Bộ cài cho agent logstash , môi trường Linux
/Windows                       // Bộ cài cho môi trường Windows
│   ├── ...                    // tương tự cũng có các file .pem như trên
/Docker                        // Bộ cài cho môi trường Docker
/Kubernetes                    // Bộ cài cho môi trường Kubernetes
</code></pre></td></tr></tbody></table>

<br>


---

# Agent Instructions: 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://docs.vngcloud.vn/vng-cloud-document/vn/vmonitor/dashboards/logs/lam-viec-voi-log-agent/khoi-tao-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.
