I’m in need of writing a script to copy certificate from one node on a load balanced cluster server to another. Which files do I need to copy and how to handle renewing on the other server?
As long as the Apache on the other side is configured properly then yes. Note that if you’re using certbot that /etc/letsencrypt/live just contains symlinks to /etc/letsencrypt/archive, so you may need to copy both. (I forget if scp dereferences symlinks…I always use rsync for things like this…)
Or instead of scripting it yourself, use the getssl client, which can handle this for you: