Certificates in PowerBuilder (General questions)
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
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