Re: OpenSSH Private Key - WeOnlyDo Discussion board

Re: OpenSSH Private Key (General questions)

by Rodney Trugman, Thursday, June 02, 2005, 21:32 (7112 days ago) @ wodSupport

I tried the load and get a trap:

An unhandled exception of type 'System.Exception' occurred in weonlydo.security.cryptography.keymanager.dll

Additional information: Failed to import key from file.

The code is from the sample app.

WeOnlyDo.Security.Cryptography.KeyManager km = new WeOnlyDo.Security.Cryptography.KeyManager();
WeOnlyDo.Security.Cryptography.SSHKeyTypes type = km.Load(textBox4.Text);
Console.WriteLine(km.PublicKeyOpenSSH(type));
Ssh1.PrivateKey = km.PrivateKey(type);

I can send you the key file if you want.


Complete thread: