Hi, I'm currently to make my connection to my FileZilla server that uses the FTPS. What I found in the samples is something as simple as setting up the TlsParameters and add myFTP.Secure(tlsparam) and it works ...
I copy the code from a sample ...and I am able to connect on my FTP Server with those sample but in my code ...I'm not able to.
I started with the sample: ResumableTransfert sample and I checked the "TLS/SSL" and "Do not validate any server certificates - this is insecure but useful for testing." ...at first it didn't work.
After, I tried with the WinFormClient setting up the parameters FTPS over Implicit SSL ...I manually accepted the certificate and I got connected...
After that, I went back into the ResumableTransfert and I was finally able to connect with the same settings as before! I guess my certificate was saved somewhere that I cannot find from the samples ...but I would like to accept that certificate all the time ..is there anyway ????
I get a connection on my FTP server ...I get only the welcome message (code 220) and I got a Timeout exception after that...on the line "myFTP.Connect(...)"
Dim myFTP As New Ftp
Dim paramSecure As New TlsParameters
paramSecure.CommonName = ses.serverName
paramSecure.CertificateVerifier = CertificateVerifier.AcceptAll
With myFTP
Try
.SecureTransfers = True
.Connect(ses.serverName, ses.port)
.Secure(paramSecure)
.Login(ses.username, ses.password)
.Disconnect()
Catch ex As Exception
Response.Write(ex.Message.ToString)
Finally
.Dispose()
End Try
End With
Thanks!