With FTPS you have to use PROT P to make the data channel TLS or PROT C for a non-protected data channel. It might hang because client and server don't agree about the protection of the channel, e.g. the clients wait for non-encrypted data from the server while the server waits for a TLS Client Hello from the client to start encryption. So please check your communication for "PROT" command and the replies to it.
Other problems might be if the FTP server is behind a router or firewall. PASV mode is used when the client is behind a firewall, but will give problems if the server is behind a dumb firewall or NAT. Try if plain (e.g. non-TLS) FTP works.