<div>Hi!</div>
<div>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.</div>
<div> </div>
<div>The scenario is:</div>
<div>- Starting stunnel on server, extract from config file:</div>
<div>[ssh]</div>
<div>accept = myserver:122</div>
<div>connect = 22</div>
<div> </div>
<div>- Starting stunnel on client, extract from config file:</div>
<div>engine = myengine</div>
<div>engineNum = 1</div>
<div> client = yes</div>
<div>[ssh]</div>
<div>accept = 22</div>
<div>connect = myserver:122</div>
<div> </div>
<div>I come to here, than it hangs:</div>
<div>...</div>
<div>2009.06.08 15:08:22 LOG7[472:3054680976]: SSL state (connect): SSLv3 read server certificate A<br>2009.06.08 15:08:22 LOG7[472:3054680976]: SSL state (connect): SSLv3 read server certificate request A<br>2009.06.08 15:08:22 LOG7[472:3054680976]: SSL state (connect): SSLv3 read server done A<br>
2009.06.08 15:08:22 LOG7[472:3054680976]: SSL state (connect): SSLv3 write client certificate A<br>2009.06.08 15:08:22 LOG7[472:3054680976]: SSL state (connect): SSLv3 write client key exchange A<br> </div>
<div>- - - - - - -</div>
<div>But when I run in foreground mode, it all works fine and stunnel continues and I get the ssh login prompt.</div>
<div> </div>
<div> </div>
<div>
<div>I'm running RHEL 5.2, OpenSSL 0.9.8*, stunnel 4.27</div>
<div> </div>
<div>Any help would be appreciated</div>
<div>Rgds</div>
<div>JA</div></div>