Archived Forum Post

Index of archived forum posts

Question:

FTP over TSL with server cert

Apr 07 '15 at 09:17

Hi,

Could you please provide an simple example to connect a client to an FTP server over TLS (found in your example section) but with a control of server's certificate (not found in your example section) ? It will be very helpful.

Regards


Answer

I don't exactly know what is meant by "with a control of server's certificate". Do you wish to access the server's certificate after connecting? If so, the example would include a call to ftp.GetSslServerCert() after the connection has succeeded. The GetSslServerCert method returns the Cert object (or CkCert, CkoCert, etc. depending on programming language).


Answer

Hi,

Thanks for your answer. Actually I want to check if the server's certificate is good (not expired, provide by the correct source...). I'll try with this method (in VB6) and I'll post here the solution (if works) to complete your documentation (if you're OK).

Regards


Answer

Thanks! That sounds great.