Re: Error - WeOnlyDo Discussion board

Re: Error (General questions)

by wodDrazen, Sunday, March 19, 2006, 17:41 (6823 days ago) @ condev1972

Hi Tobias,

Authentication with Certificate private/public key work in way that user load his login and private key before connecting to server and server has user public key and that is how he recognize user.
In your application you only need to load USER private key, private key that he already generate it.

Here is example:

-------------
Dim Ftp1 as new wodFtpDLX
Dim cert as new wodCertificate

Set Ftp1.Certificate = cert

cert.LoadKey App.Path & mykey.txt
cert.Load App.Path & mykey.txt

Ftp1.HostName = your_server
Ftp1.Authentication = authCertificate
Ftp1.Login = something
Ftp1.Protocol = SFTP

Ftp1.Connect
--------------


Hope I helped.

Regards,
Drazen


Complete thread: