# Zertifikat einrichten

## Route-53-URL erstellen

Erstellen Sie eine Route-53-URL von Ihrer Domain, z. B. caesar.internal.romeprotocol.xyz, die auf die IP des EC2-Servers verweist.

## Ports öffnen

Stellen Sie sicher, dass die Ports HTTP (80) und HTTPS (443) auf Ihrem entfernten Server geöffnet sind.

Verwenden Sie die Firewall oder die Sicherheitsgruppe Ihres Cloud-Anbieters, um diese Ports zu öffnen.

## Zertifikat beschaffen

Die unten stehende Certbot-CLI ermöglicht es Ihnen, ein Let's-Encrypt-Zertifikat zu erhalten.

**Hinweis: Verwenden Sie beim Anfordern des Zertifikats Ihre eigene E-Mail-Adresse und Ihren eigenen Domainnamen.**

<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 # Ersetzen Sie dies durch Ihre E-Mail und Domain
</strong>sudo nginx -s stop
</code></pre>

## Zertifikatsgenerierung überprüfen

Stellen Sie nun sicher, dass sich die Dateien fullchain.pem und privkey.pem im unten stehenden Verzeichnis befinden.

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