[stunnel-users] FW: I can't get stunnel working : SSL3_GET_RECORD:wrong version number

The Guru swampy747 at hotmail.com
Thu Nov 17 15:08:38 CET 2011







I am having a problem getting stunnel to work.  I am trying to use stunnel to help me test my interface to a server.  The server is SSL, I am using win32 sockets and using stunnel to connect my test app to the server.  My test app connects to the local address "127.0.0.1:9401" (stunnel accept) and I want stunnel to connet to the SSL server.  When I try to connect, stunnel reports an error "wrong version number".  I don't understant why.  I can connect to the SSL server using "openssl s_client" just fine.
 
STUNNEL LOG (I edited IP's):
2011.11.16 16:56:49 LOG7[8788:5664]: local socket: FD=460 allocated (non-blocking mode)
2011.11.16 16:56:49 LOG7[8788:5664]: Service GPC-HOST accepted FD=460 from 127.0.0.1:59719
2011.11.16 16:56:49 LOG7[8788:5664]: Creating a new thread
2011.11.16 16:56:49 LOG7[8788:5664]: New thread created
2011.11.16 16:56:49 LOG7[8788:6596]: Service GPC-HOST started
2011.11.16 16:56:49 LOG7[8788:6596]: Option TCP_NODELAY set on local socket
2011.11.16 16:56:49 LOG5[8788:6596]: Service GPC-HOST accepted connection from 127.0.0.1:59719
2011.11.16 16:56:49 LOG7[8788:6596]: remote socket: FD=488 allocated (non-blocking mode)
2011.11.16 16:56:49 LOG6[8788:6596]: connect_blocking: connecting 1.1.1.1:9401
2011.11.16 16:56:49 LOG7[8788:6596]: connect_blocking: s_poll_wait 1.1.1.1:9401: waiting 10 seconds
2011.11.16 16:56:49 LOG5[8788:6596]: connect_blocking: connected 1.1.1.1:9401
2011.11.16 16:56:49 LOG5[8788:6596]: Service GPC-HOST connected remote server from 192.168.1.106:59720
2011.11.16 16:56:49 LOG7[8788:6596]: Remote FD=488 initialized
2011.11.16 16:56:49 LOG7[8788:6596]: Option TCP_NODELAY set on remote socket
2011.11.16 16:56:49 LOG7[8788:6596]: SNI: host name: fe1.mercurydev.net
2011.11.16 16:56:50 LOG3[8788:6596]: SSL_connect: 1408F10B: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number
2011.11.16 16:56:50 LOG5[8788:6596]: Connection reset: 0 bytes sent to SSL, 0 bytes sent to socket
2011.11.16 16:56:50 LOG7[8788:6596]: Service GPC-HOST finished (0 left)
2011.11.16 16:56:50 LOG7[8788:6596]: str_stats: 0 block(s), 0 data byte(s), 0 control byte(s)
 
STUNNEL CFG:
debug = 7
cert = stunnel.pem
options = NO_SSLv2
options = SINGLE_ECDH_USE
options = SINGLE_DH_USE
[GPC-HOST]
client = yes
accept = 127.0.0.1:9401
connect = fe1.mydomaindev.net:9401
 
 
OPENSSL LOG (This works just fine)
 

C:\Program Files (x86)\stunnel>openssl s_client -connect fe1.mydomaindev.net:9401
 -debug -state
Loading 'screen' into random state - done
CONNECTED(00000190)
SSL_connect:before/connect initialization
write to 0x4b5f98 [0x4c6b40] (211 bytes => 211 (0xD3))
0000 - 16 03 01 00 ce 01 00 00-ca 03 01 4e c4 34 ee 30   ...........N.4.0
0010 - aa bc 02 5e 64 ee 00 43-03 78 5c 20 98 0f 67 61   ...^d..C.x\ ..ga
0020 - 77 f1 43 64 25 75 3e fd-9b bd d0 00 00 5c c0 14   w.Cd%u>......\..
0030 - c0 0a 00 39 00 38 00 88-00 87 c0 0f c0 05 00 35   ...9.8.........5
0040 - 00 84 c0 12 c0 08 00 16-00 13 c0 0d c0 03 00 0a   ................
0050 - c0 13 c0 09 00 33 00 32-00 9a 00 99 00 45 00 44   .....3.2.....E.D
0060 - c0 0e c0 04 00 2f 00 96-00 41 00 07 c0 11 c0 07   ...../...A......
0070 - c0 0c c0 02 00 05 00 04-00 15 00 12 00 09 00 14   ................
0080 - 00 11 00 08 00 06 00 03-00 ff 02 01 00 00 44 00   ..............D.
0090 - 0b 00 04 03 00 01 02 00-0a 00 34 00 32 00 01 00   ..........4.2...
00a0 - 02 00 03 00 04 00 05 00-06 00 07 00 08 00 09 00   ................
00b0 - 0a 00 0b 00 0c 00 0d 00-0e 00 0f 00 10 00 11 00   ................
00c0 - 12 00 13 00 14 00 15 00-16 00 17 00 18 00 19 00   ................
00d0 - 23                                                #
00d3 - <SPACES/NULS>
SSL_connect:SSLv2/v3 write client hello A
read from 0x4b5f98 [0x4cc0a0] (7 bytes => 7 (0x7))
0000 - 16 03 00 0d 01 02                                 ......
0007 - <SPACES/NULS>
read from 0x4b5f98 [0x4cc0aa] (3327 bytes => 2513 (0x9D1))
0000 - 00 4d 03 00 4e c4 34 f2-77 2a 44 a7 62 20 40 57   .M..N.4.w*D.b @W
0010 - 73 4b fd 0e 41 70 01 21-13 26 f8 c3 17 92 3e 76   sK..Ap.!.&....>v
0020 - 66 4a 17 35 20 ef 10 00-00 65 4f e5 95 d3 59 56   fJ.5 ....eO...YV
0030 - cb 66 9a 8d 55 d9 39 63-8e d1 ca f5 97 a6 80 77   .f..U.9c.......w
0040 - 1b 45 f3 6b e1 00 04 00-00 05 ff 01 00 01 00 0b   .E.k............
0050 - 00 0c a8 00 0c a5 00 03-c0 30 82 03 bc 30 82 02   .........0...0..
0060 - a4 a0 03 02 01 02 02 10-63 dc 65 cc a3 ff 5c fa   ........c.e...\.
0070 - c1 d2 84 54 d8 6b 9e 11-30 0d 06 09 2a 86 48 86   ...T.k..0...*.H.
0080 - f7 0d 01 01 05 05 00 30-5e 31 0b 30 09 06 03 55   .......0^1.0...U
0090 - 04 06 13 02 55 53 31 15-30 13 06 03 55 04 0a 13   ....US1.0...U...
00a0 - 0c 54 68 61 77 74 65 2c-20 49 6e 63 2e 31 1d 30   .Thawte, Inc.1.0
00b0 - 1b 06 03 55 04 0b 13 14-44 6f 6d 61 69 6e 20 56   ...U....Domain V
00c0 - 61 6c 69 64 61 74 65 64-20 53 53 4c 31 19 30 17   alidated SSL1.0.
00d0 - 06 03 55 04 03 13 10 54-68 61 77 74 65 20 44 56   ..U....Thawte DV
00e0 - 20 53 53 4c 20 43 41 30-1e 17 0d 31 31 31 30 32    SSL CA0...11102
00f0 - 35 30 30 30 30 30 30 5a-17 0d 31 33 30 32 31 39   5000000Z..130219
0100 - 32 33 35 39 35 39 5a 30-81 b6 31 1b 30 19 06 03   235959Z0..1.0...
0110 - 55 04 0a 13 12 66 65 31-2e 6d 65 72 63 75 72 79   U....fe1.mercury
0120 - 64 65 76 2e 6e 65 74 31-3b 30 39 06 03 55 04 0b   dev.net1;09..U..
0130 - 13 32 47 6f 20 74 6f 20-68 74 74 70 73 3a 2f 2f   .2Go to https://
0140 - 77 77 77 2e 74 68 61 77-74 65 2e 63 6f 6d 2f 72   www.thawte.com/r
0150 - 65 70 6f 73 69 74 6f 72-79 2f 69 6e 64 65 78 2e   epository/index.
0160 - 68 74 6d 6c 31 22 30 20-06 03 55 04 0b 13 19 54   html1"0 ..U....T
0170 - 68 61 77 74 65 20 53 53-4c 31 32 33 20 63 65 72   hawte SSL123 cer
0180 - 74 69 66 69 63 61 74 65-31 19 30 17 06 03 55 04   tificate1.0...U.
0190 - 0b 13 10 44 6f 6d 61 69-6e 20 56 61 6c 69 64 61   ...Domain Valida
01a0 - 74 65 64 31 1b 30 19 06-03 55 04 03 13 12 66 65   ted1.0...U....fe
01b0 - 31 2e 6d 65 72 63 75 72-79 64 65 76 2e 6e 65 74   1.mercurydev.net
01c0 - 30 81 9f 30 0d 06 09 2a-86 48 86 f7 0d 01 01 01   0..0...*.H......
01d0 - 05 00 03 81 8d 00 30 81-89 02 81 81 00 e4 0f 05   ......0.........
01e0 - 6c 87 a0 d5 1e b9 a8 85-28 b8 35 11 e4 e9 16 94   l.......(.5.....
01f0 - ee 66 17 e4 dc e3 97 13-c3 8c 94 6c f1 41 67 7e   .f.........l.Ag~
0200 - 38 27 ac c2 28 23 62 4e-7f 0e f5 0e 02 ff 5b a7   8'..(#bN......[.
0210 - 3f b3 b7 3d b6 15 32 f0-41 59 25 ca d6 7c 13 f3   ?..=..2.AY%..|..
0220 - a2 de 87 b5 24 12 03 db-0e 60 89 6b fb fb 4a 0c   ....$....`.k..J.
0230 - a0 b2 1f f8 67 19 b3 44-57 2e 7a cb e6 e6 d8 2f   ....g..DW.z..../
0240 - 6b 7a c3 49 06 53 23 e1-31 6f 1e 2d 7f 8a 00 19   kz.I.S#.1o.-....
0250 - 67 68 69 58 d0 d4 00 ce-4a 03 77 c0 e3 02 03 01   ghiX....J.w.....
0260 - 00 01 a3 81 a0 30 81 9d-30 0c 06 03 55 1d 13 01   .....0..0...U...
0270 - 01 ff 04 02 30 00 30 3a-06 03 55 1d 1f 04 33 30   ....0.0:..U...30
0280 - 31 30 2f a0 2d a0 2b 86-29 68 74 74 70 3a 2f 2f   10/.-.+.)http://
0290 - 73 76 72 2d 64 76 2d 63-72 6c 2e 74 68 61 77 74   svr-dv-crl.thawt
02a0 - 65 2e 63 6f 6d 2f 54 68-61 77 74 65 44 56 2e 63   e.com/ThawteDV.c
02b0 - 72 6c 30 1d 06 03 55 1d-25 04 16 30 14 06 08 2b   rl0...U.%..0...+
02c0 - 06 01 05 05 07 03 01 06-08 2b 06 01 05 05 07 03   .........+......
02d0 - 02 30 32 06 08 2b 06 01-05 05 07 01 01 04 26 30   .02..+........&0
02e0 - 24 30 22 06 08 2b 06 01-05 05 07 30 01 86 16 68   $0"..+.....0...h
02f0 - 74 74 70 3a 2f 2f 6f 63-73 70 2e 74 68 61 77 74   ttp://ocsp.thawt
0300 - 65 2e 63 6f 6d 30 0d 06-09 2a 86 48 86 f7 0d 01   e.com0...*.H....
0310 - 01 05 05 00 03 82 01 01-00 0d a3 62 f4 89 37 4f   ...........b..7O
0320 - 12 dc ad 17 83 a7 6b 34-90 ac 01 a0 b5 05 ce 1c   ......k4........
0330 - e9 02 14 87 a0 69 40 66-61 1f 46 a8 9e ef 78 77   .....i at fa.F...xw
0340 - 7a 15 6a 5c f6 54 78 81-ef ed 0a 18 83 c8 88 88   z.j\.Tx.........
0350 - 50 78 dd 05 4a bb 65 0f-78 dd 07 5b 56 3e 4d c3   Px..J.e.x..[V>M.
0360 - e0 54 e5 c8 a6 1a 04 7e-0d 9a d5 1a 19 b7 8c bc   .T.....~........
0370 - c4 f9 12 94 46 fa c7 08-52 64 35 e6 f8 7a de 79   ....F...Rd5..z.y
0380 - 8e 34 06 85 43 1d c7 7d-5d a6 11 f7 1c 02 21 c9   .4..C..}].....!.
0390 - 1e 3c d6 4f 4f a9 98 4a-b2 cc 9e 91 2c a2 c9 c4   .<.OO..J....,...
03a0 - 8d 68 3b 55 00 c9 33 9b-44 fa 4f 54 c3 6d 8c 85   .h;U..3.D.OT.m..
03b0 - 89 72 1f f1 fd d4 31 bb-d7 75 07 8c 31 3f b9 39   .r....1..u..1?.9
03c0 - 88 e0 fe 36 60 5c 34 dc-40 3e 6d 5b 08 4f 3e bb   ...6`\4.@>m[.O>.
03d0 - fe 71 6c 6f 87 5a 77 3d-75 16 89 42 e6 0f 77 b8   .qlo.Zw=u..B..w.
03e0 - ba a4 7b e5 33 c6 4b fd-49 9e b6 af a3 5d 8b 85   ..{.3.K.I....]..
03f0 - c1 72 63 7f ba 1d f2 ba-34 5c 14 61 0f 48 69 cf   .rc.....4\.a.Hi.
0400 - eb b5 a5 1b f9 39 cd 10-a7 07 51 9c 01 17 16 76   .....9....Q....v
0410 - 1d d9 2d d2 08 14 3a e4-16 00 04 93 30 82 04 8f   ..-...:.....0...
0420 - 30 82 03 77 a0 03 02 01-02 02 10 76 10 12 8a 17   0..w.......v....
0430 - b6 82 bb 3a 1f 9d 1a 9a-35 c0 92 30 0d 06 09 2a   ...:....5..0...*
0440 - 86 48 86 f7 0d 01 01 05-05 00 30 81 a9 31 0b 30   .H........0..1.0
0450 - 09 06 03 55 04 06 13 02-55 53 31 15 30 13 06 03   ...U....US1.0...
0460 - 55 04 0a 13 0c 74 68 61-77 74 65 2c 20 49 6e 63   U....thawte, Inc
0470 - 2e 31 28 30 26 06 03 55-04 0b 13 1f 43 65 72 74   .1(0&..U....Cert
0480 - 69 66 69 63 61 74 69 6f-6e 20 53 65 72 76 69 63   ification Servic
0490 - 65 73 20 44 69 76 69 73-69 6f 6e 31 38 30 36 06   es Division1806.
04a0 - 03 55 04 0b 13 2f 28 63-29 20 32 30 30 36 20 74   .U.../(c) 2006 t
04b0 - 68 61 77 74 65 2c 20 49-6e 63 2e 20 2d 20 46 6f   hawte, Inc. - Fo
04c0 - 72 20 61 75 74 68 6f 72-69 7a 65 64 20 75 73 65   r authorized use
04d0 - 20 6f 6e 6c 79 31 1f 30-1d 06 03 55 04 03 13 16    only1.0...U....
04e0 - 74 68 61 77 74 65 20 50-72 69 6d 61 72 79 20 52   thawte Primary R
04f0 - 6f 6f 74 20 43 41 30 1e-17 0d 31 30 30 32 31 38   oot CA0...100218
0500 - 30 30 30 30 30 30 5a 17-0d 32 30 30 32 31 37 32   000000Z..2002172
0510 - 33 35 39 35 39 5a 30 5e-31 0b 30 09 06 03 55 04   35959Z0^1.0...U.
0520 - 06 13 02 55 53 31 15 30-13 06 03 55 04 0a 13 0c   ...US1.0...U....
0530 - 54 68 61 77 74 65 2c 20-49 6e 63 2e 31 1d 30 1b   Thawte, Inc.1.0.
0540 - 06 03 55 04 0b 13 14 44-6f 6d 61 69 6e 20 56 61   ..U....Domain Va
0550 - 6c 69 64 61 74 65 64 20-53 53 4c 31 19 30 17 06   lidated SSL1.0..
0560 - 03 55 04 03 13 10 54 68-61 77 74 65 20 44 56 20   .U....Thawte DV
0570 - 53 53 4c 20 43 41 30 82-01 22 30 0d 06 09 2a 86   SSL CA0.."0...*.
0580 - 48 86 f7 0d 01 01 01 05-00 03 82 01 0f 00 30 82   H.............0.
0590 - 01 0a 02 82 01 01 00 cb-98 c9 36 3f d2 9c d8 16   ..........6?....
05a0 - 07 d4 49 63 f9 83 b0 e8-02 2d cc 5c 5a 74 97 a6   ..Ic.....-.\Zt..
05b0 - 13 ef 13 13 de 05 7c a7-e6 ca 00 23 da 39 f9 ef   ......|....#.9..
05c0 - 13 cf 52 c5 af 9a e3 ca-be f3 82 d9 8b 3d aa e1   ..R..........=..
05d0 - cc ae 88 50 66 a3 2d ec-61 14 75 49 ab 0e 24 f1   ...Pf.-.a.uI..$.
05e0 - ac 44 5b 0b 28 a2 33 20-76 1e 06 60 6a 67 05 71   .D[.(.3 v..`jg.q
05f0 - 8b ba 66 62 16 7a b3 6d-0d c7 d0 94 40 c6 8c 3d   ..fb.z.m.... at ..=
0600 - 1e 92 0c 62 34 0d 44 89-d5 f7 89 fe 29 ed 18 8f   ...b4.D.....)...
0610 - f6 9b 2b 08 f7 6a ab d8-48 97 5a f4 9f ed 0c 75   ..+..j..H.Z....u
0620 - 52 22 f7 d5 5e 84 00 9f-c0 4a 0d 31 77 4c 64 d0   R"..^....J.1wLd.
0630 - 12 e6 0f 3a f0 a1 c0 d5-5c 1d e7 5f 2d c2 f7 d6   ...:....\.._-...
0640 - 36 18 d9 95 6e 44 4e c9-58 14 4d b6 8e bb cd de   6...nDN.X.M.....
0650 - 62 1e fa 5b b5 bd 18 2b-98 ac ac 93 3f 50 5a f5   b..[...+....?PZ.
0660 - 14 0b a2 cf b6 f3 9e 4f-5a cd 5a c3 36 23 da 1a   .......OZ.Z.6#..
0670 - af b0 4d d6 4a 22 03 8f-43 02 19 bd ea ac dd c4   ..M.J"..C.......
0680 - 7a 35 32 14 f1 72 2e 08-55 40 0c f4 07 41 41 af   z52..r..U at ...AA.
0690 - 38 37 84 29 42 b2 55 02-03 01 00 01 a3 81 fc 30   87.)B.U........0
06a0 - 81 f9 30 32 06 08 2b 06-01 05 05 07 01 01 04 26   ..02..+........&
06b0 - 30 24 30 22 06 08 2b 06-01 05 05 07 30 01 86 16   0$0"..+.....0...
06c0 - 68 74 74 70 3a 2f 2f 6f-63 73 70 2e 74 68 61 77   http://ocsp.thaw
06d0 - 74 65 2e 63 6f 6d 30 12-06 03 55 1d 13 01 01 ff   te.com0...U.....
06e0 - 04 08 30 06 01 01 ff 02-01 00 30 34 06 03 55 1d   ..0.......04..U.
06f0 - 1f 04 2d 30 2b 30 29 a0-27 a0 25 86 23 68 74 74   ..-0+0).'.%.#htt
0700 - 70 3a 2f 2f 63 72 6c 2e-74 68 61 77 74 65 2e 63   p://crl.thawte.c
0710 - 6f 6d 2f 54 68 61 77 74-65 50 43 41 2e 63 72 6c   om/ThawtePCA.crl
0720 - 30 0e 06 03 55 1d 0f 01-01 ff 04 04 03 02 01 06   0...U...........
0730 - 30 29 06 03 55 1d 11 04-22 30 20 a4 1e 30 1c 31   0)..U..."0 ..0.1
0740 - 1a 30 18 06 03 55 04 03-13 11 56 65 72 69 53 69   .0...U....VeriSi
0750 - 67 6e 4d 50 4b 49 2d 32-2d 31 31 30 1d 06 03 55   gnMPKI-2-110...U
0760 - 1d 0e 04 16 04 14 ab 44-e4 5d ec 83 c7 d9 c0 85   .......D.]......
0770 - 9f f7 e1 c6 97 90 b0 8c-3f 98 30 1f 06 03 55 1d   ........?.0...U.
0780 - 23 04 18 30 16 80 14 7b-5b 45 cf af ce cb 7a fd   #..0...{[E....z.
0790 - 31 92 1a 6a b6 f3 46 eb-57 48 50 30 0d 06 09 2a   1..j..F.WHP0...*
07a0 - 86 48 86 f7 0d 01 01 05-05 00 03 82 01 01 00 04   .H..............
07b0 - ba fb ac bb fc 4b 54 11-a3 2d 88 b3 3c bd 00 6d   .....KT..-..<..m
07c0 - 8a 1a b6 8d c4 c1 83 f8-c7 53 2a c1 32 6e 3a 81   .........S*.2n:.
07d0 - a1 54 7d da 1a 3f 3a 45-4f 36 e7 42 b0 0a 42 85   .T}..?:EO6.B..B.
07e0 - 97 a0 ac fb e5 87 a7 83-4f e8 b1 b7 9b 58 65 6e   ........O....Xen
07f0 - 26 80 0b 92 4d 47 55 b9-61 16 51 65 e9 2b f1 68   &...MGU.a.Qe.+.h
0800 - d9 58 b8 03 81 d1 b7 66-1c d3 bc c5 a6 7b 5f 3e   .X.....f.....{_>
0810 - c5 38 46 76 e7 75 b4 a0-0c 4b ce a2 c2 a9 c1 cc   .8Fv.u...K......
0820 - 36 73 7b fb b9 24 24 a0-5e a7 f6 fa bb 0c 28 43   6s{..$$.^.....(C
0830 - 9e 1d f0 4e f0 3f d8 24-b0 21 dc 6d 2d ee bf 5a   ...N.?.$.!.m-..Z
0840 - 3b fa 88 9c 74 6c af 21-dd 92 ec c3 15 ef 94 75   ;...tl.!.......u
0850 - 26 46 d6 a6 3f bf 66 48-aa 1d ef dd 27 e6 b7 51   &F..?.fH....'..Q
0860 - 89 38 7d 13 84 0c 40 fc-d0 b5 f1 e0 db f9 4f 2f   .8}... at .......O/
0870 - 40 1c b4 8e 47 22 61 b8-4c 96 de f0 5f 11 7e 4f   @...G"a.L..._.~O
0880 - 11 d9 ec 50 47 22 0e c5-1d e2 64 49 e7 68 63 45   ...PG"....dI.hcE
0890 - 3a 8a d9 71 f4 5e f1 6e-b7 14 4d 3e 6f 14 1e dc   :..q.^.n..M>o...
08a0 - 52 fe bc df 0c bd 29 3f-76 fb 11 5f 68 68 15 00   R.....)?v.._hh..
08b0 - 04 49 30 82 04 45 30 82-03 ae a0 03 02 01 02 02   .I0..E0.........
08c0 - 10 33 65 50 08 79 ad 73-e2 30 b9 e0 1d 0d 7f ac   .3eP.y.s.0......
08d0 - 91 30 0d 06 09 2a 86 48-86 f7 0d 01 01 05 05 00   .0...*.H........
08e0 - 30 81 ce 31 0b 30 09 06-03 55 04 06 13 02 5a 41   0..1.0...U....ZA
08f0 - 31 15 30 13 06 03 55 04-08 13 0c 57 65 73 74 65   1.0...U....Weste
0900 - 72 6e 20 43 61 70 65 31-12 30 10 06 03 55 04 07   rn Cape1.0...U..
0910 - 13 09 43 61 70 65 20 54-6f 77 6e 31 1d 30 1b 06   ..Cape Town1.0..
0920 - 03 55 04 0a 13 14 54 68-61 77 74 65 20 43 6f 6e   .U....Thawte Con
0930 - 73 75 6c 74 69 6e 67 20-63 63 31 28 30 26 06 03   sulting cc1(0&..
0940 - 55 04 0b 13 1f 43 65 72-74 69 66 69 63 61 74 69   U....Certificati
0950 - 6f 6e 20 53 65 72 76 69-63 65 73 20 44 69 76 69   on Services Divi
0960 - 73 69 6f 6e 31 21 30 1f-06 03 55 04 03 13 18 54   sion1!0...U....T
0970 - 68 61 77 74 65 20 50 72-65 6d 69 75 6d 20 53 65   hawte Premium Se
0980 - 72 76 65 72 20 43 41 31-28 30 26 06 09 2a 86 48   rver CA1(0&..*.H
0990 - 86 f7 0d 01 09 01 16 19-70 72 65 6d 69 75 6d 2d   ........premium-
09a0 - 73 65 72 76 65 72 40 74-68 61 77 74 65 2e 63 6f   server at thawte.co
09b0 - 6d 30 1e 17 0d 30 36 31-31 31 37 30 30 30 30 30   m0...06111700000
09c0 - 30 5a 17 0d 32 30 31 32-33 30 32 33 35 39 35 39   0Z..201230235959
09d0 - 5a                                                Z
read from 0x4b5f98 [0x4cca7b] (814 bytes => 814 (0x32E))
0000 - 30 81 a9 31 0b 30 09 06-03 55 04 06 13 02 55 53   0..1.0...U....US
0010 - 31 15 30 13 06 03 55 04-0a 13 0c 74 68 61 77 74   1.0...U....thawt
0020 - 65 2c 20 49 6e 63 2e 31-28 30 26 06 03 55 04 0b   e, Inc.1(0&..U..
0030 - 13 1f 43 65 72 74 69 66-69 63 61 74 69 6f 6e 20   ..Certification
0040 - 53 65 72 76 69 63 65 73-20 44 69 76 69 73 69 6f   Services Divisio
0050 - 6e 31 38 30 36 06 03 55-04 0b 13 2f 28 63 29 20   n1806..U.../(c)
0060 - 32 30 30 36 20 74 68 61-77 74 65 2c 20 49 6e 63   2006 thawte, Inc
0070 - 2e 20 2d 20 46 6f 72 20-61 75 74 68 6f 72 69 7a   . - For authoriz
0080 - 65 64 20 75 73 65 20 6f-6e 6c 79 31 1f 30 1d 06   ed use only1.0..
0090 - 03 55 04 03 13 16 74 68-61 77 74 65 20 50 72 69   .U....thawte Pri
00a0 - 6d 61 72 79 20 52 6f 6f-74 20 43 41 30 82 01 22   mary Root CA0.."
00b0 - 30 0d 06 09 2a 86 48 86-f7 0d 01 01 01 05 00 03   0...*.H.........
00c0 - 82 01 0f 00 30 82 01 0a-02 82 01 01 00 ac a0 f0   ....0...........
00d0 - fb 80 59 d4 9c c7 a4 cf-9d a1 59 73 09 10 45 0c   ..Y.......Ys..E.
00e0 - 0d 2c 6e 68 f1 6c 5b 48-68 49 59 37 fc 0b 33 19   .,nh.l[HhIY7..3.
00f0 - c2 77 7f cc 10 2d 95 34-1c e6 eb 4d 09 a7 1c d2   .w...-.4...M....
0100 - b8 c9 97 36 02 b7 89 d4-24 5f 06 c0 cc 44 94 94   ...6....$_...D..
0110 - 8d 02 62 6f eb 5a dd 11-8d 28 9a 5c 84 90 10 7a   ..bo.Z...(.\...z
0120 - 0d bd 74 66 2f 6a 38 a0-e2 d5 54 44 eb 1d 07 9f   ..tf/j8...TD....
0130 - 07 ba 6f ee e9 fd 4e 0b-29 f5 3e 84 a0 01 f1 9c   ..o...N.).>.....
0140 - ab f8 1c 7e 89 a4 e8 a1-d8 71 65 0d a3 51 7b ee   ...~.....qe..Q{.
0150 - bc d2 22 60 0d b9 5b 9d-df ba fc 51 5b 0b af 98   .."`..[....Q[...
0160 - b2 e9 2e e9 04 e8 62 87-de 2b c8 d7 4e c1 4c 64   ......b..+..N.Ld
0170 - 1e dd cf 87 58 ba 4a 4f-ca 68 07 1d 1c 9d 4a c6   ....X.JO.h....J.
0180 - d5 2f 91 cc 7c 71 72 1c-c5 c0 67 eb 32 fd c9 92   ./..|qr...g.2...
0190 - 5c 94 da 85 c0 9b bf 53-7d 2b 09 f4 8c 9d 91 1f   \......S}+......
01a0 - 97 6a 52 cb de 09 36 a4-77 d8 7b 87 50 44 d5 3e   .jR...6.w.{.PD.>
01b0 - 6e 29 69 fb 39 49 26 1e-09 a5 80 7b 40 2d eb e8   n)i.9I&....{@-..
01c0 - 27 85 c9 fe 61 fd 7e e6-7c 97 1d d5 9d 02 03 01   '...a.~.|.......
01d0 - 00 01 a3 81 c2 30 81 bf-30 0f 06 03 55 1d 13 01   .....0..0...U...
01e0 - 01 ff 04 05 30 03 01 01-ff 30 3b 06 03 55 1d 20   ....0....0;..U.
01f0 - 04 34 30 32 30 30 06 04-55 1d 20 00 30 28 30 26   .40200..U. .0(0&
0200 - 06 08 2b 06 01 05 05 07-02 01 16 1a 68 74 74 70   ..+.........http
0210 - 73 3a 2f 2f 77 77 77 2e-74 68 61 77 74 65 2e 63   s://www.thawte.c
0220 - 6f 6d 2f 63 70 73 30 0e-06 03 55 1d 0f 01 01 ff   om/cps0...U.....
0230 - 04 04 03 02 01 06 30 1d-06 03 55 1d 0e 04 16 04   ......0...U.....
0240 - 14 7b 5b 45 cf af ce cb-7a fd 31 92 1a 6a b6 f3   .{[E....z.1..j..
0250 - 46 eb 57 48 50 30 40 06-03 55 1d 1f 04 39 30 37   F.WHP0 at ..U...907
0260 - 30 35 a0 33 a0 31 86 2f-68 74 74 70 3a 2f 2f 63   05.3.1./http://c
0270 - 72 6c 2e 74 68 61 77 74-65 2e 63 6f 6d 2f 54 68   rl.thawte.com/Th
0280 - 61 77 74 65 50 72 65 6d-69 75 6d 53 65 72 76 65   awtePremiumServe
0290 - 72 43 41 2e 63 72 6c 30-0d 06 09 2a 86 48 86 f7   rCA.crl0...*.H..
02a0 - 0d 01 01 05 05 00 03 81-81 00 84 a8 4c c9 3e 2a   ............L.>*
02b0 - bc 9a e2 cc 8f 0b b2 25-77 c4 61 89 89 63 5a d4   .......%w.a..cZ.
02c0 - a3 15 40 d4 fb 5e 3f b4-43 ea 63 17 2b 6b 99 74   .. at ..^?.C.c.+k.t
02d0 - 9e 09 a8 dd d4 56 15 2e-7a 79 31 5f 63 96 53 1b   .....V..zy1_c.S.
02e0 - 34 d9 15 ea 4f 6d 70 ca-be f6 82 a9 ed da 85 77   4...Omp........w
02f0 - cc 76 1c 6a 81 0a 21 d8-41 99 7f 5e 2e 82 c1 e8   .v.j..!.A..^....
0300 - aa f7 93 81 05 aa 92 b4-1f b7 9a c0 07 17 f5 cb   ................
0310 - c6 b4 4c 0e d7 56 dc 71-20 74 38 d6 74 c6 d6 8f   ..L..V.q t8.t...
0320 - 6b af 8b 8d a0 6c 29 0b-61 e0 0e                  k....l).a..
032e - <SPACES/NULS>
SSL_connect:SSLv3 read server hello A
depth=2 C = US, O = "thawte, Inc.", OU = Certification Services Division, OU = "
(c) 2006 thawte, Inc. - For authorized use only", CN = thawte Primary Root CA
verify error:num=20:unable to get local issuer certificate
verify return:0
SSL_connect:SSLv3 read server certificate A
SSL_connect:SSLv3 read server done A
write to 0x4b5f98 [0x4d6428] (137 bytes => 137 (0x89))
0000 - 16 03 00 00 84 10 00 00-80 c2 f6 1d 53 ce 72 ec   ............S.r.
0010 - 2b a5 5a b5 59 c3 a3 10-1d d2 b6 3b 2b 20 e7 b9   +.Z.Y......;+ ..
0020 - 9c 56 bf 0a 84 c6 89 60-89 c0 1a 9e 68 70 df 4f   .V.....`....hp.O
0030 - ad dc 05 c5 99 cd ab ce-7b 0a 51 11 9b f0 de ea   ........{.Q.....
0040 - 2c cb 4d de 1f 7e c1 34-c6 0e 2f 0a 75 57 14 6a   ,.M..~.4../.uW.j
0050 - b8 d1 75 e8 82 c0 26 8b-00 2a 94 83 35 06 6a dd   ..u...&..*..5.j.
0060 - 76 0d 09 34 ef 61 fe 2b-ac f9 eb 0d 05 18 4a e7   v..4.a.+......J.
0070 - 81 2a c1 b3 6e 05 28 f8-ad a5 46 65 01 7e a8 fc   .*..n.(...Fe.~..
0080 - a3 97 07 ec 7c 1c 8c 1a-c0                        ....|....
SSL_connect:SSLv3 write client key exchange A
write to 0x4b5f98 [0x4d6428] (6 bytes => 6 (0x6))
0000 - 14 03 00 00 01 01                                 ......
SSL_connect:SSLv3 write change cipher spec A
write to 0x4b5f98 [0x4d6428] (61 bytes => 61 (0x3D))
0000 - 16 03 00 00 38 52 15 dd-fa 3d 7a 0c dc 9c cf 83   ....8R...=z.....
0010 - f1 42 be da 55 36 93 42-75 b0 71 21 e1 e4 0d 4f   .B..U6.Bu.q!...O
0020 - 63 c4 0e b2 93 95 a9 dd-77 c2 a7 68 75 83 25 85   c.......w..hu.%.
0030 - 55 e8 27 57 f2 26 8a 67-84 e6 05 d7 a2            U.'W.&.g.....
SSL_connect:SSLv3 write finished A
SSL_connect:SSLv3 flush data
read from 0x4b5f98 [0x4cc0a3] (5 bytes => 5 (0x5))
0000 - 14 03 00 00 01                                    .....
read from 0x4b5f98 [0x4cc0a8] (1 bytes => 1 (0x1))
0000 - 01                                                .
read from 0x4b5f98 [0x4cc0a3] (5 bytes => 5 (0x5))
0000 - 16 03 00 00 38                                    ....8
read from 0x4b5f98 [0x4cc0a8] (56 bytes => 56 (0x38))
0000 - 96 c1 03 b9 2a 4c e0 8b-9c 4b a0 3e ec 0a 5e 0a   ....*L...K.>..^.
0010 - 9a 8b 63 15 05 a0 1d 6a-3c cb a0 16 54 e0 f5 3a   ..c....j<...T..:
0020 - 4a 12 fb 05 96 0d 39 be-89 cd 00 50 d9 c5 46 87   J.....9....P..F.
0030 - 19 d3 eb 53 ce d5 a1 9c-                          ...S....
SSL_connect:SSLv3 read finished A
---
Certificate chain
 0 s:/O=fe1.mercurydev.net/OU=Go to https://www.thawte.com/repository/index.html
/OU=Thawte SSL123 certificate/OU=Domain Validated/CN=fe1.mydomaindev.net
   i:/C=US/O=Thawte, Inc./OU=Domain Validated SSL/CN=Thawte DV SSL CA
 1 s:/C=US/O=Thawte, Inc./OU=Domain Validated SSL/CN=Thawte DV SSL CA
   i:/C=US/O=thawte, Inc./OU=Certification Services Division/OU=(c) 2006 thawte,
 Inc. - For authorized use only/CN=thawte Primary Root CA
 2 s:/C=US/O=thawte, Inc./OU=Certification Services Division/OU=(c) 2006 thawte,
 Inc. - For authorized use only/CN=thawte Primary Root CA
   i:/C=ZA/ST=Western Cape/L=Cape Town/O=Thawte Consulting cc/OU=Certification S
ervices Division/CN=Thawte Premium Server CA/emailAddress=premium-server at thawte.
com
---
Server certificate
-----BEGIN CERTIFICATE-----
MIIDvDCCAqSgAwIBAgIQY9xlzKP/XPrB0oRU2GueETANBgkqhkiG9w0BAQUFADBe
MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMVGhhd3RlLCBJbmMuMR0wGwYDVQQLExRE
b21haW4gVmFsaWRhdGVkIFNTTDEZMBcGA1UEAxMQVGhhd3RlIERWIFNTTCBDQTAe
Fw0xMTEwMjUwMDAwMDBaFw0xMzAyMTkyMzU5NTlaMIG2MRswGQYDVQQKExJmZTEu
bWVyY3VyeWRldi5uZXQxOzA5BgNVBAsTMkdvIHRvIGh0dHBzOi8vd3d3LnRoYXd0
ZS5jb20vcmVwb3NpdG9yeS9pbmRleC5odG1sMSIwIAYDVQQLExlUaGF3dGUgU1NM
MTIzIGNlcnRpZmljYXRlMRkwFwYDVQQLExBEb21haW4gVmFsaWRhdGVkMRswGQYD
VQQDExJmZTEubWVyY3VyeWRldi5uZXQwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJ
AoGBAOQPBWyHoNUeuaiFKLg1EeTpFpTuZhfk3OOXE8OMlGzxQWd+OCeswigjYk5/
DvUOAv9bpz+ztz22FTLwQVklytZ8E/Oi3oe1JBID2w5giWv7+0oMoLIf+GcZs0RX
LnrL5ubYL2t6w0kGUyPhMW8eLX+KABlnaGlY0NQAzkoDd8DjAgMBAAGjgaAwgZ0w
DAYDVR0TAQH/BAIwADA6BgNVHR8EMzAxMC+gLaArhilodHRwOi8vc3ZyLWR2LWNy
bC50aGF3dGUuY29tL1RoYXd0ZURWLmNybDAdBgNVHSUEFjAUBggrBgEFBQcDAQYI
KwYBBQUHAwIwMgYIKwYBBQUHAQEEJjAkMCIGCCsGAQUFBzABhhZodHRwOi8vb2Nz
cC50aGF3dGUuY29tMA0GCSqGSIb3DQEBBQUAA4IBAQANo2L0iTdPEtytF4OnazSQ
rAGgtQXOHOkCFIegaUBmYR9GqJ7veHd6FWpc9lR4ge/tChiDyIiIUHjdBUq7ZQ94
3QdbVj5Nw+BU5cimGgR+DZrVGhm3jLzE+RKURvrHCFJkNeb4et55jjQGhUMdx31d
phH3HAIhyR481k9PqZhKssyekSyiycSNaDtVAMkzm0T6T1TDbYyFiXIf8f3UMbvX
dQeMMT+5OYjg/jZgXDTcQD5tWwhPPrv+cWxvh1p3PXUWiULmD3e4uqR75TPGS/1J
nravo12LhcFyY3+6HfK6NFwUYQ9Iac/rtaUb+TnNEKcHUZwBFxZ2Hdkt0ggUOuQW
-----END CERTIFICATE-----
subject=/O=fe1.mydomaindev.net/OU=Go to https://www.thawte.com/repository/index.h
tml/OU=Thawte SSL123 certificate/OU=Domain Validated/CN=fe1.mercurydev.net
issuer=/C=US/O=Thawte, Inc./OU=Domain Validated SSL/CN=Thawte DV SSL CA
---
No client certificate CA names sent
---
SSL handshake has read 3401 bytes and written 415 bytes
---
New, TLSv1/SSLv3, Cipher is RC4-MD5
Server public key is 1024 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
SSL-Session:
    Protocol  : SSLv3
    Cipher    : RC4-MD5
    Session-ID: EF100000654FE595D35956CB669A8D55D939638ED1CAF597A680771B45F36BE1
    Session-ID-ctx:
    Master-Key: 871FFA387D7CC579624F17D9A8162A5C466D16B4E07398129AEF20251A04B965
DCE1D9EC7CCC49BDFFC364E7FDFDB796
    Key-Arg   : None
    PSK identity: None
    PSK identity hint: None
    Start Time: 1321481454
    Timeout   : 300 (sec)
    Verify return code: 20 (unable to get local issuer certificate)
---
hello
write to 0x4b5f98 [0x4d05f3] (28 bytes => 28 (0x1C))
0000 - 17 03 00 00 17 a0 e0 9c-27 46 7d ee ee 6f 55 7d   ........'F}..oU}
0010 - 12 8f 18 9f a5 b5 59 43-08 e4 eb 04               ......YC....
read from 0x4b5f98 [0x4cc0a3] (5 bytes => 5 (0x5))
0000 - 17 03 00 00 35                                    ....5
read from 0x4b5f98 [0x4cc0a8] (53 bytes => 53 (0x35))
0000 - 2a 43 6e d0 35 1e 61 f6-09 be 61 63 97 4c 84 a7   *Cn.5.a...ac.L..
0010 - 61 6e dd 0d 6c ce 03 5d-9d 3f f8 8f ee 9a cb ba   an..l..].?......
0020 - 3e d1 c2 34 69 61 67 28-48 2e 64 b1 1e af 15 54   >..4iag(H.d....T
0030 - de da 3d a5 13                                    ..=..
Invalid Data$B-x-x-x-x(B111116051102005$B-x-x-x-x-x-x(Bread from 0x4b5f98 [0x4cc0a3] (5 bytes => 0
 (0x0))
read:errno=0
write to 0x4b5f98 [0x4d05f3] (23 bytes => 23 (0x17))
0000 - 15 03 00 00 12 4a 18 a5-be 91 6f 4f af 31 98 2e   .....J....oO.1..
0010 - e2 86 0e d8 a6 d2 4f                              ......O
SSL3 alert write:warning:close notify
C:\Program Files (x86)\stunnel>
 
 
 		 	   		   		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.stunnel.org/pipermail/stunnel-users/attachments/20111117/c7e30162/attachment.html>


More information about the stunnel-users mailing list