Stunnel client hangs in background mode when smartcard is used

Hi! I have a problem when running ssh over stunnel in background mode ('foreground' out-commented in config file). In foreground mode, everything works fine. I'm using a modified OpenSSL, adding an engine that is dedicated to communicate with a smartcard reader. The scenario is: - Starting stunnel on server, extract from config file: [ssh] accept = myserver:122 connect = 22 - Starting stunnel on client, extract from config file: engine = myengine engineNum = 1 client = yes [ssh] accept = 22 connect = myserver:122 I come to here, than it hangs: ... 2009.06.08 15:08:22 LOG7[472:3054680976]: SSL state (connect): SSLv3 read server certificate A 2009.06.08 15:08:22 LOG7[472:3054680976]: SSL state (connect): SSLv3 read server certificate request A 2009.06.08 15:08:22 LOG7[472:3054680976]: SSL state (connect): SSLv3 read server done A 2009.06.08 15:08:22 LOG7[472:3054680976]: SSL state (connect): SSLv3 write client certificate A 2009.06.08 15:08:22 LOG7[472:3054680976]: SSL state (connect): SSLv3 write client key exchange A - - - - - - - But when I run in foreground mode, it all works fine and stunnel continues and I get the ssh login prompt. I'm running RHEL 5.2, OpenSSL 0.9.8*, stunnel 4.27 Any help would be appreciated Rgds JA
participants (1)
-
John Abloyer