Cannot connect to SBC/yahoo to send (or telnet)

View: New views
16 Messages — Rating Filter:   Alert me  

Cannot connect to SBC/yahoo to send (or telnet)

by James Moe-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,
  (I sent this yesterday but that one seems to have gotten lost....)
  Stunnel v4.20.
  When connecting to SBC/Yahoo, the session is terminated
with a "bad certificate" message. See the log below. The tech folks claim
all is well at their end.
  Is there something I am missing here?
  Here is the conf file:

....[ conf ]....

socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1
client = yes
output = G:/c/voice/pmmdev/testcase/bin/stunnel.log
verify = 0
debug  = 7
cert   = g:/c/voice/pmmdev/testcase/bin/sma-test.pem

[sbc]
  accept  = localhost:6325
  connect = smtp.att.yahoo.com:465

....[ end conf ]....

....[ connection log ]....

2008.11.11 00:14:17 LOG7[223:1737]: sbc accepted FD=15 from 127.0.0.1:61053
2008.11.11 00:14:17 LOG7[223:1737]: Creating a new thread
2008.11.11 00:14:17 LOG7[223:1737]: New thread created
2008.11.11 00:14:17 LOG7[251:1737]: sbc started
2008.11.11 00:14:17 LOG7[251:1737]: FD 15 in non-blocking mode
2008.11.11 00:14:17 LOG7[251:1737]: TCP_NODELAY option set on local socket
2008.11.11 00:14:17 LOG5[251:1737]: sbc accepted connection from
127.0.0.1:61053
2008.11.11 00:14:17 LOG7[251:1737]: FD 16 in non-blocking mode
2008.11.11 00:14:17 LOG7[251:1737]: sbc connecting 69.147.64.31:465
2008.11.11 00:14:17 LOG7[251:1737]: connect_wait: waiting 10 seconds
2008.11.11 00:14:17 LOG7[251:1737]: connect_wait: connected
2008.11.11 00:14:17 LOG5[251:1737]: sbc connected remote server from
192.168.69.14:61054
2008.11.11 00:14:17 LOG7[251:1737]: Remote FD=16 initialized
2008.11.11 00:14:17 LOG7[251:1737]: TCP_NODELAY option set on remote socket
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): before/connect
initialization
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 write
client hello A
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 read server
hello A
2008.11.11 00:14:17 LOG5[251:1737]: VERIFY IGNORE: depth=0,
/C=US/ST=California/L=Santa Clara/O=Yahoo! Inc./OU=Yahoo/CN=smtp.att.yahoo.com
2008.11.11 00:14:17 LOG5[251:1737]: VERIFY OK: depth=0,
/C=US/ST=California/L=Santa Clara/O=Yahoo! Inc./OU=Yahoo/CN=smtp.att.yahoo.com
2008.11.11 00:14:17 LOG5[251:1737]: VERIFY IGNORE: depth=0,
/C=US/ST=California/L=Santa Clara/O=Yahoo! Inc./OU=Yahoo/CN=smtp.att.yahoo.com
2008.11.11 00:14:17 LOG5[251:1737]: VERIFY OK: depth=0,
/C=US/ST=California/L=Santa Clara/O=Yahoo! Inc./OU=Yahoo/CN=smtp.att.yahoo.com
2008.11.11 00:14:17 LOG5[251:1737]: VERIFY IGNORE: depth=0,
/C=US/ST=California/L=Santa Clara/O=Yahoo! Inc./OU=Yahoo/CN=smtp.att.yahoo.com
2008.11.11 00:14:17 LOG5[251:1737]: VERIFY OK: depth=0,
/C=US/ST=California/L=Santa Clara/O=Yahoo! Inc./OU=Yahoo/CN=smtp.att.yahoo.com
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 read server
certificate A
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 read server
certificate request A
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 read server
done A
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 write
client certificate A
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 write
client key exchange A
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 write
certificate verify A
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 write
change cipher spec A
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 write
finished A
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 flush data
2008.11.11 00:14:18 LOG7[251:1737]: SSL alert (read): fatal: bad certificate
2008.11.11 00:14:18 LOG3[251:1737]: SSL_connect: 14094412:
error:14094412:SSL routines:SSL3_READ_BYTES:sslv3 alert bad certificate
2008.11.11 00:14:18 LOG5[251:1737]: Connection reset: 0 bytes sent to SSL,
0 bytes sent to socket
2008.11.11 00:14:18 LOG7[251:1737]: sbc finished (0 left)


....[ end log ]....

- --
jimoe (at) sohnen-moe (dot) com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (OS/2)

iD8DBQFJGe4zzTcr8Prq0ZMRAhSPAJ4h6YHyR+/W5brb7FK1tbbW1zYZ+wCglxpC
9k2qqpP2hN99BL0TnsNhlnw=
=P74g
-----END PGP SIGNATURE-----
_______________________________________________
stunnel-users mailing list
stunnel-users@...
http://stunnel.mirt.net/mailman/listinfo/stunnel-users

Re: Cannot connect to SBC/yahoo to send (or telnet)

by Christophe Nanteuil :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Try the option
sslVersion=TLSv1

2008/11/11 James Moe <jimoe@...>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,
 (I sent this yesterday but that one seems to have gotten lost....)
 Stunnel v4.20.
 When connecting to SBC/Yahoo, the session is terminated
with a "bad certificate" message. See the log below. The tech folks claim
all is well at their end.
 Is there something I am missing here?
 Here is the conf file:

....[ conf ]....

socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1
client = yes
output = G:/c/voice/pmmdev/testcase/bin/stunnel.log
verify = 0
debug  = 7
cert   = g:/c/voice/pmmdev/testcase/bin/sma-test.pem

[sbc]
 accept  = localhost:6325
 connect = smtp.att.yahoo.com:465

....[ end conf ]....

....[ connection log ]....

2008.11.11 00:14:17 LOG7[223:1737]: sbc accepted FD=15 from 127.0.0.1:61053
2008.11.11 00:14:17 LOG7[223:1737]: Creating a new thread
2008.11.11 00:14:17 LOG7[223:1737]: New thread created
2008.11.11 00:14:17 LOG7[251:1737]: sbc started
2008.11.11 00:14:17 LOG7[251:1737]: FD 15 in non-blocking mode
2008.11.11 00:14:17 LOG7[251:1737]: TCP_NODELAY option set on local socket
2008.11.11 00:14:17 LOG5[251:1737]: sbc accepted connection from
127.0.0.1:61053
2008.11.11 00:14:17 LOG7[251:1737]: FD 16 in non-blocking mode
2008.11.11 00:14:17 LOG7[251:1737]: sbc connecting 69.147.64.31:465
2008.11.11 00:14:17 LOG7[251:1737]: connect_wait: waiting 10 seconds
2008.11.11 00:14:17 LOG7[251:1737]: connect_wait: connected
2008.11.11 00:14:17 LOG5[251:1737]: sbc connected remote server from
192.168.69.14:61054
2008.11.11 00:14:17 LOG7[251:1737]: Remote FD=16 initialized
2008.11.11 00:14:17 LOG7[251:1737]: TCP_NODELAY option set on remote socket
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): before/connect
initialization
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 write
client hello A
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 read server
hello A
2008.11.11 00:14:17 LOG5[251:1737]: VERIFY IGNORE: depth=0,
/C=US/ST=California/L=Santa Clara/O=Yahoo! Inc./OU=Yahoo/CN=smtp.att.yahoo.com
2008.11.11 00:14:17 LOG5[251:1737]: VERIFY OK: depth=0,
/C=US/ST=California/L=Santa Clara/O=Yahoo! Inc./OU=Yahoo/CN=smtp.att.yahoo.com
2008.11.11 00:14:17 LOG5[251:1737]: VERIFY IGNORE: depth=0,
/C=US/ST=California/L=Santa Clara/O=Yahoo! Inc./OU=Yahoo/CN=smtp.att.yahoo.com
2008.11.11 00:14:17 LOG5[251:1737]: VERIFY OK: depth=0,
/C=US/ST=California/L=Santa Clara/O=Yahoo! Inc./OU=Yahoo/CN=smtp.att.yahoo.com
2008.11.11 00:14:17 LOG5[251:1737]: VERIFY IGNORE: depth=0,
/C=US/ST=California/L=Santa Clara/O=Yahoo! Inc./OU=Yahoo/CN=smtp.att.yahoo.com
2008.11.11 00:14:17 LOG5[251:1737]: VERIFY OK: depth=0,
/C=US/ST=California/L=Santa Clara/O=Yahoo! Inc./OU=Yahoo/CN=smtp.att.yahoo.com
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 read server
certificate A
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 read server
certificate request A
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 read server
done A
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 write
client certificate A
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 write
client key exchange A
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 write
certificate verify A
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 write
change cipher spec A
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 write
finished A
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 flush data
2008.11.11 00:14:18 LOG7[251:1737]: SSL alert (read): fatal: bad certificate
2008.11.11 00:14:18 LOG3[251:1737]: SSL_connect: 14094412:
error:14094412:SSL routines:SSL3_READ_BYTES:sslv3 alert bad certificate
2008.11.11 00:14:18 LOG5[251:1737]: Connection reset: 0 bytes sent to SSL,
0 bytes sent to socket
2008.11.11 00:14:18 LOG7[251:1737]: sbc finished (0 left)


....[ end log ]....

- --
jimoe (at) sohnen-moe (dot) com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (OS/2)

iD8DBQFJGe4zzTcr8Prq0ZMRAhSPAJ4h6YHyR+/W5brb7FK1tbbW1zYZ+wCglxpC
9k2qqpP2hN99BL0TnsNhlnw=
=P74g
-----END PGP SIGNATURE-----
_______________________________________________
stunnel-users mailing list
stunnel-users@...
http://stunnel.mirt.net/mailman/listinfo/stunnel-users



--
Christophe Nanteuil

_______________________________________________
stunnel-users mailing list
stunnel-users@...
http://stunnel.mirt.net/mailman/listinfo/stunnel-users

Help - Getting stunnel compiled on windows and using a patch

by Reinier van der Gugten :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,
 
I am trying to compile STunnel. I'd rather not, but the pre-compiled version does not support a proxy server.
So I hop you will be able to help me, or point me to a good howto on how to compile stunnel using windows and a patch from the patch-list. Or does someone have a compiled (windows) version with proxy support? If so, please mail it to me.
 
Or tell me where to find more detailed information pls. - Next thing I will try is to install linux on a computer in order to try it that way...
 
Greetings,
 
Reinier.
 

_______________________________________________
stunnel-users mailing list
stunnel-users@...
http://stunnel.mirt.net/mailman/listinfo/stunnel-users

Re: Help - Getting stunnel compiled on windows and using a patch

by tcort :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Reinier,

> So I hope you will be able to help me, or point me to a
> good howto on how to compile stunnel using windows and a
> patch from the patch-list

The INSTALL.W32 file in the source tarball says "native compilation on a Windows machine is possible, but not supported." The approach suggested in the file is to install a cross compiler on a Linux machine and build the stunnel binary there. A while ago I successfully compiled stunnel 4.24 on Linux after a lot of trial and error. I wrote down these instructions at the time, but I don't know if they're applicable to openssl-0.9.8i and stunnel-4.26. Hopefully I wrote down everything correctly. If you (or anyone else) discovers or knows of a better way to build an stunnel binary for Windows, please share it with the list and/or add it to the INSTALL.W32 file.

* Install mingw32

apt-get install mingw32

* Download and unpack openssl-0.9.8h

* Make sure the environment is setup properly.

export CC=i586-mingw32msvc-gcc
export CXX=i586-mingw32msvc-c++
export LD=i586-mingw32msvc-ld
export AR=i586-mingw32msvc-ar
export AS=i586-mingw32msvc-as
export NM=i586-mingw32msvc-nm
export STRIP=i586-mingw32msvc-strip
export RANLIB=i586-mingw32msvc-ranlib
export DLLTOOL=i586-mingw32msvc-dlltool
export OBJDUMP=i586-mingw32msvc-objdump
export RESCOMP=i586-mingw32msvc-windres

* Edit Configure, remove the following line

$IsMK1MF=1 if ($target eq "mingw" && $^O ne "cygwin" && !is_msys());

* Edit Configure, replace ":-mno-cygwin -shared:" with

:-mno-cygwin -Wl,--export-all -shared:

* Configure and make

perl Configure mingw shared
sed -i -e 's/nm/i586-mingw32msvc-nm/g' Makefile.shared
make CC=i586-mingw32msvc-gcc RANLIB=i586-mingw32msvc-ranlib

* Download and unpack stunnel-4.24

* Configure it

./configure --with-ssl=/path/to/openssl-0.9.8h

* Extracted openssl source code to /usr/src because the makefile adds "-I/usr/src/openssl-0.9.8h/include" to CFLAGS.

cd /usr/src && tar zvxf ~/openssl-0.9.8h.tar.gz

* Go back to stunnel-4.24/src

make stunnel.exe

Hope this helps,
Tom
_______________________________________________
stunnel-users mailing list
stunnel-users@...
http://stunnel.mirt.net/mailman/listinfo/stunnel-users

Parent Message unknown Re: Help - Getting stunnel compiled on windows and using a patch

by Reinier van der Gugten :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks so mucht for this information!
I had to make the folowing changes as well:
Set the Compile with common language runtime to: No common language runtime support for each .h file
If I do that, the error: Command line error D8045: cannot compile C file 'src\client.c' with the /clr option disappears
 
(Next I got an error in the resouce.rc file with the LTEXT VERSION... So I // that out)
 
Next I get about 121 errors, like:
Error LNK2001: unresolved external symbol _main
... symbol _num_clients
etc.
 
Any ideas?
 
Kind regards,
 
Reinier


From: DMILE525 [mailto:dmile525@...]
Sent: donderdag 13 november 2008 23:23
To: Reinier van der Gugten
Subject: Re: [stunnel-users] Help - Getting stunnel compiled on windows and using a patch

on Windows:
install Win32 OpenSSL http://www.slproweb.com/products/Win32OpenSSL.html
install VS2008 (I'm using free VS2008 C++ Express Edition http://www.microsoft.com/express/download/)

The first thing to do (assuming a default installation of 'C:\OpenSSL') is to go to 'C:\OpenSSL\lib\VC' and copy all of the files to your Visual C++ 'lib' directory. This directory is sometimes located in a somewhat cryptic location such as 'C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib' or 'C:\Program Files\Microsoft Visual Studio 9.0\VC\lib'.

Next, copy everything in the 'C:\OpenSSL\include' directory to your Visual C++ 'include' directory.
create new empty project
add to project:
stunnel.c ssl.c ctx.c verify.c file.c client.c protocol.c sthreads.c log.c options.c network.c resolver.c gui.c  
common.h prototypes.h
 resources.h stunnel.ico resources.rc
 
"Configuration properties -> Linker -> input -> additional properties" add wsock32.lib ssleay32.lib libeay32.lib
"Configuration properties -> General -> character set" set "Use Multi-Byte Character Set"
in common.h  after
#ifndef COMMON_H
#define COMMON_H

add

#define USE_WIN32
 
#define _CRT_SECURE_NO_DEPRECATE
#define _CRT_NONSTDC_NO_DEPRECATE
//#define HAVE_GETADDRINFO
//#define HAVE_GETNAMEINFO
#ifndef _MBCS
#define _MBCS
#endif
 
#define VERSION "4.26"
 
#if defined _M_IX86
#pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
#elif defined _M_IA64
#pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"")
#elif defined _M_X64
#pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
#else
#pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
#endif


On Wed, Nov 12, 2008 at 6:50 PM, Reinier van der Gugten <info@...> wrote:
Hello,
 
I am trying to compile STunnel. I'd rather not, but the pre-compiled version does not support a proxy server.
So I hop you will be able to help me, or point me to a good howto on how to compile stunnel using windows and a patch from the patch-list. Or does someone have a compiled (windows) version with proxy support? If so, please mail it to me.
 
Or tell me where to find more detailed information pls. - Next thing I will try is to install linux on a computer in order to try it that way...
 
Greetings,
 
Reinier.
 

_______________________________________________
stunnel-users mailing list
stunnel-users@...
http://stunnel.mirt.net/mailman/listinfo/stunnel-users



_______________________________________________
stunnel-users mailing list
stunnel-users@...
http://stunnel.mirt.net/mailman/listinfo/stunnel-users

Proxy support

by Reinier van der Gugten :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi STunnel users!
 
Has someone got a working version of STunnel that can handle a proxy?
 
I was hoping to use one of the patches (verion 4.05) that say they can use proxy, but beleave me or not, I was unable to compile the 4.05 version (the latest version compiles fine, thanks to dmile525). And I also tried to merge the patch with the source files, but that failed as well.
 
So my question is, has anyone got a working STunnel with proxy support (preferably a recent version)? If so, I would be very greatful and would even be willing to pay him a bit of money for it. I need it to run under windows.
 
Please let me know what the options are.
 
Reinier.

_______________________________________________
stunnel-users mailing list
stunnel-users@...
http://stunnel.mirt.net/mailman/listinfo/stunnel-users

Re: Proxy support

by Michal Trojnara-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Fri, 14 Nov 2008 14:53:20 +0100, "Reinier van der Gugten" <info@...>
wrote:
> Has someone got a working version of STunnel that can handle a proxy?

Do you mean client mode CONNECT protocol support (RFC 2817 section 5.2)?
http://www.ietf.org/rfc/rfc2817.txt 
It's supported in stunnel since version 4.15 (released 2006.03.11).

Best regards,
    Mike

_______________________________________________
stunnel-users mailing list
stunnel-users@...
http://stunnel.mirt.net/mailman/listinfo/stunnel-users

Parent Message unknown Proxy support

by Reinier van der Gugten :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 
Oops.. That's exactly what I meant...

However What is the correct configuration in that case?
E.g. I want to connect to an external location at: Myserver.com:443 The
proxy is at: CustomerProxy:8080 And my application runs at the customer
talking to: localhost:1433 The proxy does not require authentication.

Looking at the docuemtation you linked me I found this example:
        CONNECT server.example.com:80 HTTP/1.1
        Host: server.example.com:80
        Proxy-Authorization: basic aGVsbG86d29ybGQ=

Using my addresses, where goes what?
        CONNECT CustomerProxy:8080 HTTP/1.1
        Host: Myserver.com:443
// Proxy-Authorization: basic aGVsbG86d29ybGQ=

Kind regards,

Reinier



-----Original Message-----
From: stunnel-users-bounces@...
[mailto:stunnel-users-bounces@...] On Behalf Of Michal Trojnara
Sent: vrijdag 14 november 2008 15:04
To: stunnel-users@...
Subject: Re: [stunnel-users] Proxy support


On Fri, 14 Nov 2008 14:53:20 +0100, "Reinier van der Gugten"
<info@...>
wrote:
> Has someone got a working version of STunnel that can handle a proxy?

Do you mean client mode CONNECT protocol support (RFC 2817 section 5.2)?
http://www.ietf.org/rfc/rfc2817.txt
It's supported in stunnel since version 4.15 (released 2006.03.11).

Best regards,
    Mike

_______________________________________________
stunnel-users mailing list
stunnel-users@...
http://stunnel.mirt.net/mailman/listinfo/stunnel-users
_______________________________________________
stunnel-users mailing list
stunnel-users@...
http://stunnel.mirt.net/mailman/listinfo/stunnel-users

Re: Proxy support

by Reinier van der Gugten :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Can anyone tell me the config settings to make it work over a windows
proxy?
If it's not implemented, how mucht would it cost to get it implemented?

Reinier

-----Original Message-----
From: stunnel-users-bounces@...
[mailto:stunnel-users-bounces@...] On Behalf Of Reinier van der
Gugten
Sent: zondag 16 november 2008 8:50
To: stunnel-users@...
Subject: [stunnel-users] Proxy support

 
Oops.. That's exactly what I meant...

However What is the correct configuration in that case?
E.g. I want to connect to an external location at: Myserver.com:443 The
proxy is at: CustomerProxy:8080 And my application runs at the customer
talking to: localhost:1433 The proxy does not require authentication.

Looking at the docuemtation you linked me I found this example:
        CONNECT server.example.com:80 HTTP/1.1
        Host: server.example.com:80
        Proxy-Authorization: basic aGVsbG86d29ybGQ=

Using my addresses, where goes what?
        CONNECT CustomerProxy:8080 HTTP/1.1
        Host: Myserver.com:443
// Proxy-Authorization: basic aGVsbG86d29ybGQ=

Kind regards,

Reinier



-----Original Message-----
From: stunnel-users-bounces@...
[mailto:stunnel-users-bounces@...] On Behalf Of Michal Trojnara
Sent: vrijdag 14 november 2008 15:04
To: stunnel-users@...
Subject: Re: [stunnel-users] Proxy support


On Fri, 14 Nov 2008 14:53:20 +0100, "Reinier van der Gugten"
<info@...>
wrote:
> Has someone got a working version of STunnel that can handle a proxy?

Do you mean client mode CONNECT protocol support (RFC 2817 section 5.2)?
http://www.ietf.org/rfc/rfc2817.txt
It's supported in stunnel since version 4.15 (released 2006.03.11).

Best regards,
    Mike

_______________________________________________
stunnel-users mailing list
stunnel-users@...
http://stunnel.mirt.net/mailman/listinfo/stunnel-users
_______________________________________________
stunnel-users mailing list
stunnel-users@...
http://stunnel.mirt.net/mailman/listinfo/stunnel-users
_______________________________________________
stunnel-users mailing list
stunnel-users@...
http://stunnel.mirt.net/mailman/listinfo/stunnel-users

Parent Message unknown Re: Cannot connect to SBC/yahoo to send (or telnet)

by James Moe-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/18/08 10:17 am, James Moe wrote:
> Hello,
>   Stunnel v4.20.
>   When connecting to SBC/Yahoo, the session is terminated
> with a "bad certificate" message. See the log below. The tech folks claim
> all is well at their end.
>   Is there something I am missing here?
>   Here is the conf file:
>
  My apologies. I lost control of the email program and it sent this
message here instead of to a local host.

- --
jimoe (at) sohnen-moe (dot) com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (OS/2)

iD8DBQFJIvmqzTcr8Prq0ZMRAsb2AJ9ROwt9FH4GpfyNWQ020rpGmC7K/wCdGhdW
Bs96qyJjjXSA9d+AwVktAac=
=+UNT
-----END PGP SIGNATURE-----
_______________________________________________
stunnel-users mailing list
stunnel-users@...
http://stunnel.mirt.net/mailman/listinfo/stunnel-users

Parent Message unknown Re: Cannot connect to SBC/yahoo to send (or telnet)

by James Moe-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/19/08 03:20 am, kith walls wrote:
> When connecting to SBC/Yahoo you need to front the session with HTTP.
>
  I am not clear what you mean. Would you give an example?

>> Hello,
>>   Stunnel v4.20.
>>   When connecting to SBC/Yahoo, the session is
> terminated
>> with a "bad certificate" message. See the
> log below. The tech folks claim
>> all is well at their end.
>>   Is there something I am missing here?
>>   Here is the conf file:
>

- --
jimoe (at) sohnen-moe (dot) com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (OS/2)

iD8DBQFJJEsmzTcr8Prq0ZMRAjiTAJ9n/nZO2zaZemqvsU2Y1ge30OYdJQCeN3Oc
Wj0dFPjjSH7qbV5d5L/F3ck=
=ijQ0
-----END PGP SIGNATURE-----
_______________________________________________
stunnel-users mailing list
stunnel-users@...
http://stunnel.mirt.net/mailman/listinfo/stunnel-users

Re: Cannot connect to SBC/yahoo to send (or telnet)

by alexlim :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I'm having the same problem. Setting the ssl level to version 1 didn't seem to help. Did this work for you>

James Moe-2 wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,
  (I sent this yesterday but that one seems to have gotten lost....)
  Stunnel v4.20.
  When connecting to SBC/Yahoo, the session is terminated
with a "bad certificate" message. See the log below. The tech folks claim
all is well at their end.
  Is there something I am missing here?
  Here is the conf file:

....[ conf ]....

socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1
client = yes
output = G:/c/voice/pmmdev/testcase/bin/stunnel.log
verify = 0
debug  = 7
cert   = g:/c/voice/pmmdev/testcase/bin/sma-test.pem

[sbc]
  accept  = localhost:6325
  connect = smtp.att.yahoo.com:465

....[ end conf ]....

....[ connection log ]....

2008.11.11 00:14:17 LOG7[223:1737]: sbc accepted FD=15 from 127.0.0.1:61053
2008.11.11 00:14:17 LOG7[223:1737]: Creating a new thread
2008.11.11 00:14:17 LOG7[223:1737]: New thread created
2008.11.11 00:14:17 LOG7[251:1737]: sbc started
2008.11.11 00:14:17 LOG7[251:1737]: FD 15 in non-blocking mode
2008.11.11 00:14:17 LOG7[251:1737]: TCP_NODELAY option set on local socket
2008.11.11 00:14:17 LOG5[251:1737]: sbc accepted connection from
127.0.0.1:61053
2008.11.11 00:14:17 LOG7[251:1737]: FD 16 in non-blocking mode
2008.11.11 00:14:17 LOG7[251:1737]: sbc connecting 69.147.64.31:465
2008.11.11 00:14:17 LOG7[251:1737]: connect_wait: waiting 10 seconds
2008.11.11 00:14:17 LOG7[251:1737]: connect_wait: connected
2008.11.11 00:14:17 LOG5[251:1737]: sbc connected remote server from
192.168.69.14:61054
2008.11.11 00:14:17 LOG7[251:1737]: Remote FD=16 initialized
2008.11.11 00:14:17 LOG7[251:1737]: TCP_NODELAY option set on remote socket
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): before/connect
initialization
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 write
client hello A
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 read server
hello A
2008.11.11 00:14:17 LOG5[251:1737]: VERIFY IGNORE: depth=0,
/C=US/ST=California/L=Santa Clara/O=Yahoo! Inc./OU=Yahoo/CN=smtp.att.yahoo.com
2008.11.11 00:14:17 LOG5[251:1737]: VERIFY OK: depth=0,
/C=US/ST=California/L=Santa Clara/O=Yahoo! Inc./OU=Yahoo/CN=smtp.att.yahoo.com
2008.11.11 00:14:17 LOG5[251:1737]: VERIFY IGNORE: depth=0,
/C=US/ST=California/L=Santa Clara/O=Yahoo! Inc./OU=Yahoo/CN=smtp.att.yahoo.com
2008.11.11 00:14:17 LOG5[251:1737]: VERIFY OK: depth=0,
/C=US/ST=California/L=Santa Clara/O=Yahoo! Inc./OU=Yahoo/CN=smtp.att.yahoo.com
2008.11.11 00:14:17 LOG5[251:1737]: VERIFY IGNORE: depth=0,
/C=US/ST=California/L=Santa Clara/O=Yahoo! Inc./OU=Yahoo/CN=smtp.att.yahoo.com
2008.11.11 00:14:17 LOG5[251:1737]: VERIFY OK: depth=0,
/C=US/ST=California/L=Santa Clara/O=Yahoo! Inc./OU=Yahoo/CN=smtp.att.yahoo.com
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 read server
certificate A
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 read server
certificate request A
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 read server
done A
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 write
client certificate A
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 write
client key exchange A
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 write
certificate verify A
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 write
change cipher spec A
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 write
finished A
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 flush data
2008.11.11 00:14:18 LOG7[251:1737]: SSL alert (read): fatal: bad certificate
2008.11.11 00:14:18 LOG3[251:1737]: SSL_connect: 14094412:
error:14094412:SSL routines:SSL3_READ_BYTES:sslv3 alert bad certificate
2008.11.11 00:14:18 LOG5[251:1737]: Connection reset: 0 bytes sent to SSL,
0 bytes sent to socket
2008.11.11 00:14:18 LOG7[251:1737]: sbc finished (0 left)


....[ end log ]....

- --
jimoe (at) sohnen-moe (dot) com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (OS/2)

iD8DBQFJGe4zzTcr8Prq0ZMRAhSPAJ4h6YHyR+/W5brb7FK1tbbW1zYZ+wCglxpC
9k2qqpP2hN99BL0TnsNhlnw=
=P74g
-----END PGP SIGNATURE-----
_______________________________________________
stunnel-users mailing list
stunnel-users@mirt.net
http://stunnel.mirt.net/mailman/listinfo/stunnel-users

Re: Cannot connect to SBC/yahoo to send (or telnet)

by alexlim :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks to James email today. I was able to get it to work. Quoting James here.

 The solution was to remove the "cert" line from the configuration file.
The "verify" level had to stay at 0.

This did the trick.

 

James Moe-2 wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,
  (I sent this yesterday but that one seems to have gotten lost....)
  Stunnel v4.20.
  When connecting to SBC/Yahoo, the session is terminated
with a "bad certificate" message. See the log below. The tech folks claim
all is well at their end.
  Is there something I am missing here?
  Here is the conf file:

....[ conf ]....

socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1
client = yes
output = G:/c/voice/pmmdev/testcase/bin/stunnel.log
verify = 0
debug  = 7
cert   = g:/c/voice/pmmdev/testcase/bin/sma-test.pem

[sbc]
  accept  = localhost:6325
  connect = smtp.att.yahoo.com:465

....[ end conf ]....

....[ connection log ]....

2008.11.11 00:14:17 LOG7[223:1737]: sbc accepted FD=15 from 127.0.0.1:61053
2008.11.11 00:14:17 LOG7[223:1737]: Creating a new thread
2008.11.11 00:14:17 LOG7[223:1737]: New thread created
2008.11.11 00:14:17 LOG7[251:1737]: sbc started
2008.11.11 00:14:17 LOG7[251:1737]: FD 15 in non-blocking mode
2008.11.11 00:14:17 LOG7[251:1737]: TCP_NODELAY option set on local socket
2008.11.11 00:14:17 LOG5[251:1737]: sbc accepted connection from
127.0.0.1:61053
2008.11.11 00:14:17 LOG7[251:1737]: FD 16 in non-blocking mode
2008.11.11 00:14:17 LOG7[251:1737]: sbc connecting 69.147.64.31:465
2008.11.11 00:14:17 LOG7[251:1737]: connect_wait: waiting 10 seconds
2008.11.11 00:14:17 LOG7[251:1737]: connect_wait: connected
2008.11.11 00:14:17 LOG5[251:1737]: sbc connected remote server from
192.168.69.14:61054
2008.11.11 00:14:17 LOG7[251:1737]: Remote FD=16 initialized
2008.11.11 00:14:17 LOG7[251:1737]: TCP_NODELAY option set on remote socket
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): before/connect
initialization
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 write
client hello A
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 read server
hello A
2008.11.11 00:14:17 LOG5[251:1737]: VERIFY IGNORE: depth=0,
/C=US/ST=California/L=Santa Clara/O=Yahoo! Inc./OU=Yahoo/CN=smtp.att.yahoo.com
2008.11.11 00:14:17 LOG5[251:1737]: VERIFY OK: depth=0,
/C=US/ST=California/L=Santa Clara/O=Yahoo! Inc./OU=Yahoo/CN=smtp.att.yahoo.com
2008.11.11 00:14:17 LOG5[251:1737]: VERIFY IGNORE: depth=0,
/C=US/ST=California/L=Santa Clara/O=Yahoo! Inc./OU=Yahoo/CN=smtp.att.yahoo.com
2008.11.11 00:14:17 LOG5[251:1737]: VERIFY OK: depth=0,
/C=US/ST=California/L=Santa Clara/O=Yahoo! Inc./OU=Yahoo/CN=smtp.att.yahoo.com
2008.11.11 00:14:17 LOG5[251:1737]: VERIFY IGNORE: depth=0,
/C=US/ST=California/L=Santa Clara/O=Yahoo! Inc./OU=Yahoo/CN=smtp.att.yahoo.com
2008.11.11 00:14:17 LOG5[251:1737]: VERIFY OK: depth=0,
/C=US/ST=California/L=Santa Clara/O=Yahoo! Inc./OU=Yahoo/CN=smtp.att.yahoo.com
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 read server
certificate A
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 read server
certificate request A
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 read server
done A
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 write
client certificate A
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 write
client key exchange A
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 write
certificate verify A
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 write
change cipher spec A
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 write
finished A
2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 flush data
2008.11.11 00:14:18 LOG7[251:1737]: SSL alert (read): fatal: bad certificate
2008.11.11 00:14:18 LOG3[251:1737]: SSL_connect: 14094412:
error:14094412:SSL routines:SSL3_READ_BYTES:sslv3 alert bad certificate
2008.11.11 00:14:18 LOG5[251:1737]: Connection reset: 0 bytes sent to SSL,
0 bytes sent to socket
2008.11.11 00:14:18 LOG7[251:1737]: sbc finished (0 left)


....[ end log ]....

- --
jimoe (at) sohnen-moe (dot) com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (OS/2)

iD8DBQFJGe4zzTcr8Prq0ZMRAhSPAJ4h6YHyR+/W5brb7FK1tbbW1zYZ+wCglxpC
9k2qqpP2hN99BL0TnsNhlnw=
=P74g
-----END PGP SIGNATURE-----
_______________________________________________
stunnel-users mailing list
stunnel-users@mirt.net
http://stunnel.mirt.net/mailman/listinfo/stunnel-users

Re: Cannot connect to SBC/yahoo to send (or telnet)

by Michal Trojnara-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Guys,

Just be aware a configuration without any authentication (a certificate is
not sent nor verified) is vulnerable to trivial active (MiTM) attacks.
There are various lamer-friendly tools available, so an attack is no more
difficult than sniffing a plaintext connection.

Mike

On Sat, 29 Nov 2008 13:24:52 -0800 (PST), alexlim <alex@...>
wrote:

>
> Thanks to James email today. I was able to get it to work. Quoting James
> here.
>
>  The solution was to remove the "cert" line from the configuration file.
> The "verify" level had to stay at 0.
>
> This did the trick.
>
>
>
>
> James Moe-2 wrote:
>>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Hello,
>>   (I sent this yesterday but that one seems to have gotten lost....)
>>   Stunnel v4.20.
>>   When connecting to SBC/Yahoo, the session is terminated
>> with a "bad certificate" message. See the log below. The tech folks
> claim
>> all is well at their end.
>>   Is there something I am missing here?
>>   Here is the conf file:
>>
>> ....[ conf ]....
>>
>> socket = l:TCP_NODELAY=1
>> socket = r:TCP_NODELAY=1
>> client = yes
>> output = G:/c/voice/pmmdev/testcase/bin/stunnel.log
>> verify = 0
>> debug  = 7
>> cert   = g:/c/voice/pmmdev/testcase/bin/sma-test.pem
>>
>> [sbc]
>>   accept  = localhost:6325
>>   connect = smtp.att.yahoo.com:465
>>
>> ....[ end conf ]....
>>
>> ....[ connection log ]....
>>
>> 2008.11.11 00:14:17 LOG7[223:1737]: sbc accepted FD=15 from
>> 127.0.0.1:61053
>> 2008.11.11 00:14:17 LOG7[223:1737]: Creating a new thread
>> 2008.11.11 00:14:17 LOG7[223:1737]: New thread created
>> 2008.11.11 00:14:17 LOG7[251:1737]: sbc started
>> 2008.11.11 00:14:17 LOG7[251:1737]: FD 15 in non-blocking mode
>> 2008.11.11 00:14:17 LOG7[251:1737]: TCP_NODELAY option set on local
> socket
>> 2008.11.11 00:14:17 LOG5[251:1737]: sbc accepted connection from
>> 127.0.0.1:61053
>> 2008.11.11 00:14:17 LOG7[251:1737]: FD 16 in non-blocking mode
>> 2008.11.11 00:14:17 LOG7[251:1737]: sbc connecting 69.147.64.31:465
>> 2008.11.11 00:14:17 LOG7[251:1737]: connect_wait: waiting 10 seconds
>> 2008.11.11 00:14:17 LOG7[251:1737]: connect_wait: connected
>> 2008.11.11 00:14:17 LOG5[251:1737]: sbc connected remote server from
>> 192.168.69.14:61054
>> 2008.11.11 00:14:17 LOG7[251:1737]: Remote FD=16 initialized
>> 2008.11.11 00:14:17 LOG7[251:1737]: TCP_NODELAY option set on remote
>> socket
>> 2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): before/connect
>> initialization
>> 2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 write
>> client hello A
>> 2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 read
> server
>> hello A
>> 2008.11.11 00:14:17 LOG5[251:1737]: VERIFY IGNORE: depth=0,
>> /C=US/ST=California/L=Santa Clara/O=Yahoo!
>> Inc./OU=Yahoo/CN=smtp.att.yahoo.com
>> 2008.11.11 00:14:17 LOG5[251:1737]: VERIFY OK: depth=0,
>> /C=US/ST=California/L=Santa Clara/O=Yahoo!
>> Inc./OU=Yahoo/CN=smtp.att.yahoo.com
>> 2008.11.11 00:14:17 LOG5[251:1737]: VERIFY IGNORE: depth=0,
>> /C=US/ST=California/L=Santa Clara/O=Yahoo!
>> Inc./OU=Yahoo/CN=smtp.att.yahoo.com
>> 2008.11.11 00:14:17 LOG5[251:1737]: VERIFY OK: depth=0,
>> /C=US/ST=California/L=Santa Clara/O=Yahoo!
>> Inc./OU=Yahoo/CN=smtp.att.yahoo.com
>> 2008.11.11 00:14:17 LOG5[251:1737]: VERIFY IGNORE: depth=0,
>> /C=US/ST=California/L=Santa Clara/O=Yahoo!
>> Inc./OU=Yahoo/CN=smtp.att.yahoo.com
>> 2008.11.11 00:14:17 LOG5[251:1737]: VERIFY OK: depth=0,
>> /C=US/ST=California/L=Santa Clara/O=Yahoo!
>> Inc./OU=Yahoo/CN=smtp.att.yahoo.com
>> 2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 read
> server
>> certificate A
>> 2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 read
> server
>> certificate request A
>> 2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 read
> server
>> done A
>> 2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 write
>> client certificate A
>> 2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 write
>> client key exchange A
>> 2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 write
>> certificate verify A
>> 2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 write
>> change cipher spec A
>> 2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 write
>> finished A
>> 2008.11.11 00:14:17 LOG7[251:1737]: SSL state (connect): SSLv3 flush
> data
>> 2008.11.11 00:14:18 LOG7[251:1737]: SSL alert (read): fatal: bad
>> certificate
>> 2008.11.11 00:14:18 LOG3[251:1737]: SSL_connect: 14094412:
>> error:14094412:SSL routines:SSL3_READ_BYTES:sslv3 alert bad certificate
>> 2008.11.11 00:14:18 LOG5[251:1737]: Connection reset: 0 bytes sent to
> SSL,
>> 0 bytes sent to socket
>> 2008.11.11 00:14:18 LOG7[251:1737]: sbc finished (0 left)
>>
>>
>> ....[ end log ]....
>>
>> - --
>> jimoe (at) sohnen-moe (dot) com
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.7 (OS/2)
>>
>> iD8DBQFJGe4zzTcr8Prq0ZMRAhSPAJ4h6YHyR+/W5brb7FK1tbbW1zYZ+wCglxpC
>> 9k2qqpP2hN99BL0TnsNhlnw=
>> =P74g
>> -----END PGP SIGNATURE-----
>> _______________________________________________
>> stunnel-users mailing list
>> stunnel-users@...
>> http://stunnel.mirt.net/mailman/listinfo/stunnel-users
>>
>>
>
> --
> View this message in context:
>
http://www.nabble.com/Cannot-connect-to-SBC-yahoo-to-send-%28or-telnet%29-tp20449058p20751631.html
> Sent from the Stunnel - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> stunnel-users mailing list
> stunnel-users@...
> http://stunnel.mirt.net/mailman/listinfo/stunnel-users

_______________________________________________
stunnel-users mailing list
stunnel-users@...
http://stunnel.mirt.net/mailman/listinfo/stunnel-users

Re: Cannot connect to SBC/yahoo to send (or telnet)

by James Moe-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/01/08 02:10 am, Michal Trojnara wrote:
>
> Just be aware a configuration without any authentication (a certificate is
> not sent nor verified) is vulnerable to trivial active (MiTM) attacks.
> There are various lamer-friendly tools available, so an attack is no more
> difficult than sniffing a plaintext connection.
>
  (I had sent on 1-Dec-2008 but it never showed up on the list. :-( )

<rant>
  Computer security makes me feel stupid. It has got to be one of the most
opaque concepts in the industry. The problems discussed in this thread are
typical.
  sbc/yahoo changed their session setup to require an encrypted
connection. Fine. Then they refuse a session if the client offers a
certificate without a CA chain, i.e., self-signed. But allows a connection
when no client certificate is offered at all.
  To verify that sbc is really sbc, a CA certificate is needed from sbc.
But to get said certificate an extremely obscure method must be used. (And
how do I know that the site I connected to is really sbc since I do not
have a CA certificate?) Then more obscure file manipulation and setup is
required for Stunnel.
  It is no wonder that computer security is bungled so often. It is set up
to do so.
  I see a lot of "All you have to do is these 247 steps..." to accomplish
a "simple" security task. That's assuming I have all of the tools needed.
  I am sure that, somewhere, there must be a clear discussion of how
SSL/TSL certificates work, what the client may provide, what the server
may provide, what is necessary to establish a secure, authenticated
session. I have not found it.
</rant>

- --
jimoe (at) sohnen-moe (dot) com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (OS/2)

iD8DBQFJOYDUzTcr8Prq0ZMRAmAPAKC2A4qfbmHWVIVhvXUqJRkad83j5ACeIuDE
nt7r/rAdg1ebb5oNOAI55G4=
=FtQ1
-----END PGP SIGNATURE-----
_______________________________________________
stunnel-users mailing list
stunnel-users@...
http://stunnel.mirt.net/mailman/listinfo/stunnel-users

Parent Message unknown Re: Cannot connect to SBC/yahoo to send (or telnet)

by Leandro Avila-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Not sure if ranting will get you the kind of answer that you look for but it was certainly entertaining for me.

Anyway...
I agree, some times things can be a little frustraiting but I guess that depends on how much time on how much work you want to put into it. Sorry to hear you feel stupid. Everyone has to start from 0 at shome point and it takes time to get a good handle to how things work. The question is... do you really want to know how things work or just want them to work without having to do much?

A google search of "SSL Explained"
http://wildbill.nulldevice.net/presentations/sslpreso/
I liked slide 11/35 nice little diagram of SSL handshake wich helps to visualize in very general terms how an SSL connection works.
The rest of the slides are good too check them out!

In your particular case that forced you to change from plain-text to SSL connections to your mail server. You had a couple of options.

- First and most obvious is to use SSL support build into your mail client (Thunderbird, Outlook,etc) most if not all modern mail clients support SSL natively. No need for stunnel there.

- If your mail client does not support SSL then stunnel is the way to go. But your issue is on how stunnel is being used. As client.

When you are a client... you always want to verify your server. You want to make sure you are connected to the right server. You want to use verify=2 in stunnel.conf

How do we verify that the server I just connected is in fact the right server?
That is the Certificate Authority's job. We ultimately have to trust the CA they issued the certificate for the server owner. They signed the certificate with their key. and we use the CA's certificate to verify that signature.
Here is the catch... operating systems, and some programs are shipped with a prebuild collection of CA certificates. Unfortunatelly stunnel does not.

However, most CAs let you download their certificates for your own use. In your particular case, looks like the server you are connecting to uses a certificate issued by Equifax Secure Certificate Authority
Here they have the download page for the CA Certificates.
http://www.geotrust.com/resources/root-certificates/

You pointed out that they refuse connections if the client presents a certificate. Yes, that is somehow a common practice. Mutual authentication (both server and client send certificates to each other and verify them) is impractical in some cases.

Thanks
-----------------
Leandro Avila


     

_______________________________________________
stunnel-users mailing list
stunnel-users@...
http://stunnel.mirt.net/mailman/listinfo/stunnel-users