I successfully got Let’s Encrypt certificates onto my Linux Apache web server. However, to let Apache know that a new Cert has been applied, I need to run the command "sudo service apache2 reload. " The only way I can think to do this is to create a Powershell script that SSH into the box and runs that command for me.
Does anybody have a more elegant solution??
You should be able to use the the Script task and just set the script to that command, or supply a script file to run, and set the script task to use SSH to the remote host. I haven’t tried it myself in a couple of years but that’s what the SSH support is there for. Yes you can alternatively run a powershell script to run your own ssh, which can have compatibility/flexibility advantages