Categories: 🠪 General
Email 🠪 Servers
🠪 Testing
🠪 Tips
Hardware 🠪 3D Printing
🠪 Apple
🠪 Batteries
🠪 Drives
🠪 Edgerouter
🠪 Electronics
🠪 Laptop
🠪 Modems
🠪 Phone
🠪 Printers
🠪 Raspberry Pi
🠪 Tablets
🠪 Testing
🠪 Virtualization
hidden 🠪 General
Links 🠪 Interesting
🠪 Media
Network 🠪 Data
🠪 Testing
🠪 VPN
Scripts 🠪 Batch
🠪 Linux
🠪 Powershell
Servers 🠪 Databases
🠪 Misc
🠪 Website
Software 🠪 Other
Utilities 🠪 Backup
🠪 Fix Issues
🠪 Recovery
Video 🠪 Editing
Websites 🠪 HTML
🠪 Testing
Windows 🠪 Adjustments
🠪 Issues
🠪 Remote Desktop
🠪 Security
🠪 Slow
🠪 Software
🠪 Startup
Submit Entry
| Airin's Notes
Category: Servers 🠪 Website
Let's Encrypt Auto Renewal | November 30, 2023 |
Example batch file to auto-renew Bitnami WAMP Let's Encrypt certificate.
@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="airin@airinscomputers.com" --domains="website.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
|
|