---
title: "Issue a trusted HTTPS certificate for ARX with Let's Encrypt"
description: "Point your domain's DNS record at ARX, create a Cloudflare API token, and use ACME to get an auto-renewing Let's Encrypt certificate so browsers stop showing an untrusted warning"
canonical_url: "https://docs.ardge.com/en/knowledge/arx-os/acme-certificate"
---
# Issue a trusted HTTPS certificate for ARX with Let's Encrypt

> Point your domain's DNS record at ARX, create a Cloudflare API token, and use ACME to get an auto-renewing Let's Encrypt certificate so browsers stop showing an untrusted warning

## Overview

ARX uses a self-signed certificate by default. Browsers don't trust self-signed certificates, so people see a security warning every time they connect.

With **ACME**, ARX requests a browser-trusted certificate from Let's Encrypt automatically and renews it before it expires, with no manual replacement.

This article walks through the full setup with **DNS-01 (Cloudflare)** validation. It doesn't require ARX to be reachable from the internet, so it suits devices on your internal network.

## What you'll learn

- Set up a DNS record for ARX's domain
- Create a least-privilege Cloudflare API token
- Request a certificate with ACME and check its status

**Estimated time: about 15 minutes**, not counting the time for the DNS record to take effect

## Applies to

- ARX OS 1.1.0 and later

## Before you begin

- You have a domain hosted on Cloudflare and can manage its DNS records
- Your ARX account has read-write permission for Security in Control Panel

<note>

**Domain not on Cloudflare?**

Use **HTTP-01** validation instead. Let's Encrypt must then be able to reach port 80 on ARX from the internet, and wildcard certificates aren't supported. If ARX can't be exposed to the internet, use **Import Certificate** to import a certificate issued by your enterprise CA.

</note>

## What you'll need

| Information | Used for | Example |
| --- | --- | --- |
| **Domain** | The address people use to reach ARX, and the name the certificate covers | `arx.example.com` |
| **Email** | The contact address for the Let's Encrypt account, used for registration and policy notices | `it-admin@example.com` |
| **Cloudflare API token** | Lets ARX add and remove DNS records during validation | Created in Step 2 |

## Step 1: Point the domain at ARX

In Cloudflare's DNS settings, add an `A` record for the domain that points at the ARX IP.

ARX doesn't set up DNS records for you. When you're done, confirm that computers on your company network can reach ARX by the domain.

<tip>

If ARX is used only on the internal network, point the `A` record at its internal IP and turn off Cloudflare's proxy (the cloud icon turns grey). DNS-01 validation only checks the DNS record, so nothing outside needs to reach ARX.

</tip>

## Step 2: Create a Cloudflare API token

1. Sign in to Cloudflare and go to **My Profile › API Tokens**
2. Click **Create Token** and choose the **Edit zone DNS** template
3. Under **Zone Resources**, choose **Include › Specific zone** and select your domain
4. Click **Continue to summary**, then click **Create Token**
5. Copy the token shown on screen

<warning>

The token needs only `Zone:DNS:Edit` permission on that domain. Don't use the Global API Key or a token with wider permissions.

</warning>

## Step 3: Request the certificate on ARX

1. Open **Control Panel › Security** and switch to the **Domain & Certificate** tab
2. Click the edit icon at the top right of the card
3. Set **Certificate Source** to **ACME**
4. Fill in the fields as follows:

| Field | Value |
| --- | --- |
| **Domain** | The domain you set up in Step 1 |
| **Email** | Your contact email |
| **Challenge Type** | **DNS-01 (Cloudflare)** |
| **Cloudflare API Token** | The token you copied in Step 2 |
| **Environment** | **Production** |

![Requesting a certificate with ACME](https://docs.ardge.com/screenshots/guide/en/sec-05.webp)

5. Click **Save**, then confirm the change in the confirmation dialog

ARX adds an `_acme-challenge` TXT record to the domain to complete validation, and removes it afterwards. The certificate applies as soon as it's issued. HTTPS connections may drop briefly, and you may need to refresh the page.

## Step 4: Check the certificate status

Connect to ARX by the domain, for example `https://arx.example.com`. The browser should no longer show a security warning.

Back on the **Domain & Certificate** tab, confirm the card shows:

- **Status** is **Valid**
- **Issuer** is Let's Encrypt
- **Last Renewed** shows **Succeeded**, along with the **Next Renewal** time

Once the certificate is issued, HTTP requests redirect to HTTPS automatically.

## Common questions

### What if issuance fails?

ARX keeps using the current certificate, and **Last Renewed** shows **Failed**. Common causes:

- **The token is invalid or lacks permission** — confirm the token is still valid and has `Zone:DNS:Edit` permission on the domain
- **The domain is outside the token's scope** — confirm the zone you chose when creating the token includes this domain
- **You hit a Let's Encrypt rate limit** — while testing repeatedly, switch **Environment** to **Staging** to debug, then switch back to **Production** once it works. Browsers don't trust certificates issued by Staging

### How often does the certificate renew?

ARX follows the renewal time Let's Encrypt recommends. When that isn't available, it renews once a third of the validity period remains — a 90-day certificate renews 30 days before it expires.

### What should I watch for after changing the domain?

Changing the domain requests a new certificate. People need to connect with the new domain, and any bookmarks or other services that store the ARX address need updating too.

## Related articles

- [Security](https://docs.ardge.com/en/guide/manage-arx/security)


## Sitemap

See the full [sitemap](https://docs.ardge.com/sitemap.md) for all pages.
