Certificates in PowerBuilder - WeOnlyDo Discussion board

Certificates in PowerBuilder (General questions)

by markw, Friday, September 04, 2009, 04:21 (5559 days ago)

We have performed an evaluation using wodSFTP, and can set the Key = a long key sting . All good.

We want to now use wodFtpDLX as we want the ability to use standard ftp as well. It appears that I hve to now use a Certificate, but I can't work out how to set the properties, does anyone have a PB example code for this? (running PB 6.5)

Thanks in advance


Mark

Re: Certificates in PowerBuilder

by wodDamir, Friday, September 04, 2009, 09:26 (5558 days ago) @ markw

Hi Mark,

I believe I replied to you on our ticketing system. However, you should try something like this:

[code]oleObject PBObject
PBObject = create oleObject


PBObject.ConnectToNewObject( WeOnlyDo.Certificate.1 )


PBObject.LoadKey( C:key.txt )
messagebox( key ,String(PBObject.PublicKeyOpenSSH))
ole_1.object.Login = your_login
ole_1.object.Password = your_password
ole_1.object.Blocking = 1
ole_1.object.HostName = your_hostname
ole_1.object.Certificate = PBObject
ole_1.object.Connect
[/code]

Hope this helps.

Regards,
Damba