script help to accept certificate automatically
I'm very grateful for this program. We produce a radio program that we need to automatically upload to our server for radio stations to access. We've successfully done this using Windows Task Scheduler to run WinSCP with arguments (see code below). Our service provider recently switched over to FTPS - Explicit over TLS - which caused connection problems for some of the stations. That is an easy fix. The bigger issue has been when a script/schedule is used and a certificate needs to be accepted in order to connect... which seems to happen from time to time. The scheduled task never completes when a certificate needs to be accepted. We need to be able to have a reliable system... not wondering if the program ever made it to where it's supposed to go.
I've just read about using TlsHostCertificateFingerprint to avoid this certificate problem. I'm not a coder so I need a bit of help. I don't know what the proper syntax would be or where/how to incorporate it into our code below. Can someone point me in the right direction on this? Thanks!
/command "option batch abort" "option confirm off" "open ftp://radioprogram@sample.com@ftp.sample.com" "rm currentprogram.wav" "put C:\radioprogram\currentprogram.wav" "exit"
Also, is there a way to add a command to send us an email to tell us that the task succeeded or failed? That would be bonus.
Thanks!
Kent
I've just read about using TlsHostCertificateFingerprint to avoid this certificate problem. I'm not a coder so I need a bit of help. I don't know what the proper syntax would be or where/how to incorporate it into our code below. Can someone point me in the right direction on this? Thanks!
/command "option batch abort" "option confirm off" "open ftp://radioprogram@sample.com@ftp.sample.com" "rm currentprogram.wav" "put C:\radioprogram\currentprogram.wav" "exit"
Also, is there a way to add a command to send us an email to tell us that the task succeeded or failed? That would be bonus.
Thanks!
Kent