question - WeOnlyDo Discussion board

question (wodFtpDLX / wodFtpDLX.NET)

by ScotS, Monday, March 21, 2016, 18:11 (2957 days ago)

i have a key created from puttygen.
i exported the openssh private key.
i use an ssh key in my program.
Can I simply read the key that was saved to the file?

------------------------------------------------------------

ole_cer.ConnectToNewObject("WeOnlyDo.Certificate.1")
ole_cer.loadkey(f_path)

ole_ftp.object.hostname = ftp_site
ole_ftp.object.login = 'DOCCTS'
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 = port

pb_retrieve.enabled = false
ole_ftp.object.connect()

-----------------------------------------------------------

or... do I need to actually generate a keyfile thru Weonlydo
in the savekey operation
we've already send a copy of the public key to the vendor
that was generated from puttygen


ole_cer = CREATE oleobject
ole_cer.ConnectToNewObject("WeOnlyDo.Certificate.1")

ole_cer.generatekey(0)
ole_cer.savekey(f_path)

key_value = ole_cer.publickeyopenssh

li_filenum = FileOpen( f_path2, streamMode!, Write!, Shared!, Replace!)
fileWrite(li_FileNum, key_value)
fileclose(li_filenum)


Complete thread:

 

  • question - ScotS, 2016-03-21, 18:11 [*]