Hello,
Is there some easy way to create a SSH key pair with SecureBridge? Preferably with some code example. Its the same functionality as in Putty for this i'm looking for.
Best Regards, Pär
Create SSH Keypair with Securebridge?
Re: Create SSH Keypair with Securebridge?
To solve the defined task, you can use the TScKey.Generate method for RSA and DSA keys, and the TScKey.GenerateEC method to generate Elliptic Curve keys: https://devart.com/sbridge/docs/index.h ... nerate.htm
Here's a code example for generating and exporting RSA keys:
Here's a code example for generating and exporting RSA keys:
Code: Select all
procedure TMyForm.Button1Click(Sender: TObject);
var
Key: TScKey;
begin
Key := TScKey.Create(ScFileStorage.Keys);
Key.KeyName := 'MyKey';
Key.Generate(aaRSA, 2048);
Key.ExportTo(Key.KeyName + '.pub', True, '');
end;
Re: Create SSH Keypair with Securebridge?
Thanx, exactly what i was looking for,
/Pär
/Pär
Re: Create SSH Keypair with Securebridge?
Thank you for the interest to our product.
If you have any questions during using our products, please don't hesitate to contact us - and we will try to help you solve them.
If you have any questions during using our products, please don't hesitate to contact us - and we will try to help you solve them.