Your best friend for file transfer.

Fetch application logoFetch

TLS / SSL Authentication from a script (3 posts)

  • Started 1 year ago by JimBrandt
  • Latest reply 1 year ago from Jim Matthews
  • JimBrandt Member

    Jim,

    I currently send to a lot of sites using Fetch. One of the sites I send to has changed their site to require TSL/SSL authentication to gain access. How do I do this in the script?

    Currently, I build a link like this and log on:

    set FTP_Site to FTPMethod & "://" & MyID & ":" & PassWrd & "@" & HostAddr
    tell application "Fetch"
    set tw to make new transfer window at beginning with properties {url:FTP_Site}
    tell tw to set ConnectionStatus to status
    ...

    where:
    FTPMethod = "ftp" or "sftp"
    MyID = User ID of the site
    PassWrd = site password
    HostAddr = FTP address

    How do I go about changing the authentication to TSL/SSL?
    Do I put in a command right after the make new transfer window command like this

    set tw's authentication to TSL

    or do I replace the "FTP://" with "TSL://" in the initial set FTP_Site command? Is that even valid?

    JIm Brandt

    Posted 1 year ago #

  • JimBrandt Member

    I tried this:

    set tw to make new transfer window at beginning with properties {url:FTP_Site, authentication:TLS}

    and it is failing.

    Jim Brandt

    Posted 1 year ago #

  • Jim Matthews Administrator

    Hi,

    I would try clicking the Record button in Script Editor and connecting manually. What script command does it produce?

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 1 year ago #

Reply

  • Or nickname, if you prefer.
  • This will be kept confidential.
  • This is to ensure that you’re a person, not a spambot.