K koffie Member Licensed User Longtime User Feb 26, 2024 #1 Hi, I am on a shared server from hostnet and try to reach it with a small app. With Filezilla, FTP implicit is not working, but FTP explicit works flawless, after clicking away the " Server's certificate is unknown" warning. With B4A 11.80 and NET 1.81 I use the following code: Code: Copy Dim ftps As FTP Dim ctm As CustomTrustManager ftps.Initialize("ftps","prod.hostnet.nl",21,"username","password") ftps.PassiveMode = True ftps.UseSSLExplicit = True ctm.InitializeAcceptAll ftps.SetCustomSSLTrustManager(ctm) ftps.List("/_httpdocs") WITH the UseSSLexplicit=True I get a timeout and FTPS_listcompleted gives a success=false. Deleting UseSSLexplicit=True gives a success=true after about two seconds. What am i doing wrong. Is it a problem with the certificate ?
Hi, I am on a shared server from hostnet and try to reach it with a small app. With Filezilla, FTP implicit is not working, but FTP explicit works flawless, after clicking away the " Server's certificate is unknown" warning. With B4A 11.80 and NET 1.81 I use the following code: Code: Copy Dim ftps As FTP Dim ctm As CustomTrustManager ftps.Initialize("ftps","prod.hostnet.nl",21,"username","password") ftps.PassiveMode = True ftps.UseSSLExplicit = True ctm.InitializeAcceptAll ftps.SetCustomSSLTrustManager(ctm) ftps.List("/_httpdocs") WITH the UseSSLexplicit=True I get a timeout and FTPS_listcompleted gives a success=false. Deleting UseSSLexplicit=True gives a success=true after about two seconds. What am i doing wrong. Is it a problem with the certificate ?
Erel B4X founder Staff member Licensed User Longtime User Feb 27, 2024 #2 FTP implicit works with a different port as the connection is made over TLS directly. Hard to say why your current code doesn't work. It might be a cipher / algorithm that isn't compatible with your device. Upvote 0
FTP implicit works with a different port as the connection is made over TLS directly. Hard to say why your current code doesn't work. It might be a cipher / algorithm that isn't compatible with your device.