EldoS | Feel safer!

Software components for data protection, secure storage and transfer


Posted: 05/03/2011 06:36:37
by Christian (Standard support level)
Joined: 05/03/2011
Posts: 17

I need to send the Excel files to this address with these indications (SFTP)

host name
Port 11111
passsword certificate 22222
User name aaaaa
Username nWb%MBE_

which component should I use?

Best regards

Posted: 05/03/2011 08:30:43
by Ken Ivanov (Team)

Thank you for contacting us.

The information you provided is insufficient to give you an adequate answer. The only thing I can tell you now is that you have to use either TElSimpleSFTPClient or TElSimpleFTPSClient, 50/50. I suggest you to try both of the corresponding samples to check which one is actually able to connect to the server.
Posted: 05/04/2011 00:56:20
by Christian (Standard support level)
Joined: 05/03/2011
Posts: 17

What does the error code 10060?
Posted: 05/04/2011 01:10:55
by Eugene Mayevski (Team)

Sincerely yours
Eugene Mayevski
Posted: 05/05/2011 04:42:27
by Christian (Standard support level)
Joined: 05/03/2011
Posts: 17

Hi Eugene

Thank you for your reply

My server uses SFTP as the protocol
I used an example with a component TElSimpleSFTPClient

I dont know how to pass a parameter in the password of the certificate.
In the examples I see you used a file (Private key file for PUBLICKEY authentication type)
The server or I must send my files XLS wants a password certificate like number (22222)

Key := TElSSHKey.Create;
if (frmConnProps.edPrivateKey.Text <> '') and FileExists(frmConnProps.edPrivateKey.Text) and
(Key.LoadPrivateKey(frmConnProps.edPrivateKey.Text) = 0) then
SftpClient.AuthenticationTypes := SftpClient.AuthenticationTypes or SSH_AUTH_TYPE_PUBLICKEY;
SftpClient.AuthenticationTypes := SftpClient.AuthenticationTypes and not SSH_AUTH_TYPE_PUBLICKEY;

Thank you for your help

best regards

Posted: 05/05/2011 04:56:50
by Ken Ivanov (Team)

Unfortunately, we are having troubles with understanding what is "password certificate" in your case.

Let's try to come from the other side. Did you have a chance to connect to the server with some other software? If yes, how exactly do you configure it to connect to your server?
Posted: 05/05/2011 04:58:05
by Vsevolod Ievgiienko (Team)

The password can be passed as a second parameter to LoadPrivateKey function.

function LoadPrivateKey(const PrivateKeyFile : string; const Passphrase : string = '') : integer;
Posted: 05/05/2011 05:59:26
by Christian (Standard support level)
Joined: 05/03/2011
Posts: 17

The public key authentication and password (user) is required, has noted that the certificate's public key is itself protected by a password (certificate).
Posted: 05/05/2011 06:06:49
by Ken Ivanov (Team)

Thanks for the explanation. In fact, SSH/SFTP (unlike FTPS) rarely uses certificates, that is why it makes sense to clarify the exact protocol you need to comply to. So, putting aside certificates for a moment, what exactly output do you get with SimpleSFTPDemo sample?
Posted: 05/05/2011 06:09:30
by Vsevolod Ievgiienko (Team)

If the keys are stored in certificate then you should load this certificate as it is shown in, for example, \EldoS\SecureBlackbox\Samples\Delphi\PKIBlackbox\Primitives\Encrypt demo, and then load these keys using ElSSHKey.Import method.



Topic viewed 7359 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!