Script for copying one file to Multiple Routers (FTP)

Hi,

I have to copy to approximately 500 Mikrotik routers a new certificate file and I am looking the way to automatize this procedure so I don´t have to go one by one.

I am thinking about using a Mikrotik script for that purpose, and to copy the file from a CHR tunnelizer that has secure tunnels with all those 500 routers.

My idea is to have the IP addresses of all destination routers in a text file such as “server-IPs.txt”, so the script can read the addresses from that file and make the 500 FTP connections using a FOR or similar.. All routers have the same username and password.

I guess that is not a difficult issue but I have not experience in scripting. Any help here will be much appreciated!

Thanks in advance