Re: any chance using privatekey without referencin - WeOnlyDo Discussion board

Re: any chance using privatekey without referencin (General questions)

by warayuth, Thursday, February 01, 2007, 04:29 (6506 days ago) @ warayuth

One more question: how do you convert it to a byte? What exactly do you convert?

If you convert value of wodKeyManager.PrivateKey then it should actually work.

Kreso


I do not use keymanager component to convert.
what I do is read privateKey from file to filestream then use C# class(can't remember which one.it's somthing like ASCII.endcoding...) to convert to byte array. it didn't work and return error wrong key format

What I want to know is. Are there any way that developer can avoid using Keymanger to load/convert privatekey to byte array before passing it to privatekey properties in SFTP.


warayuth


Complete thread: