Re: Code segment, using keys - WeOnlyDo Discussion board

Re: Code segment, using keys (General questions)

by scotstyer, Monday, November 14, 2011, 16:27 (4518 days ago) @ wodDamir

Hi,

Please check the following article:

http://www.weonlydo.com/index.asp?kb=1&View=entry&EntryID=80

It shows how to initiate wodCertificate object. Once initialized, you need to use Load method to load the key, and pass the object reference back to wodFtpDLX.Certificate property.

Can you please try something like that?

Regards,
Damba


Does this syntax appear to be correct?
to validate using keys

OLEObject ole_cer

ole_cer = CREATE oleobject
ole_cer.ConnectToNewObject( WeOnlyDo.Certificate.1 )
ole_cer.loadkey( c:jmskey.txt )


ole_ftp.object.hostname = ftp_site
ole_ftp.object.login = ftp_acc
ole_ftp.object.certificate = ole_cer
ole_ftp.object.authentication = 2
ole_ftp.object.transfermode = 0
ole_ftp.object.blocking = 0
ole_ftp.object.protocol = 1
ole_ftp.object.compression = 6
ole_ftp.object.passive = 1
ole_ftp.object.port = 22


Complete thread: