Re: Error (General questions)

by wodDrazen, (6985 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

locked

Complete thread: