You need to have windows operating system installed on your computer.
HOSTING PANEL
ANY HOSTING PANEL WITH SSH OR FTP
Any Hosting panel with SFTP, SCP Protocols over SSH, Or FTP support is needed. In this post, we'll implement the backup with Cpanel with SFTP protocol over SSH.
How to Auto-Renew your Website’s Let’s Encrypt SSL from your Computer.
opensftp://yourusername:yourpassword@yourserver.com-hostkey="ssh-rsa 2048 xx:xx:xx..."lcdC:\Path\To\Local\SSL\Directory# Change this to your actual local path# Upload SSL certificatecd/home/youruser/ssl/certs/putcertificate.pem# Upload Private Keycd/home/youruser/ssl/keys/putprivate_key.pem# Upload CA Bundle (if required)cd/home/youruser/ssl/certs/putca_bundle.pemexit
@echooffsetlocalenabledelayedexpansion:: Set the domain name (Modify this)set DOMAIN=yourdomain.com:: Define local SSL directory (update this if needed)set SSL_DIR=C:\Path\To\Local\SSL\Directoryset LOGFILE=C:\ssl_renew_log.txt:: Run Win-ACME renewal for the domainwacs.exe --renew --force --target manual --host %DOMAIN%if%errorlevel%neq0(echo [ERROR] SSL renewal failed for %DOMAIN%. >>"%LOGFILE%"exit /b):: Rename SSL files for clarityren"%SSL_DIR%\%DOMAIN%-crt.pem" certificate.pemren"%SSL_DIR%\%DOMAIN%-key.pem" private_key.pemren"%SSL_DIR%\%DOMAIN%-chain.pem" ca_bundle.pem:: Run WinSCP upload scriptwinscp.com /script=C:\upload_script.txtif%errorlevel%neq0(echo [ERROR] SSL upload failed for %DOMAIN%. >>"%LOGFILE%"exit /b):: Install SSL using cPanel APIecho Installing SSL for %DOMAIN%...curl -u "cpanel_username:cpanel_password" ^ --request POST "https://your-cpanel-server:2083/execute/SSL/install_ssl" ^ --data "domain=%DOMAIN%&cert=$(cat %SSL_DIR%\certificate.pem)&key=$(cat %SSL_DIR%\private_key.pem)&cabundle=$(cat %SSL_DIR%\ca_bundle.pem)"if%errorlevel%neq0(echo [ERROR] SSL installation failed for %DOMAIN%. >>"%LOGFILE%")else(echo [SUCCESS] SSL installed for %DOMAIN%. >>"%LOGFILE%")echo SSL renewal, upload, and installation completed for %DOMAIN%.exit /b