Example batch file to auto-renew Bitnami WAMP Let's Encrypt certificate. This is from an old version of Bitnami, make sure you are using an updated version.
Copy to Clipboard
@echo off
echo Time to update Website upload Lets Encrypt Certificate...
echo.
echo.
echo Renew certificate:
cd /d "C:\Bitnami\wampstack-7.4.10-0\letsencrypt"
C:\Bitnami\wampstack-7.4.10-0\letsencrypt\lego.exe --email="joe@isp.com" --domains="helpfultechnotes.com" --accept-tos --http --http.port :81 --http.webroot="C:\Bitnami\wampstack-7.4.10-0\apache2\htdocs" renew
echo.
echo.
echo Copy certificates to Apache folder:
xcopy "C:\Bitnami\wampstack-7.4.10-0\letsencrypt\.lego\certificates\website.com.crt" "C:\Bitnami\wampstack-7.4.10-0\apache2\conf\*.*" /y
xcopy "C:\Bitnami\wampstack-7.4.10-0\letsencrypt\.lego\certificates\website.com.key" "C:\Bitnami\wampstack-7.4.10-0\apache2\conf\*.*" /y
echo.
echo.
echo Restarting Apache services...
sc stop wampstackApache
timeout 5
sc start wampstackApache
echo.
echo.
echo All Done renewing Certs!
timeout 60
|