|
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(...)"
Thanks! |
|
Well, after a lot of testing ...I finally made it through ...here's my code
Sorry for not replying earlier - on weekends, we only check the forum occasionally.
(03 May '10, 12:06)
Lukas Pokorny ♦♦
I would remove the "p.Version = TlsVersion.SSL30" line - this disables TLS 1.0, which is actually newer than SSL 3.0 (simply said, TLS 1.0 is SSL 3.1) and should be preferred.
(03 May '10, 12:08)
Lukas Pokorny ♦♦
|
|
Please check out our HOWTO on solving the "Server certificate was rejected by the verifier" exception. This describes several methods of solving the issue and also mentions their pros and cons. |
I forgot to say, I'm currently using Rebex FTP/SSL for .NET 2.5.2800.0
...thanks!