I am trying to automate file copy from one machine to other(lftp). Following manual commands work
$ lftp $ set ssl:verify-certificate no $ connect ftps://