How-to guides
Domains and TLS
Connect a hostname you own and choose where its TLS certificate is held.
You can use a hostname you own for an existing tunnel. Start with your first tunnel if you have not created one yet. You need access to the hostname's DNS settings and edit access to the workspace.
Connect a custom hostname
- In the dashboard's Custom domains section, select Add domain.
- Enter the Hostname, such as
app.example.com, and select its Tunnel. You can choose the tunnel later. Select Add domain. - Open Manage domains and create the DNS records shown for that hostname at your DNS provider. For a subdomain, use the displayed CNAME. For an apex domain such as
example.com, open Apex domain setup and use the displayed TXT token and A records, AAAA records, or both as offered. Copy the actual values from the dashboard; they are specific to your setup. - Select Verify after updating DNS. Allow time for DNS changes to reach the verifier. Check the DNS, TLS, and Route statuses and the error shown in the domain row. If TLS fails after DNS is verified, correct the reported problem and select Retry TLS.
- When DNS, TLS, and routing are ready and the tunnel has an online agent and service access, open
https://followed by your hostname to check it.
Use the Tunnel selector in Manage domains to assign or change the destination. Remove removes the domain from Femtoport; also remove DNS records at your provider when you no longer need them.
Choose where TLS terminates
Normally Femtoport issues and serves the custom-domain certificate. In Manage domains, a workspace owner can turn on End-to-end TLS for the custom domain. The agent obtains and renews a Let's Encrypt certificate on your machine and keeps its private key there. DNS must stay pointed directly at the edges. The first visit after enabling can take about 15 seconds while the certificate is issued.
The tunnel's own Femtoport hostname has a separate End-to-end TLS control in its tunnel settings. It is an owner-only paid add-on and requires a compatible agent. If your workspace does not have it yet, select Buy end-to-end TLS to open Credit and billing, then buy it under Add-ons. Other workspace members must ask an owner to buy it. Before enabling it, enable end-to-end TLS on each attached custom domain or detach those domains. An ESP32 agent cannot terminate this TLS mode. Follow any specific availability or issuance error shown in the dashboard.
If a hostname does not work, check the domain row's DNS, TLS, and route statuses, its assigned tunnel, and the tunnel's agent and credit. See Troubleshoot for more checks.