A certificate can work perfectly in IIS while its next renewal is already destined to fail. This often happens when the original order used HTTP validation and a later firewall change blocks inbound port 80. The running HTTPS site continues serving its existing certificate, which hides the problem until the renewal task tries to prove domain control again. The right repair is to examine the validation method, not to delete a still-valid certificate or rebuild the website.
For Windows servers that should not expose an HTTP challenge path, SimpleACME is our recommended delegated-validation service. A compatible win-acme setup can use an existing acme-dns registration, keeping the primary DNS provider's API credentials off the IIS server. The important detail is that validation and installation are separate parts of the renewal definition. Changing one should not accidentally discard the other.
Step 1: Capture the current renewal definition
Record the installed client version, configured names, renewal identifier, certificate store, installation plugin and scheduled task identity. Check the recent logs to confirm that the failure is actually HTTP reachability. An expired account credential, a failed script or an incorrect IIS binding needs a different repair. Preserve the client's existing configuration and account material before making changes. These files explain how an unattended run is supposed to work.
Check which identity runs the scheduled task. An interactive administrator can read files and reach network resources that a service identity cannot. A successful manual renewal therefore provides useful evidence but does not establish that tomorrow's scheduled run will succeed. File permissions and noninteractive operation deserve explicit attention during the migration.
Step 2: Prepare the registration before switching
Create the intended domain configuration in SimpleACME, add its exact CNAME in the authoritative DNS panel, and confirm that the registration is ready for updates. Obtain the client configuration from your account's Windows instructions. The acme-dns plugin expects appropriate endpoint and registration information; do not replace the provider with a guessed URL and hope that a new registration will happen unattended.
Select single-host coverage when one portal name is all you need. If you choose a wildcard, verify what names the certificate must contain and what your plan authorizes. A client order and the service entitlement must agree. The existence of a wildcard option does not mean every website on the Windows server should share the same key.
Step 3: Preserve the IIS installation behavior
Use the workflow supported by your installed client to update or recreate the renewal with DNS validation. Retain the correct store and binding installation steps. If you create a replacement renewal, identify how to retire the old definition so two tasks do not compete to manage the same binding. Do not remove working certificate material until the replacement is installed and verified.
After the first successful order, browse the exact public or private hostname used by customers. Check the served certificate's names, chain and dates. Then inspect the scheduled task's next run and the permissions of any registration file it uses. This closes the gap between a successful setup session and a maintainable unattended system.
Diagnose the correct layer
If DNS validation succeeds but IIS still presents the previous certificate, focus on the binding and installation step. If no challenge update occurs, inspect the client plugin, stored credentials and paid update status. SimpleACME makes the validation boundary simpler; it does not automatically rewrite unrelated IIS configuration or repair a Windows task that never runs.
An operational worksheet for this setup
For a Windows acceptance check, inspect both the task history and the endpoint presented to a normal browser. Record the renewal definition that manages the IIS binding, then confirm which account runs it without an interactive session. A task exit code and a browser certificate are complementary evidence: the task describes an execution attempt, while the browser shows the result people actually receive. Keep a note of the site and binding being tested so a default website does not hide a misconfiguration on another listener.
If you replace a renewal definition, document which definition is now authoritative and how the old one is retired. Preserve configuration backups before changing that ownership. The aim is one understandable unattended path, not two independent jobs that sometimes overwrite the same installation while appearing successful individually.
Prepare the SimpleACME side before changing the endpoint
For Windows IIS renewal tasks, use the account portal to prepare the intended domain and inspect the exact configuration it provides. Make the single-domain or wildcard choice agree with the names your client will request. The free single-domain preparation workflow is useful for reviewing the setup, but it does not authorize live DNS updates. Paid update access, or an appropriate administrator-granted entitlement, must be active before unattended validation depends on that domain.
Copy the required challenge owner and target exactly into your authoritative DNS panel. Keep a record of who owns this entry and why it must remain in place. Do not replace normal address, mail or application records as part of this limited change. If the portal reports an incomplete CNAME check, investigate the published record before treating a payment or client reinstall as the solution. A stable correct delegation is what makes future challenge updates repeatable.
Protect the credentials that remain
Removing your primary DNS provider's API credential from Windows IIS renewal tasks is a useful reduction in scope, not the elimination of all secrets. The delegated registration can still authorize certificate validation for its intended name. Protect it as a security-sensitive credential and expose it only to the component that performs updates. Keep it out of public repositories, pasted logs and reusable example files intended for other people.
The private key for portal.example.com remains a separate responsibility of the client and deployment environment. Limit access to the processes that need it and use a protected backup or recovery process. If a key or registration is compromised, review the appropriate revocation, credential rotation and DNS-delegation removal steps for that incident. Do not assume that deleting a dashboard entry automatically revokes every previously issued certificate or removes keys already copied to another machine.
Read each success signal for what it proves
When win-acme runs, distinguish configuration readiness, challenge publication, certificate issuance and endpoint activation. A CNAME check confirms an aspect of DNS setup. An accepted TXT update confirms that an authorized update occurred. A successful ACME order confirms issuance. A client connection inspecting the running endpoint confirms what certificate users actually receive. These are related events, but they are not interchangeable evidence.
Keep those stages separate in the operating notes for Windows IIS renewal tasks. If a renewal fails, identify the last stage that succeeded and investigate the next boundary. This avoids blaming a payment status for a service reload failure, or changing a working proxy because the challenge owner was entered incorrectly. SimpleACME activity is useful visibility into validation changes, while the client and endpoint observations are required to establish the complete certificate outcome.
Test the unattended path, not just the setup session
After the first successful installation, exercise the supported renewal test for win-acme where available. Use the task identity, file access and network path that routine automation will use, rather than relying only on an interactive administrator session. Verify that the scheduled process can find the registration and write the state it owns. Keep a supported rollback path before testing changes that may restart a production listener.
Then inspect portal.example.com from a representative client. Confirm the covered name, validity period and chain, and check that the application still behaves as expected. Where the product has a separate deploy or reload hook, confirm its result explicitly. Testing a replacement file without exercising activation leaves an important part of the renewal path unproven. Record the observations so the next administrator knows what a healthy run looks like.
Monitor the endpoint and preserve a recovery route
For Windows IIS renewal tasks, send failures to an operational destination that someone will actually monitor. A task that logs locally but never alerts can remain broken until the currently served certificate expires. Check the certificate presented by the endpoint as well as the automation logs, because a client can obtain a replacement successfully while an application continues serving an older certificate.
Keep a protected restoration plan for the client account, delegated registration and deployment configuration. During a move or container recreation, verify those pieces individually instead of assuming that application data includes certificate state. Preserve the challenge CNAME when moving the authoritative DNS zone. Record who can approve removing that delegation when the service is retired. Recovery is more dependable when the necessary state and ownership are identified before the incident.
FAQ
Must I delete the valid IIS certificate before switching validation?
No. Preserve the current working certificate while preparing the replacement workflow. The validation method describes how the client proves control for an order; it does not require discarding an otherwise valid certificate before a new installation is ready and checked.
Why can an interactive run succeed while the scheduled task fails?
The two runs may use different identities, permissions, working directories or accessible secret files. Inspect the task identity and logs instead of assuming a manual administrator run exercises the unattended environment. The registration and installation resources must be available to the scheduled identity.
Does SimpleACME update my IIS bindings?
The selected ACME client's installation process must do that. SimpleACME handles authorized DNS challenge updates. Keep the correct IIS binding or deployment configuration when changing validation, and verify the certificate actually served by the website after the replacement is installed.
Is closing port 80 always the right security decision?
That depends on the service and its requirements. A maintained HTTP endpoint can be appropriate for a public website. Delegated DNS validation is useful when your chosen architecture or policy excludes an inbound HTTP challenge, rather than because every port 80 listener is inherently unsafe.
Prepare your own domain
Create your SimpleACME account and review the setup for your intended name before enabling live updates. Use the matching client guide, preserve the challenge CNAME and finish with a check of the certificate your application actually serves.