Troubleshooting
Start here
Section titled “Start here”- Run the health check: Activity › Run checks, or
SSLense.Cli health. It checks the service and its hourly cycle, the data folder's permissions, the settings files, interrupted operations, IIS, and every certificate: installed with its key, bound, served, and renewing. Then DNS, port 80 and the challenge folder for each host, the certificate authorities in use, and the notification channels. Each problem comes with what to do. It changes nothing, apart from a test file it writes to each challenge folder and removes. - Look up the error code. Every error SSLense explains starts with a code such as
SSL1003, in the app, the command line, the log, notifications and the Event Log. The error codes say what each one means and what to do; in the app, the code is a link to its entry.SSL9999marks an error SSLense did not expect: run the health check, and ask for help if it happens again. - Read the log: Activity › Log, or the daily file in
C:\ProgramData\SSLense\logs. It has the full error, without secrets.
SSLense.Cli health exits with 1 if a check failed and 0 otherwise, warnings included, so monitoring scripts can run it.
For the urgent cases, follow a runbook: renewal keeps failing, a site serves the wrong certificate, the service is not running, a key may have been copied.
Issuing fails with HTTP validation
Section titled “Issuing fails with HTTP validation”Run the pre-issue checks for the site and host names: Run checks in step 2 of Add certificate, or:
SSLense.Cli preflight --site "Shop" --hosts shop.example.com,www.shop.example.comFix the first check that fails, then run them again. HTTP reachability runs from the server itself and passes on any HTTP answer, so a pass does not prove the certificate authority can reach the site; check from outside your network too.
| Symptom | What to do |
|---|---|
| DNS does not point to this server | From outside your network, run Resolve-DnsName shop.example.com and compare every A and AAAA record with the public address that reaches IIS. Fix stale or missing records, and wait for their TTL |
| Port 80 is blocked, or validation times out | From outside, run Test-NetConnection shop.example.com -Port 80. Open inbound TCP 80 in the Windows firewall, the cloud security group, the router or NAT, and any network firewall, and keep it open during validation |
| The site has no HTTP binding for the host (SSL1003), or requests reach another site | In IIS Manager, add an http binding on port 80 for each host name to the site, and remove conflicting bindings on other sites. Or tick SSLense answers the challenge itself (HTTP validation) |
| A proxy, CDN or tunnel answers the challenge: a 404, a redirect, a sign-in page or unrelated content | Forward /.well-known/acme-challenge/ to the IIS site over HTTP, keep the host header, and bypass authentication, rewriting and caching for that path. With Cloudflare, a Proxied record resolves to Cloudflare, not the server: set it to DNS only, or use DNS validation |
| A 404 or unexpected content | Check the binding, the host header a tunnel sends, authentication, URL Rewrite rules, MVC routing and cached responses for /.well-known/acme-challenge/<token> |
| A CAA record blocks the certificate authority | With HTTP validation, the certificate authority's error says so when it validates. Add it to the domain's CAA records, for example 0 issue "letsencrypt.org". With DNS validation, SSLense finds this before validation, and the message names the record to add. For a wildcard, an issuewild record takes priority over issue |
More in HTTP validation.
Issuing fails with DNS validation
Section titled “Issuing fails with DNS validation”| Symptom | What to do |
|---|---|
| No DNS provider manages a record | Add a provider for that zone, or check the CNAME at _acme-challenge.<name>: SSLense follows it, and the zone it ends in needs a provider |
| Cloudflare rejects the token (HTTP 401 or 403) | Check that the token exists, has not expired, and has Zone › DNS › Edit on that zone, and that the zone ID belongs to the domain. Replace it with Replace token in Settings › DNS providers, or SSLense.Cli dns update-token |
| The records did not appear in time | SSLense waits up to 5 minutes, and does not ask the certificate authority to validate. Check the records at your DNS service and try again. For manual records, check for a typo |
| A DNS script fails | The message gives the action, the exit code and the script's last 20 lines, with the secret removed. Try it with Test, or SSLense.Cli dns test --name <provider>. If it works there but fails at renewal, it depends on something only your account has, such as a module installed for you alone: install it for all users |
| A DNS script was stopped | It ran longer than its timeout, 2 minutes by default. Find what it waits for, or remove the provider and add it again with a longer --timeout |
| SSLense will not run a DNS script | Its copy is missing, was changed, or has the wrong permissions. Check your original, then choose Update script, or SSLense.Cli dns update-script |
| acme-dns says the CNAME is missing | Create the record it shows at your DNS host, exactly as shown, as DNS only if your host can proxy records. Then test again |
| acme-dns refuses the account, or this server's address | The account was removed, or its allowed networks do not include this server. Remove the provider and register again |
| A wildcard is refused because another site has it | Add the site to that certificate with SSLense.Cli share add instead of requesting the wildcard again |
Certificate authorities
Section titled “Certificate authorities”| Symptom | What to do |
|---|---|
| A certificate authority is refused when you add it | If it says External Account Binding is required, get the key ID and HMAC key from your account with it, and add it again with them. If its directory cannot be reached, check the URL, outbound HTTPS and any proxy |
| It refuses the account | The EAB key ID or HMAC key is wrong, or was already used: some accept each EAB key only once. Create new EAB credentials, then remove the certificate authority and add it again |
Issuing asks for a confirmation (--accept-production-risk) |
The certificate authority issues trusted certificates. Try the site with Let's Encrypt staging first |
| A rate limit | Wait for the time the message gives: retrying sooner only extends it |
After install
Section titled “After install”| Symptom | What to do |
|---|---|
| A deployment step fails | The certificate is installed and bound anyway. The certificate's After install tab, or SSLense.Cli deploy list, shows which step failed and why. Fix it and choose Run now, or wait for the hourly retry |
| Key access fails: the account is unknown | An application pool's account, IIS AppPool\<pool>, exists only while the pool does. Use the pool's exact name |
| An export step says the key cannot be exported | The certificate was issued without an exportable key. Issue it again with Exportable private key ticked, or --exportable-key --force; the steps stay |
| A service does not restart | Use its service name, as sc.exe query shows it, not its display name. A service that other running services depend on cannot be stopped alone; restart them in a script instead |
| One site of a shared certificate was left behind | The notification and the certificate's Sites tab name it. Fix the site in IIS, then choose Try moving now, or stop managing that site with SSLense.Cli share remove |
Notifications
Section titled “Notifications”| Symptom | What to do |
|---|---|
| The email test fails | Check the port, the security setting, the sign-in, outbound firewall rules, and what your mail provider requires for authentication |
| A webhook test fails | The receiver must accept an HTTP POST with the JSON fields kind, subject, body and occurredAtUtc |
| No digest arrives | The digest is sent only when something needs attention. Send sample digest under Settings › Reminders shows whether mail gets through, and What happens next says when the next one is expected |
Windows and IIS
Section titled “Windows and IIS”| Symptom | What to do |
|---|---|
| Access denied | Run SSLense, or PowerShell, as Administrator |
| IIS sites cannot be read | Install IIS Management Scripts and Tools |
| The data folder's permissions changed | SSLense.Cli check-permissions reports what is wrong; SSLense.Cli secure-data sets them again |
Ask for help
Section titled “Ask for help”Open an issue on GitHub with the health check's output and a diagnostic bundle. Create the bundle with Activity › Diagnostic bundle for support › Create bundle, or:
SSLense.Cli diagnostics # sslense-diagnostics-<timestamp>.zip on your DesktopSSLense.Cli diagnostics --redact-hosts # also replaces site names, host names and site folders, for public postsWhat it contains: the SSLense, Windows, .NET and IIS versions, the health check results, the settings, the managed certificates, IIS sites and bindings, interrupted operations, the service's heartbeat, and the three newest log files.
What it never contains: private keys, ACME account keys, PFX files, passwords, webhook URLs, DNS tokens or zone IDs, or anything encrypted with DPAPI. Email addresses are masked, and URL paths and query strings are removed, except for Let's Encrypt and HTTP challenge URLs. Thumbprints stay, because they are public. Look through the files before you share them.
For a security problem, do not open an issue: report it privately.