# Setup Certificate

## Create Route 53 URL

Create Route 53 URL from your domain e.g. caesar.internal.romeprotocol.xyz to point to EC2 server IP.

## Open Ports

Make sure that ports HTTP (80) and HTTPS (443) are open on your remote server.

Use your cloud provider's firewall or security group to open these ports.

## Obtain Certificate

Certbot CLI below enables you to obtain a Lets Encrypt certificate.

**Note: Use your own email address and domain name when requesting the certificate.**

<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 # Replace with your email and domain
</strong>sudo nginx -s stop
</code></pre>

## Verify certificate generation

Now, ensure that fullchain.pem and privkey.pem files are located in the directory below.

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