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

Advertisement

clemensh
Joined:
Posts:
6

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

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
. 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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,440
Location:
Prague, Czechia

Re: [WinSCP 5.8] Only 10 sec for entering client certificate passphrase in console mode

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.

Reply with quote

clemensh
Joined:
Posts:
6

Re: [WinSCP 5.8] Only 10 sec for entering client certificate passphrase in console mode

Hi,

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

Thank you!

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,440
Location:
Prague, Czechia

Re: [WinSCP 5.8] Only 10 sec for entering client certificate passphrase in console mode

As I wrote, do not use batch mode for open command. Enable it only after.

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,440
Location:
Prague, Czechia

Re: [WinSCP 5.8] Only 10 sec for entering client certificate passphrase in console mode

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:
https://winscp.net/tracker/1347

Reply with quote

Advertisement

You can post new topics in this forum