Topic "[WinSCP 5.8] Only 10 sec for entering client certificate passphrase in console mode"

Author Message
clemensh
[View user's profile]

Joined: 2015-05-12
Posts: 6
In version 5.8 of WinSCP, there is a bug in connecting to a FTPS server in console mode:
After asking for the passphrase of the client certificate the user only has 10 seconds for entering it. After this time, the console closes without a message.

The log ends with the lines
Code:

. 2015-06-24 09:32:08.504 Transfer Protocol: FTP
. 2015-06-24 09:32:08.504 Ping type: Dummy, Ping interval: 30 sec; Timeout: 15 sec
. 2015-06-24 09:32:08.504 Disable Nagle: No
. 2015-06-24 09:32:08.504 Proxy: None
. 2015-06-24 09:32:08.504 Send buffer: 262144
. 2015-06-24 09:32:08.504 UTF: Auto
. 2015-06-24 09:32:08.504 FTP: FTPS: Implicit TLS/SSL; Passive: Yes [Force IP: On]; MLSD: Auto [List all: Auto]
. 2015-06-24 09:32:08.504 Session reuse: Yes
. 2015-06-24 09:32:08.504 TLS/SSL versions: TLSv1.0-TLSv1.2
. 2015-06-24 09:32:08.504 Local directory: \, Remote directory: /, Update: Yes, Cache: Yes
. 2015-06-24 09:32:08.504 Cache directory changes: Yes, Permanent: Yes
. 2015-06-24 09:32:08.504 Timezone offset: 0h 0m
. 2015-06-24 09:32:08.504 --------------------------------------------------------------------------
. 2015-06-24 09:32:08.507 Certificate is encrypted, need passphrase
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
In a batch mode, the script should generally do not prompt for anything.
Do not use a batch mode for the open command, if you expect a prompt.
clemensh
[View user's profile]

Joined: 2015-05-12
Posts: 6
Hi,

thanks for your reply.
So what do you recommend for not saving the password in the script? What are the alternatives?

Thank you!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
As I wrote, do not use batch mode for open command. Enable it only after.

Code:
option batch off
open ....
option batch abort
... other commands


Or do not use the batch mode at all, as your script is obviously not running unattended.
clemensh
[View user's profile]

Joined: 2015-05-12
Posts: 6
Thank you very much!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
clemensh wrote:
After asking for the passphrase of the client certificate the user only has 10 seconds for entering it. After this time, the console closes without a message.

This issue has been added to the tracker:
http://winscp.net/tracker/show_bug.cgi?id=1347
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License