Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
4.3k views
in .NET FTP by (160 points)
Hello,

I'm using edtFTPnet/PRO for connectiong on the SFTP server.
In the SecureFTPConnection is possibility just to set ClientPrivateKeyFile which is path to the private key file.
I would like to not have this key on the file system, is it possible to load key with Stream or StreamReader.

I found in your Java client following and I would need something similar in .NET:

setAuthentication

public void setAuthentication(java.io.InputStream inStr,
java.lang.String userName,
java.lang.String keyFilePassphrase)
throws java.io.IOException,
FTPException


Thank you very much in the advance.

Darko

3 Answers

0 votes
by (162k points)
Yes, you can use ClientPrivateKeyBytes, which is simply a byte array that you can construct anyway you wish.
0 votes
by (160 points)
Thank you, this is exactly what I need.

BTW this property is not in the docs http://www.enterprisedt.com/products/ed ... mbers.html and that is why I haven't found it.

br, Darko
0 votes
by (162k points)
Ok, we'll update the documentation on the web. It should be in the installed documentation.

Categories

...