# إعداد الشهادة

## إنشاء عنوان URL لـ Route 53

أنشئ عنوان URL لـ Route 53 من نطاقك، مثلًا: caesar.internal.romeprotocol.xyz، ليشير إلى عنوان IP لخادم EC2.

## فتح المنافذ

تأكد من أن منفذي HTTP (80) وHTTPS (443) مفتوحان على الخادم البعيد لديك.

استخدم جدار الحماية الخاص بمزوّد السحابة أو مجموعة الأمان لفتح هذه المنافذ.

## الحصول على الشهادة

تتيح لك واجهة سطر الأوامر Certbot أدناه الحصول على شهادة من Let's Encrypt.

**ملاحظة: استخدم عنوان بريدك الإلكتروني واسم النطاق الخاص بك عند طلب الشهادة.**

<pre class="language-bash"><code class="lang-bash">sudo apt install -y nginx
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
<strong>sudo certbot certonly --nginx -n -m rome@romeprotocol.com --agree-tos --domains caesar.internal.romeprotocol.xyz # استبدل بريدك الإلكتروني ونطاقك
</strong>sudo nginx -s stop
</code></pre>

## التحقق من إنشاء الشهادة

الآن، تأكد من أن الملفين fullchain.pem وprivkey.pem موجودان في الدليل أدناه.

```bash
sudo ls /etc/letsencrypt/live/caesar.internal.romeprotocol.xyz
```


---

# 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.rome.builders/ar/legacy/rome-l2-setup/setup-your-l2/prep-remote-server/setup-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.
