Private key with passphrase
Posted: Tue 20 Nov 2012 19:00
Hi,
I have a private key encrypted with a passphrase. I want to use it to connect to the SSH server. To open the Key, I use the ImportFrom() method.
However, it seems that the TFileStorage component saves the uncrypted key in a file "myKeyName.key". Can I stop him from doing that ? All I want is to open my connection with the server. I don't want the key to be stored uncrypted like this on the computer. Is there a solution ?
Thanks in advance,
I have a private key encrypted with a passphrase. I want to use it to connect to the SSH server. To open the Key, I use the ImportFrom() method.
Code: Select all
TScKey* myKey = new TScKey(myFileStorage->Keys);
K->KeyName = "myKeyName";
K->ImportFrom("myEncryptedKey.ssl", "myPassword");
Thanks in advance,