We have configured Let’s Encrypt certificate on Windows Server 2012 R2.
We have also create the task scheduler and assign auto renew batch file, so it will automatically renew certificate before 30 days expiration of it. But it is not working automatically. If we run the batch file manually then it update the certificate date in file. But we require should done automatically.
So please suggest how we can make this schuduler work automatically.
We have used AutoACME 1.5.4 version. We have followed stpes mentioned in below link.
We have auto-renew.bat file for new certificate if we run this file manually then it update certificate JSON file. But we want to do it automatically using task scheduler.
We have scheduler by specify this batch file, it is execute on time but it is show 0x1 error instead of success message. So we want to update certificate automatically using task scheduler.
Hopefully you understand it. Please help us to fix this.
I don’t normally outright promote my own software, but sometimes I do/should: https://certifytheweb.com
There lots of great command line tools for ACME on windows, but sometimes a GUI just helps. If you need CCS we don’t do that currently, but otherwise it probably has everything you need (auto renewal is coordinated using a background service that can perform retries etc and can even email you to tell you renewals have started failing).
I’m uncertain if it will make much difference…
But it surely won’t hurt; and it is really the only thing I can see of any significant difference:
I would rename the file as a CMD file instead of a BAT file. [Which also requires updating the task action to reflect your new file name: “auto-renew.cmd”].
And also, inside the CMD file, I would call the renewal command explicitly/directly:
Like: c:\folder\subfolder\autoacme renew
Or maybe also update the task action to “Start In (Optional)” to: c:\folder\subfolder
[a bit obvious, but worth mentioning so all can understand, Use the actual path location of your autoacme file]