ASp.net FTP using TSL or SSL enableSSL

Guys,
VB Asp.net,
I have
FTP working fine.
I need SSL or some sort
How do I get ftp.EnableSsl=true to work??

More info: window Server IIS 7 using FilZilla. Framework 4.0
The Certificate is not Valid, but thats ok.
Of course manually using TLS FTP or FTP without security in code works.
I need to automate FTP with TSL or SSL somehow using asp.net.
 

Looking for asp.net VB code example.
thanks
john
johnAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

btanExec ConsultantCommented:
The cert will be trusted and valid once it is in your trusted root cert store and likely you are using the self signed cert from the Filezilla FTP server to establish the SSL. Error can also pop up when the URL you are using is not matching with the common name (CN as Subject Name) on the SSL certificate
For the code, there is a old sharing in the article that may be of interest -
http://blogs.msdn.com/b/adarshk/archive/2005/04/22/410925.aspx#8462523 
and also
I had the same issue, but i was able to get this solved using the content in following posting http://www.codeguru.com/csharp/.net/net_security/authentication/article.php/c15051
Separately there is a library for FTPS for considerations but likely not to the latest framework, I did not drill further: http://www.codeproject.com/Articles/31624/An-FTP-secure-client-library-for-C

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dave BaldwinFixer of ProblemsCommented:
Here https://wiki.filezilla-project.org/FTPS_using_Explicit_SSL/TLS_howto_%28Server%29 is the page about using TLS in Filezilla Server.  Since the operation is 'automatic' when a client connects, I don't see where asp.net has anything to do with it.  ??
johnAuthor Commented:
OK,  I had already googled these links.

None of these examples had a complete solution.
I was looking for code that worked.
I found the code with all the pieces I was able to make work.
thanks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.