Reloading certificates
Posted by: StephanK (47.199.134.---)
Date: April 04, 2024 09:29PM

I have a batch file that gets executed at night, checking my Lets Encrypt certificates and renewing them if necessary.


How do I make Apache reload the certificates?

I tried
net stop wampapache64
net start wampapache64

but I can not run these from a scheduled task. I have tried everything, but I cannot get enough rights.

Any other way?

Options: ReplyQuote
Re: Reloading certificates
Posted by: Otomatic (Moderator)
Date: April 05, 2024 10:21AM

Hi,

May be:
E:\wamp64\bin\apache\apache2.4.59\bin>httpd.exe -n wampapache64 -k stop
The 'wampapache64' service is stopping.
The 'wampapache64' service has stopped.

E:\wamp64\bin\apache\apache2.4.59\bin>httpd.exe -n wampapache64 -k start

E:\wamp64\bin\apache\apache2.4.59\bin>

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Reloading certificates
Posted by: StephanK (47.199.134.---)
Date: April 05, 2024 12:55PM

Thanks. Unfortunately, this needs admin rights, and I have not been able to elevate that scheduled task to admin rights, no matter how many tricks I found on the internet.


Testing "ServiceScheduler" right now, it looks like it can restart a service once a week.

Options: ReplyQuote


Sorry, only registered users may post in this forum.