Creating KeyPair using wodsftp.net (wodSFTP / wodSFTP.NET / wodSFTPdll)
Hi,
I am using your wodsftp component. I need to generate key pair for connecting to a server.
I am using the following code
String Filename = c:\Keys\secretkey.rsa ;
String Password = secret_password ;
KeyManager km = new KeyManager();
try
{
km.Load(Filename, Password);
}
catch (Exception)
{
km.Generate(SSHKeyTypes.RSAKey);
km.Save(SSHKeyTypes.RSAKey, Filename, Password);
}
But how do i generate public key thorugh this code as i am able to generate and save only private key in this code.
Regards
hit_arc
Complete thread:
- Creating KeyPair using wodsftp.net - hit_arc, 2008-06-04, 10:50
- Re: Creating KeyPair using wodsftp.net - wodDamir, 2008-06-04, 11:10
- Re: Creating KeyPair using wodsftp.net - hit_arc, 2008-06-04, 11:54
- Re: Creating KeyPair using wodsftp.net - wodDamir, 2008-06-04, 12:02
- Re: Creating KeyPair using wodsftp.net - hit_arc, 2008-06-04, 11:54
- Re: Creating KeyPair using wodsftp.net - wodDamir, 2008-06-04, 11:10