DNS validation and wildcards
With DNS validation, SSLense publishes a TXT record at _acme-challenge.<name>, waits until every name server for the zone has it, asks the certificate authority to validate, and removes it.
It is the only way to get a wildcard certificate, such as *.example.com, and it needs no inbound access: the server does not have to be reachable from the internet, and port 80 can stay closed.
Ways to publish the record
Section titled “Ways to publish the record”| Method | Works with | Renewal |
|---|---|---|
| A built-in provider | Cloudflare, Amazon Route 53, Azure DNS, Google Cloud DNS, DigitalOcean, Hetzner | Automatic |
| acme-dns | Any DNS host, even without an API, with one CNAME created once | Automatic |
| Your own script | Any DNS service with an API | Automatic |
| CNAME delegation | Any DNS service, plus a zone one of the above can change | Automatic |
| Manual | Any DNS service | By hand, every time |
Set up a provider first: see DNS providers.
Issue a certificate
Section titled “Issue a certificate”In the app:
- Choose Add certificate › Free and automatic, and the IIS site.
- Under Validation, choose DNS provider (wildcards, automatic renewal). SSLense picks the provider whose zone contains the names.
- For a wildcard, fill in Certificate names, for example
example.com, *.example.com. Left empty, the certificate covers the host names you tick. - Under Host names, tick the real IIS bindings the certificate is for, and choose Continue. Step 2 is the same as for HTTP: Run checks, then Issue certificate.

From the command line, --names lists what the certificate covers, and --hosts lists the real IIS bindings to manage:
SSLense.Cli preflight --site "Shop" --validation dns --names "*.example.com,example.com" --hosts "shop.example.com,example.com"SSLense.Cli issue --site "Shop" --email ops@example.com --validation dns --names "*.example.com,example.com" --hosts "shop.example.com,example.com" --staging- Without
--names, the certificate covers the hosts. - A wildcard covers one level and does not include the name itself:
*.example.comcoversshop.example.com, notexample.comora.b.example.com. List both if you need both. *.example.comcannot be an IIS binding SSLense manages. Use real host names in--hosts. A host added to the site later is not bound on its own: the health check reports it, and you runissue --forcewith the new host in--hosts.- To use one wildcard on several sites, share it rather than issuing it again.
CNAME delegation
Section titled “CNAME delegation”Your DNS service has no API, or you would rather not give SSLense a token for your main zone? Create one permanent record at your DNS service, pointing the challenge name into a zone SSLense can change:
_acme-challenge.example.com CNAME example-com.acme.example.netThen issue with --validation dns and a provider for example.net. If your DNS service can proxy records, as Cloudflare can, turn that off for this one record.
Manual DNS
Section titled “Manual DNS”With --validation dns-manual, or DNS manual (any DNS service) in the app, SSLense shows each record, waits for you to create it, and checks it is visible.
In the app, after Issue certificate, step 3 shows each record's Name and Value. Create every one at your DNS service, even when two have the same name, then choose I have created the records. SSLense checks they are visible for up to 5 minutes before asking the certificate authority to validate. Keep the window open meanwhile.

A manual certificate cannot renew automatically. Each renewal needs new records, so the daily digest reminds you, with the command to run; in the app, select the certificate and choose Renew by hand. With certificate lifetimes getting shorter, that becomes frequent work, so CNAME delegation is usually better.
Good to know
Section titled “Good to know”- SSLense only removes the TXT records it published, and leaves other values at the same name alone. If it cannot remove one, it tries again when it next starts.
- It checks before asking the certificate authority, including CAA records and the zone's own name servers. If outbound port 53 is blocked, it cannot check, so it says so, waits 2 minutes, and continues.
- A provider's token can usually change every record in its zone. Anyone who takes over the server could use it to redirect the domain. For an important domain, use CNAME delegation to a separate zone, so the token cannot touch the main one.