views:

301

answers:

1

When I setup stunnel as a client on a machine to forward to another system on SSL port. I am able to connect once using that but when I disconnect from that server and then try to connect again it doesn't connect and shows the following in the logs:

2009.07.24 10:00:58 LOG5[4164:800]: my_server connected remote server from 192.168.0.61:2884 2009.07.24 10:00:58 LOG7[4164:800]: Remote FD=252 initialized 2009.07.24 10:00:58 LOG7[4164:800]: TCP_NODELAY option set on remote socket 2009.07.24 10:00:58 LOG7[4164:800]: SSL state (connect): before/connect initialization 2009.07.24 10:00:58 LOG7[4164:800]: SSL state (connect): SSLv3 write client hello A 2009.07.24 10:00:58 LOG7[4164:800]: SSL alert (read): fatal: unexpected_message 2009.07.24 10:00:58 LOG3[4164:800]: SSL_connect: 140943F2: error:140943F2:SSL routines:SSL3_READ_BYTES:sslv3 alert unexpected message 2009.07.24 10:00:58 LOG5[4164:800]: Connection reset: 0 bytes sent to SSL, 0 bytes sent to socket 2009.07.24 10:00:58 LOG7[4164:800]: my_server finished (0 left)

My configuration file is as the following:
cert = C:\stunnel\myCertificate.pem

socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1

verify = 2
CAfile = c:\stunnel\myrootca.pem

debug = 7
output = c:\stunnel\stunnel.log

client = yes

[my_server]
accept = 1555
connect = 192.168.0.101:14015
sslVersion = all

How could I solve this issue? The server I am trying to access is a Linux server which is listening on 14015 and client is a Windows machine.

A: 

Have you checked the stunnel logs on the remote server?

ifx