Re: Load Key from DB - WeOnlyDo Discussion board

Re: Load Key from DB (General questions)

by Dk, Monday, February 27, 2006, 12:32 (6843 days ago) @ wodDrazen

Hi,

The key was successfully saved in the the db. When i tried to load it using the following code snippet it threw an exception: Failed to open key file

KeyManager keyMgr = new WeOnlyDo.Security.Cryptography.KeyManager();
SSHKeyTypes keyType = keyMgr.Load(System.Text.Encoding.Default.GetString(this.PrivateKey));

this.Privatekey has the exact key information as in the key file.

Please help

Thanks
Dk.


Complete thread: