# Siapkan Sertifikat

## Buat URL Route 53

Buat URL Route 53 dari domain Anda, mis. caesar.internal.romeprotocol.xyz, agar mengarah ke IP server EC2.

## Buka Port

Pastikan port HTTP (80) dan HTTPS (443) terbuka di server jarak jauh Anda.

Gunakan firewall atau security group penyedia cloud Anda untuk membuka port-port ini.

## Dapatkan Sertifikat

CLI Certbot di bawah ini memungkinkan Anda mendapatkan sertifikat Lets Encrypt.

**Catatan: Gunakan alamat email dan nama domain Anda sendiri saat meminta sertifikat.**

<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 # Ganti dengan email dan domain Anda
</strong>sudo nginx -s stop
</code></pre>

## Verifikasi pembuatan sertifikat

Sekarang, pastikan file fullchain.pem dan privkey.pem berada di direktori di bawah ini.

```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/id/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.
