Re: WOD SFTP - WeOnlyDo Discussion board

Re: WOD SFTP (General questions)

by Gary, Tuesday, July 07, 2009, 08:53 (5378 days ago) @ wodDamir

Hi Damba,

Pleas find the code below that initialize the key manager

mySFTP = New WeOnlyDo.Client.SFTP
mySFTPEventErrArg = Nothing
Try
With mySFTP
.Hostname = mConfig.FTP_Server
.Login = mConfig.FTP_User
km = New WeOnlyDo.Security.Cryptography.KeyManager
type = km.Load(mConfig.RSA_Key_Path)
.PrivateKey = km.PrivateKey(type)
.Authentication = WeOnlyDo.Client.SFTP.Authentications.PublicKey
.LicenseKey = mConfig.WeOnlyDo_LicenceKey
.Timeout = mConfig.FTP_TimeOut
End With
Catch ex As Exception
mLOG.Error( Error to set parameters when InitFTP , ex)
End Try

Hi Gary,

We never had reports of such errors. Can you perhaps provide us more details?

What environment is this occuring in?

From the exception I see that this occurs when initializing wodKeyManager.Net. Can you show me the part of code where you declare and initialize it?

Regards,
Damba

[code][/code]


Complete thread: