Re: is WeOnlyDo.Security.Cwwryptography.KeyManager - WeOnlyDo Discussion board

Re: is WeOnlyDo.Security.Cwwryptography.KeyManager (General questions)

by lily, Thursday, April 13, 2006, 16:55 (6798 days ago) @ wodSupport

Unfortunatelly, I don't have nice and clean answer for that.

You will need to do this once only:

1. use wodKeyManager from wodSFTP.NET or wodSSH.NET
2. do wodKeyManager.Load to load that key
3. do wodKeyManager.ToXmlString to export to XML

now you have XML you can use with wodFtpDLX.NET .

Sorry for these steps, but with wodFtpDLX.NET we tried to migrate fully to NET framework functions, and seems it doesn't have nice way to import OpenSSH keys.

Kreso

Hi, Kreso,

I have tried to do the way you told me like the following:
kt = km.Load(_PrivateKey, _Passphrase);
wodftpdlx1.PrivateKey = km.ToXmlString(kt, true);
I also tried:
kt = km.Load(_PrivateKey, _Passphrase);
wodftpdlx1.PrivateKey = km.ToXmlString(kt, false);

Both didn't work. It didn't give error message when compile, however, the connection failed due to authentication - I assume it is because of the privatekey value is not in the correct format.

Could you tell me what's wrong? Thank you in advance.


Complete thread: