Second openssl connections failed

TheBernd
Posts: 1
Joined: Wed Dec 20, 2017 2:44 pm

Second openssl connections failed

Postby TheBernd » Wed Dec 20, 2017 3:04 pm

Hey!

I use the openSSL example. When i try to connect for the first time it all goes well and it does show me the expected homepage ("OpenSSL server example!"). On refresh however it does fail.

This is the log-output:

Code: Select all

W (5184) meinLight: init open ssl server...
W (5190) Openssl_example: SSL server context create ......
I (5196) Openssl_example: OK
I (5199) Openssl_example: SSL server context set own certification......
I (5210) Openssl_example: OK
I (5210) Openssl_example: SSL server context set private key......
I (5612) Openssl_example: OK
I (5613) Openssl_example: SSL server create socket ......
I (5613) Openssl_example: OK
I (5615) Openssl_example: SSL server socket bind ......
I (5621) Openssl_example: OK
I (5624) Openssl_example: SSL server socket listen ......
I (5630) Openssl_example: OK
I (5634) Openssl_example: SSL server create ......
I (5642) Openssl_example: OK
I (5643) Openssl_example: SSL server socket accept client ......
I (44816) Openssl_example: OK
I (44816) Openssl_example: SSL server accept client ......
I (49961) Openssl_example: OK
I (49961) Openssl_example: SSL server read message ......
I (49962) Openssl_example: SSL read: GET / HTTP/1.1
Host: 192.168.0.80
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: de,en-US;q=0.7,en;q=0.3
Accept-Encoding: gzip, deflate, br
DNT: 1
Connection: keep-alive
Upgrade-Insecure-Requests: 1


I (49994) Openssl_example: SSL get matched message
I (50001) Openssl_example: SSL write message
I (50008) Openssl_example: OK
I (50023) Openssl_example: SSL server create ......
I (50025) Openssl_example: OK
I (50025) Openssl_example: SSL server socket accept client ......
I (56908) Openssl_example: OK
I (56908) Openssl_example: SSL server accept client ......
I (59658) Openssl_example: failed
I (59669) Openssl_example: SSL server create ......
I (59671) Openssl_example: OK
I (59671) Openssl_example: SSL server socket accept client ......
With the command:
openssl s_client -debug -connect 192.168.0.80:443
I get the following output:

Code: Select all

openssl s_client -debug -connect 192.168.0.80:443  
CONNECTED(00000003)
write to 0x16ca5b0 [0x16ca630] (305 bytes => 305 (0x131))
0000 - 16 03 01 01 2c 01 00 01-28 03 03 e0 0e 19 09 df   ....,...(.......
0010 - f2 d3 8f 45 36 dd 25 48-f6 68 5a f4 02 6c 26 b2   ...E6.%H.hZ..l&.
0020 - ce 7a 6b 7a 76 6e fd 08-f0 ea 75 00 00 aa c0 30   .zkzvn....u....0
0030 - c0 2c c0 28 c0 24 c0 14-c0 0a 00 a5 00 a3 00 a1   .,.(.$..........
0040 - 00 9f 00 6b 00 6a 00 69-00 68 00 39 00 38 00 37   ...k.j.i.h.9.8.7
0050 - 00 36 00 88 00 87 00 86-00 85 c0 32 c0 2e c0 2a   .6.........2...*
0060 - c0 26 c0 0f c0 05 00 9d-00 3d 00 35 00 84 c0 2f   .&.......=.5.../
0070 - c0 2b c0 27 c0 23 c0 13-c0 09 00 a4 00 a2 00 a0   .+.'.#..........
0080 - 00 9e 00 67 00 40 00 3f-00 3e 00 33 00 32 00 31   ...g.@.?.>.3.2.1
0090 - 00 30 00 9a 00 99 00 98-00 97 00 45 00 44 00 43   .0.........E.D.C
00a0 - 00 42 c0 31 c0 2d c0 29-c0 25 c0 0e c0 04 00 9c   .B.1.-.).%......
00b0 - 00 3c 00 2f 00 96 00 41-c0 11 c0 07 c0 0c c0 02   .<./...A........
00c0 - 00 05 00 04 c0 12 c0 08-00 16 00 13 00 10 00 0d   ................
00d0 - c0 0d c0 03 00 0a 00 ff-01 00 00 55 00 0b 00 04   ...........U....
00e0 - 03 00 01 02 00 0a 00 1c-00 1a 00 17 00 19 00 1c   ................
00f0 - 00 1b 00 18 00 1a 00 16-00 0e 00 0d 00 0b 00 0c   ................
0100 - 00 09 00 0a 00 23 00 00-00 0d 00 20 00 1e 06 01   .....#..... ....
0110 - 06 02 06 03 05 01 05 02-05 03 04 01 04 02 04 03   ................
0120 - 03 01 03 02 03 03 02 01-02 02 02 03 00 0f 00 01   ................
0130 - 01                                                .
read from 0x16ca5b0 [0x16cfb90] (7 bytes => 7 (0x7))
0000 - 16 03 03 00 57 02                                 ....W.
0007 - <SPACES/NULS>
read from 0x16ca5b0 [0x16cfb9a] (85 bytes => 85 (0x55))
0000 - 00 53 03 03 00 00 00 39-e8 e1 b8 93 cc 8d c2 60   .S.....9.......`
0010 - fd 72 d2 63 0f 92 af 03-09 24 6c 85 5c f4 8c d6   .r.c.....$l.\...
0020 - a6 87 f1 46 20 d9 68 56-07 db dd 5a 94 ad da e7   ...F .hV...Z....
0030 - ec ec 9e 3f 57 83 ba 22-c8 3a 2b 16 31 b9 5d 6d   ...?W..".:+.1.]m
0040 - 16 fe 03 7d 77 c0 30 00-00 0b ff 01 00 01 00 00   ...}w.0.........
0050 - 0b 00 02 01                                       ....
0055 - <SPACES/NULS>
read from 0x16ca5b0 [0x16cfb93] (5 bytes => 5 (0x5))
0000 - 16 03 03 05 d1                                    .....
read from 0x16ca5b0 [0x16cfb98] (1489 bytes => 1431 (0x597))
0000 - 0b 00 05 cd 00 05 ca 00-05 c7 30 82 05 c3 30 82   ..........0...0.
0010 - 03 ab a0 03 02 01 02 02-09 00 d9 f3 f7 14 de 47   ...............G
0020 - 16 81 30 0d 06 09 2a 86-48 86 f7 0d 01 01 0b 05   ..0...*.H.......
0030 - 00 30 78 31 0b 30 09 06-03 55 04 06 13 02 47 45   .0x1.0...U....GE
0040 - 31 11 30 0f 06 03 55 04-08 0c 08 44 6f 72 74 6d   1.0...U....Dortm
0050 - 75 6e 64 31 11 30 0f 06-03 55 04 07 0c 08 44 6f   und1.0...U....Do
0060 - 72 74 6d 75 6e 64 31 14-30 12 06 03 55 04 0a 0c   rtmund1.0...U...                                                                                                                                                                    
0070 - 0b 57 68 61 74 54 68 65-46 75 63 6b 31 10 30 0e   .WhatTheFuck1.0.                                                                                                                                                                    
0080 - 06 03 55 04 03 0c 07 46-75 63 6b 59 6f 75 31 1b   ..U....FuckYou1.                                                                                                                                                                    
0090 - 30 19 06 09 2a 86 48 86-f7 0d 01 09 01 16 0c 66   0...*.H........f                                                                                                                                                                    
00a0 - 75 63 6b 40 79 6f 75 2e-74 6f 6f 30 1e 17 0d 31   uck@you.too0...1                                                                                                                                                                    
00b0 - 37 31 32 32 30 31 32 31-36 33 33 5a 17 0d 31 38   71220121633Z..18                                                                                                                                                                    
00c0 - 31 32 32 30 31 32 31 36-33 33 5a 30 78 31 0b 30   1220121633Z0x1.0                                                                                                                                                                    
00d0 - 09 06 03 55 04 06 13 02-47 45 31 11 30 0f 06 03   ...U....GE1.0...                                                                                                                                                                    
00e0 - 55 04 08 0c 08 44 6f 72-74 6d 75 6e 64 31 11 30   U....Dortmund1.0                                                                                                                                                                    
00f0 - 0f 06 03 55 04 07 0c 08-44 6f 72 74 6d 75 6e 64   ...U....Dortmund                                                                                                                                                                    
0100 - 31 14 30 12 06 03 55 04-0a 0c 0b 57 68 61 74 54   1.0...U....WhatT                                                                                                                                                                    
0110 - 68 65 46 75 63 6b 31 10-30 0e 06 03 55 04 03 0c   heFuck1.0...U...                                                                                                                                                                    
0120 - 07 46 75 63 6b 59 6f 75-31 1b 30 19 06 09 2a 86   .FuckYou1.0...*.                                                                                                                                                                    
0130 - 48 86 f7 0d 01 09 01 16-0c 66 75 63 6b 40 79 6f   H........fuck@yo                                                                                                                                                                    
0140 - 75 2e 74 6f 6f 30 82 02-22 30 0d 06 09 2a 86 48   u.too0.."0...*.H                                                                                                                                                                    
0150 - 86 f7 0d 01 01 01 05 00-03 82 02 0f 00 30 82 02   .............0..                                                                                                                                                                    
0160 - 0a 02 82 02 01 00 9a 38-c8 d1 38 ec 9c d6 ae 85   .......8..8.....                                                                                                                                                                    
0170 - 5a ef 5a 81 c5 9a 72 0a-a6 13 d7 37 a5 a3 05 e4   Z.Z...r....7....                                                                                                                                                                    
0180 - 1c 15 20 b0 00 7f 54 87-03 08 6a 84 44 b6 6e a0   .. ...T...j.D.n.                                                                                                                                                                    
0190 - 6a 4a 2c 2e 5a 60 32 fa-e8 36 fc ad 8f da af 07   jJ,.Z`2..6......                                                                                                                                                                    
01a0 - d1 00 d3 82 3d a6 ca 10-c4 ff 79 32 46 8d 4c db   ....=.....y2F.L.                                                                                                                                                                    
01b0 - 0d c4 38 aa d0 27 5f 3c-ea 67 e8 03 80 5b de 35   ..8..'_<.g...[.5                                                                                                                                                                    
01c0 - 21 57 7a 46 53 e9 fd f1-61 14 40 5b 36 7e 10 7a   !WzFS...a.@[6~.z                                                                                                                                                                    
01d0 - 98 9b 8c 41 cb bb 11 f7-c5 84 a1 cd 20 1c d7 11   ...A........ ...                                                                                                                                                                    
01e0 - 10 71 fe 7c 07 3d e1 0f-be 63 fd 82 ad c4 15 48   .q.|.=...c.....H                                                                                                                                                                    
01f0 - ce 6e 2c 94 7f cb 42 b7-45 f9 45 be 48 cc 67 99   .n,...B.E.E.H.g.                                                                                                                                                                    
0200 - 80 6f bb 4c c3 88 e1 e4-c1 ed 5a ce 21 96 2d c6   .o.L......Z.!.-.                                                                                                                                                                    
0210 - 67 fa c0 c3 a7 f6 68 a8-f6 e2 1e 71 22 6b d8 d2   g.....h....q"k..                                                                                                                                                                    
0220 - bf 60 51 84 9c 54 ca 83-91 f5 e1 fa bd 76 08 54   .`Q..T.......v.T                                                                                                                                                                    
0230 - f0 b4 08 57 de 96 d0 7b-c0 bf 2f 9d 0d 8f bd af   ...W...{../.....                                                                                                                                                                    
0240 - 89 af 1b 7c 45 67 97 ae-f0 77 69 42 e0 bc c7 f3   ...|Eg...wiB....
0250 - c9 ae c8 ab 4c b1 26 a8-93 bf f9 19 74 8a ba a2   ....L.&.....t...
0260 - 18 8d 25 61 d6 59 25 b6-7b e4 11 d1 00 82 2c b1   ..%a.Y%.{.....,.
0270 - 5f 11 de 9f f6 99 74 b4-69 66 4d fa fc 47 76 de   _.....t.ifM..Gv.
0280 - dc 2a 68 2e f8 85 8a 48-d4 e0 10 6b 41 cf 61 d1   .*h....H...kA.a.
0290 - 39 a3 26 53 05 54 97 c5-3e 88 0d 58 b1 41 57 eb   9.&S.T..>..X.AW.
02a0 - 6f a6 98 03 33 2b 94 e3-bd fe 93 da 9d c0 13 96   o...3+..........
02b0 - 1f 84 92 48 40 d5 a5 e0-2a 77 f4 10 b6 f3 9d 7e   ...H@...*w.....~
02c0 - c5 f6 bb 47 6f f8 52 5b-92 b1 e6 7c 28 08 4d bf   ...Go.R[...|(.M.
02d0 - b5 e8 28 73 96 19 f4 5e-a1 38 ec db e8 cf 7f c9   ..(s...^.8......
02e0 - 1a 5c 4e 62 d0 f5 ac f4-8b 37 f9 21 8b 1f e8 33   .\Nb.....7.!...3
02f0 - f3 ad 87 23 84 1e f1 25-ea 25 b2 6f 32 b0 61 c0   ...#...%.%.o2.a.
0300 - f3 79 d4 a8 65 84 c0 c1-27 ef ea 85 2d 31 45 54   .y..e...'...-1ET
0310 - b3 9a 19 a4 35 d8 99 2b-11 f9 e1 96 fe 53 b1 57   ....5..+.....S.W
0320 - 34 ab b3 17 13 39 91 98-a7 3a 79 57 82 10 67 0f   4....9...:yW..g.
0330 - 90 0b 4f f1 2d 4f 47 73-3e fe b6 6e 94 15 68 ba   ..O.-OGs>..n..h.
0340 - 01 ef cc 7c cd 25 18 d0-56 ad 5b 81 f6 be 92 06   ...|.%..V.[.....
0350 - b4 30 8f aa 93 52 fc 13-e2 51 7a 2f af 1f 05 a1   .0...R...Qz/....
0360 - fd 02 5f c5 44 97 02 03-01 00 01 a3 50 30 4e 30   .._.D.......P0N0
0370 - 1d 06 03 55 1d 0e 04 16-04 14 17 ef 95 eb 91 c1   ...U............
0380 - b0 3b d0 b8 74 c4 9a 6e-fb ed 67 2d ea 17 30 1f   .;..t..n..g-..0.
0390 - 06 03 55 1d 23 04 18 30-16 80 14 17 ef 95 eb 91   ..U.#..0........
03a0 - c1 b0 3b d0 b8 74 c4 9a-6e fb ed 67 2d ea 17 30   ..;..t..n..g-..0
03b0 - 0c 06 03 55 1d 13 04 05-30 03 01 01 ff 30 0d 06   ...U....0....0..
03c0 - 09 2a 86 48 86 f7 0d 01-01 0b 05 00 03 82 02 01   .*.H............
03d0 - 00 8d 52 ac d5 fd 52 16-c3 e9 46 56 2f 83 08 cb   ..R...R...FV/...
03e0 - c0 34 3e e1 8c b2 e1 4d-ea b7 84 04 10 cd 4a 6c   .4>....M......Jl
03f0 - ce 13 74 8e 1c 04 8f 51-8e 3e 1a 01 00 43 ef b2   ..t....Q.>...C..
0400 - a4 8a 9d 95 0d 81 f5 e0-64 20 84 6f 43 cc ba c6   ........d .oC...
0410 - 7b 00 d1 e6 4d 18 6a b1-8d 26 ed 42 37 7c c3 89   {...M.j..&.B7|..
0420 - ff e7 a4 02 4a bd c7 10-05 c9 28 45 98 a2 3c 89   ....J.....(E..<.
0430 - f6 b1 e2 dc f2 29 99 07-25 e4 00 51 5d 82 19 2b   .....)..%..Q]..+
0440 - bb 6b 43 fa b0 d3 60 c0-29 3d b7 5c 67 5b f8 98   .kC...`.)=.\g[..
0450 - bf c6 a7 32 1e b8 50 55-88 91 7d b9 83 fa 15 eb   ...2..PU..}.....
0460 - ac 93 44 d9 1e f5 ff 52-e8 59 7f 2f 0d 2e e0 a5   ..D....R.Y./....
0470 - 36 f1 8e e3 ee d0 77 c1-98 80 f6 b1 b8 8d 7c ab   6.....w.......|.
0480 - 72 ea 1c c3 1f d3 6e c4-b7 e2 52 eb a8 6f f5 0f   r.....n...R..o..
0490 - e3 22 c4 d8 8b ec 43 7c-ea 1c 5c 64 a5 ea 8a 9c   ."....C|..\d....
04a0 - e3 e1 e5 4b ce 55 77 e1-68 0b 8f 2d ad 7c 39 ee   ...K.Uw.h..-.|9.
04b0 - 9a 62 f1 4f 0f db 5c 96-10 cb b8 d4 f7 62 ab 18   .b.O..\......b..
04c0 - 7d 45 fb 16 6f 89 63 5d-d5 1d 59 6f aa 5e b8 9e   }E..o.c]..Yo.^..
04d0 - ad 14 ec e5 73 d4 51 c0-40 31 d9 4f 20 e0 40 a4   ....s.Q.@1.O .@.
04e0 - f5 8b da fc c1 ea 69 dd-91 c9 85 6d 18 30 62 99   ......i....m.0b.
04f0 - 70 9b 2c f2 9e bf 03 c6-6f 2d 7b 93 30 78 37 7d   p.,.....o-{.0x7}
0500 - ce 34 19 74 e4 02 e4 42-7d 48 2c c2 d2 ab d4 f6   .4.t...B}H,.....
0510 - 06 9b e7 36 35 a3 c5 d8-62 92 f8 79 16 64 14 57   ...65...b..y.d.W
0520 - 8a 57 33 51 7d 41 c6 4f-c4 35 de f1 66 78 1f 1b   .W3Q}A.O.5..fx..
0530 - 9d ef 85 4a 6e 2a 96 15-43 bb fb 74 54 0b 39 57   ...Jn*..C..tT.9W
0540 - 20 55 99 be f4 a2 07 b7-27 ae 97 c6 e7 ef a0 68    U......'......h
0550 - d1 6c de e0 91 4d 79 ec-1a 95 ba 8a 0a a0 b8 92   .l...My.........
0560 - b2 11 35 51 9d 02 fe 6d-71 63 5e 5e d9 b4 6d 3f   ..5Q...mqc^^..m?
0570 - e4 b4 fd b0 d3 e1 0d 4e-0b d6 a6 2c 0b 7a d0 fe   .......N...,.z..
0580 - 65 6a cd c2 e2 6d 4e 6f-3a 9a 40 f2 97 78 50 ff   ej...mNo:.@..xP.
0590 - ff 32 68 d1 07 60 29                              .2h..`)
read from 0x16ca5b0 [0x16d012f] (58 bytes => 58 (0x3A))
0000 - d2 cb 67 50 4c 43 e4 4f-89 9c 11 8c 1e 67 02 de   ..gPLC.O.....g..
0010 - 09 4c 50 e8 e5 6e 22 91-81 4d 87 5b 4c 52 bf cc   .LP..n"..M.[LR..
0020 - 88 b4 03 c0 dd f8 29 c1-39 67 9a f7 03 38 9f 16   ......).9g...8..
0030 - 0e 7a b6 68 90 db b1 0d-7a 05                     .z.h....z.
depth=0 C = GE, ST = Dortmund, L = Dortmund, O = WhatTheFuck, CN = FuckYou, emailAddress = fuck@you.too
verify error:num=18:self signed certificate
verify return:1
depth=0 C = GE, ST = Dortmund, L = Dortmund, O = WhatTheFuck, CN = FuckYou, emailAddress = fuck@you.too
verify return:1
read from 0x16ca5b0 [0x16cfb93] (5 bytes => 5 (0x5))
0000 - 16 03 03 02 91                                    .....
read from 0x16ca5b0 [0x16cfb98] (657 bytes => 657 (0x291))
0000 - 0c 00 02 8d 03 00 19 85-04 00 46 e7 20 17 fe 42   ..........F. ..B
0010 - d9 e9 c2 40 ea dd 8a dd-9a 67 3a 85 36 c8 3c a8   ...@.....g:.6.<.
0020 - 17 4e 8e f3 90 98 da fb-ed 79 7a e3 43 a7 79 4b   .N.......yz.C.yK
0030 - 98 1b 93 64 b2 cb ae ec-a0 56 87 e3 4c bc f1 c7   ...d.....V..L...
0040 - bb 84 1b c8 5f 35 03 15-88 06 f5 01 d3 dc 33 14   ...._5........3.
0050 - 00 95 d7 f0 6e 81 c8 a0-df 25 d3 a4 01 b4 07 18   ....n....%......
0060 - bb 59 f1 8b 68 5f 95 04-41 7a 41 3e 32 b1 cb 75   .Y..h_..AzA>2..u
0070 - a4 3a af 0d ac dd d0 40-97 99 d3 ff ff 33 fc 8b   .:.....@.....3..
0080 - 99 c4 02 dc 35 50 b2 1b-8d 74 e1 6b dc 06 01 02   ....5P...t.k....
0090 - 00 56 62 fe ee a1 33 80-5a c5 37 8d 24 6a 13 a1   .Vb...3.Z.7.$j..
00a0 - 67 b5 f4 39 2d 10 52 a3-c1 3f aa 6c e7 f2 59 13   g..9-.R..?.l..Y.
00b0 - a2 08 ad 0d f8 59 25 a2-cd 72 23 f8 de c7 14 fd   .....Y%..r#.....
00c0 - 78 87 79 35 86 73 96 cc-c5 78 2a 48 e3 68 27 cd   x.y5.s...x*H.h'.
00d0 - 47 cc f3 00 fe d0 41 d4-8a 44 0f a7 79 d4 aa cd   G.....A..D..y...
00e0 - 63 57 cd 32 5c f4 99 12-f5 db 44 c7 8f 69 61 bd   cW.2\.....D..ia.
00f0 - 79 21 db 44 e8 54 b8 20-ac da 79 a6 7f 3d 0e a2   y!.D.T. ..y..=..
0100 - 29 9b 45 bd 13 23 f0 b7-bd b1 db 46 c3 05 27 39   ).E..#.....F..'9
0110 - c1 f3 6e 4b 51 c3 f0 b3-b4 1f 74 d1 f9 9f 90 95   ..nKQ.....t.....
0120 - 6c 56 6e d1 86 25 4c d5-7d 4d f7 4b 16 cf 77 75   lVn..%L.}M.K..wu
0130 - 2b 5f be 61 bb 77 fd 41-bc 1f db b5 9b d7 3e 73   +_.a.w.A......>s
0140 - 0c 73 89 bd 6a e8 ab 08-c9 14 45 59 aa 48 bb fc   .s..j.....EY.H..
0150 - 52 af fe d2 31 ab 68 e2-34 3e 12 22 80 2e 22 fb   R...1.h.4>."..".
0160 - ae f5 cc f3 ec fd 33 b9-c3 bb 8c e0 16 6d e9 07   ......3......m..
0170 - 4b de 56 37 3c 43 44 8a-3c f4 d4 b7 eb 6f da b9   K.V7<CD.<....o..
0180 - 93 2c 24 22 5a c0 75 0f-b1 02 07 10 6b 8d d1 cb   .,$"Z.u.....k...
0190 - f8 c0 f8 32 98 fa 67 05-44 59 fe 2d 4d 51 25 5e   ...2..g.DY.-MQ%^
01a0 - 5e 4c d2 8a 6d 0a f1 25-0b 16 c6 d3 f6 f7 17 32   ^L..m..%.......2
01b0 - cf e9 8f c0 a4 16 7f aa-01 69 ac 94 77 fb eb 0c   .........i..w...
01c0 - fd 2b c9 e9 20 88 07 42-08 e9 77 a8 87 27 a6 3e   .+.. ..B..w..'.>
01d0 - d2 1e c7 35 23 78 86 81-1e a2 fd 10 b5 4c de 22   ...5#x.......L."
01e0 - 9a d6 41 ad c3 5d 50 48-43 d4 26 5c 79 e2 ea e6   ..A..]PHC.&\y...
01f0 - 28 65 cb a9 fd bf da 52-92 f8 e8 74 b4 51 40 e5   (e.....R...t.Q@.
0200 - 30 1e 01 05 c9 67 e8 4e-94 19 af 96 0d f3 e8 90   0....g.N........
0210 - de a4 25 cf fa c3 b8 cb-fe 4c 1d 80 7a 71 48 5a   ..%......L..zqHZ
0220 - 28 ad 2e 7a fd e5 1e 23-40 7a 15 e2 d5 62 55 ea   (..z...#@z...bU.
0230 - 92 cb 05 b1 37 b1 65 96-9a 4b 54 0a dd 8b 01 d2   ....7.e..KT.....
0240 - a7 f2 00 35 87 5b 40 2f-d0 b9 34 d5 c3 06 d6 e8   ...5.[@/..4.....
0250 - 2c 3a 85 e6 ec ef 47 dc-c0 98 2e 24 33 97 9a 4d   ,:....G....$3..M
0260 - 5f 45 68 47 a5 39 9c d7-bf df 75 68 c7 22 22 6a   _EhG.9....uh.""j
0270 - 61 a0 22 d1 38 6f 9d 19-6f be 6b e3 2d 6f 41 e9   a.".8o..o.k.-oA.
0280 - e1 57 8a 58 4b cb 06 b9-fd f1 b7 02 c6 42 aa d4   .W.XK........B..
0290 - 8b                                                .
read from 0x16ca5b0 [0x16cfb93] (5 bytes => 5 (0x5))
0000 - 16 03 03 00 04                                    .....
read from 0x16ca5b0 [0x16cfb98] (4 bytes => 4 (0x4))
0000 - 0e                                                .
0004 - <SPACES/NULS>
write to 0x16ca5b0 [0x16d9ae0] (143 bytes => 143 (0x8F))
0000 - 16 03 03 00 8a 10 00 00-86 85 04 01 76 7c 61 fd   ............v|a.
0010 - b3 d6 b0 fb 93 97 f4 c8-13 fa 15 63 13 90 2c 9b   ...........c..,.
0020 - 8f e5 13 0b d2 60 f1 c1-f5 34 9f 00 8c 19 c8 55   .....`...4.....U
0030 - 34 a6 22 74 27 4b 9b 81-ae b4 f5 03 f3 2e 19 a1   4."t'K..........
0040 - 74 7c 70 3c 60 74 5e c9-bd be df 6e 67 01 ca 86   t|p<`t^....ng...
0050 - d2 6b 88 fb f2 a1 d2 e5-a0 61 ba 82 00 54 9e 9a   .k.......a...T..
0060 - 9f bc e9 9c e2 7b 11 12-07 b3 d3 05 52 56 fa 04   .....{......RV..
0070 - 3f 8b 6e 88 05 35 20 da-28 ba 42 72 af b4 49 67   ?.n..5 .(.Br..Ig
0080 - 4a ed 9c 4a 9e e0 40 1c-3e 8c 6a 0f 6b 9b c5      J..J..@.>.j.k..
write to 0x16ca5b0 [0x16d9ae0] (6 bytes => 6 (0x6))
0000 - 14 03 03 00 01 01                                 ......
write to 0x16ca5b0 [0x16d9ae0] (45 bytes => 45 (0x2D))
0000 - 16 03 03 00 28 57 84 0b-02 88 4d 16 c7 cd 2f bb   ....(W....M.../.
0010 - 98 43 b4 1a 30 c2 28 11-54 87 3c b7 ad a4 e8 2a   .C..0.(.T.<....*
0020 - c5 94 8c fd 26 db 71 f0-35 ed 9f 51 60            ....&.q.5..Q`
read from 0x16ca5b0 [0x16cfb93] (5 bytes => 5 (0x5))
0000 - 14 03 03 00 01                                    .....
read from 0x16ca5b0 [0x16cfb98] (1 bytes => 1 (0x1))
0000 - 01                                                .
read from 0x16ca5b0 [0x16cfb93] (5 bytes => 5 (0x5))
0000 - 16 03 03 00 28                                    ....(
read from 0x16ca5b0 [0x16cfb98] (40 bytes => 40 (0x28))
0000 - 00 00 00 00 00 00 00 00-72 4f 36 e4 5a 52 0f 0d   ........rO6.ZR..
0010 - fe 1b 58 4d 9a 8d eb cc-01 62 69 c3 15 90 e9 f8   ..XM.....bi.....
0020 - 3d fa bd ce ff 22 d2 fe-                          =...."..
---
Certificate chain
 0 s:/C=GE/ST=Dortmund/L=Dortmund/O=WhatTheFuck/CN=FuckYou/emailAddress=fuck@you.too
   i:/C=GE/ST=Dortmund/L=Dortmund/O=WhatTheFuck/CN=FuckYou/emailAddress=fuck@you.too
---
Server certificate
-----BEGIN CERTIFICATE-----
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
-----END CERTIFICATE-----
subject=/C=GE/ST=Dortmund/L=Dortmund/O=WhatTheFuck/CN=FuckYou/emailAddress=fuck@you.too
issuer=/C=GE/ST=Dortmund/L=Dortmund/O=WhatTheFuck/CN=FuckYou/emailAddress=fuck@you.too
---
No client certificate CA names sent
Peer signing digest: SHA512
Server Temp Key: ECDH, P-521, 521 bits
---
SSL handshake has read 2308 bytes and written 499 bytes
---
New, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES256-GCM-SHA384
Server public key is 4096 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
SSL-Session:
    Protocol  : TLSv1.2
    Cipher    : ECDHE-RSA-AES256-GCM-SHA384
    Session-ID: D9685607DBDD5A94ADDAE7ECEC9E3F5783BA22C83A2B1631B95D6D16FE037D77
    Session-ID-ctx: 
    Master-Key: 2286978E28A8AE5DF324E6AAA89AFB526CE45B3F6DCDBE2FD463C0C3F01B951693C0A7345249AFBDB97D17FCF4FE0E0B
    Key-Arg   : None
    PSK identity: None
    PSK identity hint: None
    SRP username: None
    Start Time: 1513781546
    Timeout   : 300 (sec)
    Verify return code: 18 (self signed certificate)
---
GET something fishy
write to 0x16ca5b0 [0x16d40e3] (49 bytes => 49 (0x31))
0000 - 17 03 03 00 2c 57 84 0b-02 88 4d 16 c8 cd fd 11   ....,W....M.....
0010 - 1c 6c 86 09 02 ee 41 1b-ad 97 01 e3 bf 75 6e e0   .l....A......un.
0020 - dc b0 f8 bd 76 9f 72 ac-82 36 35 b9 ec ed 22 a1   ....v.r..65...".
0030 - 60                                                `
read from 0x16ca5b0 [0x16cfb93] (5 bytes => 5 (0x5))
0000 - 17 03 03 00 af                                    .....
read from 0x16ca5b0 [0x16cfb98] (175 bytes => 175 (0xAF))
0000 - 00 00 00 00 00 00 00 01-3f 2f d9 cc 8b a2 f6 b2   ........?/......
0010 - 3f b2 04 83 53 34 08 62-3d dd 1a 72 b6 72 55 68   ?...S4.b=..r.rUh
0020 - 4f 7a a7 43 a4 34 17 f7-ad 27 2e 27 8c 53 15 62   Oz.C.4...'.'.S.b
0030 - c4 b7 da e7 49 8b 59 ee-e4 3d 2b a0 b7 62 b0 94   ....I.Y..=+..b..
0040 - d7 0d 51 a3 17 26 16 83-e9 52 3a 9d 5f 2b 14 33   ..Q..&...R:._+.3
0050 - b9 26 e7 07 44 ab 54 9c-b2 e3 e3 76 42 f9 bb 4f   .&..D.T....vB..O
0060 - ed 6d fd 93 ab 84 6d cd-74 f2 47 2f 71 9d 88 8b   .m....m.t.G/q...
0070 - cc 8f 98 0b c2 d7 e6 62-88 0c ad 3e f5 3c 6e 5d   .......b...>.<n]
0080 - bd e7 ce b5 38 80 9e 48-84 b7 98 df 7d bc 80 0f   ....8..H....}...
0090 - 08 05 e9 e5 77 a0 01 5f-34 93 a5 d5 87 45 55 60   ....w.._4....EU`
00a0 - 93 d4 cc 6d 78 83 04 6e-f7 21 6f 30 79 f9 27      ...mx..n.!o0y.'
HTTP/1.1 200 OK
Content-Type: text/html

<html>
<head>
<title>OpenSSL example</title></head><body>
OpenSSL server example!
</body>
</html>

read from 0x16ca5b0 [0x16cfb93] (5 bytes => 5 (0x5))
0000 - 15 03 03 00 1a                                    .....
read from 0x16ca5b0 [0x16cfb98] (26 bytes => 26 (0x1A))
0000 - 00 00 00 00 00 00 00 02-d8 51 97 a1 34 8b 79 cf   .........Q..4.y.
0010 - 64 97 86 6f e6 cf 6a ca-1d b7                     d..o..j...
closed
write to 0x16ca5b0 [0x16d40e3] (31 bytes => 31 (0x1F))
0000 - 15 03 03 00 1a 57 84 0b-02 88 4d 16 c9 fd a8 cf   .....W....M.....
0010 - c6 6d 54 b0 0b 8a b1 f9-6c 8d 25 77 76 e9 4d      .mT.....l.%wv.M
As you can see I did a GET request from console and i received an answer which is totaly legit. But now i do the same command again:

Code: Select all

potti@potti-desktop:~$ openssl s_client -debug -connect 192.168.0.80:443
CONNECTED(00000003)
write to 0x1f785b0 [0x1f78630] (305 bytes => 305 (0x131))
0000 - 16 03 01 01 2c 01 00 01-28 03 03 24 1a 70 40 37   ....,...(..$.p@7
0010 - 7f a6 44 d9 02 75 8b e2-93 7f 15 09 a9 a2 8c bc   ..D..u..........
0020 - 21 02 6f a0 cd d0 a9 40-fe 44 66 00 00 aa c0 30   !.o....@.Df....0
0030 - c0 2c c0 28 c0 24 c0 14-c0 0a 00 a5 00 a3 00 a1   .,.(.$..........
0040 - 00 9f 00 6b 00 6a 00 69-00 68 00 39 00 38 00 37   ...k.j.i.h.9.8.7
0050 - 00 36 00 88 00 87 00 86-00 85 c0 32 c0 2e c0 2a   .6.........2...*
0060 - c0 26 c0 0f c0 05 00 9d-00 3d 00 35 00 84 c0 2f   .&.......=.5.../
0070 - c0 2b c0 27 c0 23 c0 13-c0 09 00 a4 00 a2 00 a0   .+.'.#..........
0080 - 00 9e 00 67 00 40 00 3f-00 3e 00 33 00 32 00 31   ...g.@.?.>.3.2.1
0090 - 00 30 00 9a 00 99 00 98-00 97 00 45 00 44 00 43   .0.........E.D.C
00a0 - 00 42 c0 31 c0 2d c0 29-c0 25 c0 0e c0 04 00 9c   .B.1.-.).%......
00b0 - 00 3c 00 2f 00 96 00 41-c0 11 c0 07 c0 0c c0 02   .<./...A........
00c0 - 00 05 00 04 c0 12 c0 08-00 16 00 13 00 10 00 0d   ................
00d0 - c0 0d c0 03 00 0a 00 ff-01 00 00 55 00 0b 00 04   ...........U....
00e0 - 03 00 01 02 00 0a 00 1c-00 1a 00 17 00 19 00 1c   ................
00f0 - 00 1b 00 18 00 1a 00 16-00 0e 00 0d 00 0b 00 0c   ................
0100 - 00 09 00 0a 00 23 00 00-00 0d 00 20 00 1e 06 01   .....#..... ....
0110 - 06 02 06 03 05 01 05 02-05 03 04 01 04 02 04 03   ................
0120 - 03 01 03 02 03 03 02 01-02 02 02 03 00 0f 00 01   ................
0130 - 01                                                .
read from 0x1f785b0 [0x1f7db90] (7 bytes => 7 (0x7))
0000 - 16 03 03 00 57 02                                 ....W.
0007 - <SPACES/NULS>
read from 0x1f785b0 [0x1f7db9a] (85 bytes => 85 (0x55))
0000 - 00 53 03 03 00 00 00 61-39 b7 1f f9 d6 c7 27 38   .S.....a9.....'8
0010 - 62 82 21 af f8 42 e5 e2-b0 89 15 c2 27 76 b8 33   b.!..B......'v.3
0020 - 76 ed 17 41 20 40 f2 e5-61 29 11 a8 aa b0 b1 e1   v..A @..a)......
0030 - 01 7e 7f cf 7c f5 93 c2-e0 4c d9 40 27 10 ed e4   .~..|....L.@'...
0040 - 60 a0 5e 08 2e c0 30 00-00 0b ff 01 00 01 00 00   `.^...0.........
0050 - 0b 00 02 01                                       ....
0055 - <SPACES/NULS>
read from 0x1f785b0 [0x1f7db93] (5 bytes => 5 (0x5))
0000 - 16 03 03 05 d1                                    .....
read from 0x1f785b0 [0x1f7db98] (1489 bytes => 1431 (0x597))
0000 - 0b 00 05 cd 00 05 ca 00-05 c7 30 82 05 c3 30 82   ..........0...0.
0010 - 03 ab a0 03 02 01 02 02-09 00 d9 f3 f7 14 de 47   ...............G
0020 - 16 81 30 0d 06 09 2a 86-48 86 f7 0d 01 01 0b 05   ..0...*.H.......
0030 - 00 30 78 31 0b 30 09 06-03 55 04 06 13 02 47 45   .0x1.0...U....GE
0040 - 31 11 30 0f 06 03 55 04-08 0c 08 44 6f 72 74 6d   1.0...U....Dortm
0050 - 75 6e 64 31 11 30 0f 06-03 55 04 07 0c 08 44 6f   und1.0...U....Do
0060 - 72 74 6d 75 6e 64 31 14-30 12 06 03 55 04 0a 0c   rtmund1.0...U...
0070 - 0b 57 68 61 74 54 68 65-46 75 63 6b 31 10 30 0e   .WhatTheFuck1.0.
0080 - 06 03 55 04 03 0c 07 46-75 63 6b 59 6f 75 31 1b   ..U....FuckYou1.
0090 - 30 19 06 09 2a 86 48 86-f7 0d 01 09 01 16 0c 66   0...*.H........f
00a0 - 75 63 6b 40 79 6f 75 2e-74 6f 6f 30 1e 17 0d 31   uck@you.too0...1
00b0 - 37 31 32 32 30 31 32 31-36 33 33 5a 17 0d 31 38   71220121633Z..18
00c0 - 31 32 32 30 31 32 31 36-33 33 5a 30 78 31 0b 30   1220121633Z0x1.0
00d0 - 09 06 03 55 04 06 13 02-47 45 31 11 30 0f 06 03   ...U....GE1.0...
00e0 - 55 04 08 0c 08 44 6f 72-74 6d 75 6e 64 31 11 30   U....Dortmund1.0
00f0 - 0f 06 03 55 04 07 0c 08-44 6f 72 74 6d 75 6e 64   ...U....Dortmund
0100 - 31 14 30 12 06 03 55 04-0a 0c 0b 57 68 61 74 54   1.0...U....WhatT
0110 - 68 65 46 75 63 6b 31 10-30 0e 06 03 55 04 03 0c   heFuck1.0...U...
0120 - 07 46 75 63 6b 59 6f 75-31 1b 30 19 06 09 2a 86   .FuckYou1.0...*.
0130 - 48 86 f7 0d 01 09 01 16-0c 66 75 63 6b 40 79 6f   H........fuck@yo
0140 - 75 2e 74 6f 6f 30 82 02-22 30 0d 06 09 2a 86 48   u.too0.."0...*.H
0150 - 86 f7 0d 01 01 01 05 00-03 82 02 0f 00 30 82 02   .............0..
0160 - 0a 02 82 02 01 00 9a 38-c8 d1 38 ec 9c d6 ae 85   .......8..8.....
0170 - 5a ef 5a 81 c5 9a 72 0a-a6 13 d7 37 a5 a3 05 e4   Z.Z...r....7....
0180 - 1c 15 20 b0 00 7f 54 87-03 08 6a 84 44 b6 6e a0   .. ...T...j.D.n.
0190 - 6a 4a 2c 2e 5a 60 32 fa-e8 36 fc ad 8f da af 07   jJ,.Z`2..6......
01a0 - d1 00 d3 82 3d a6 ca 10-c4 ff 79 32 46 8d 4c db   ....=.....y2F.L.
01b0 - 0d c4 38 aa d0 27 5f 3c-ea 67 e8 03 80 5b de 35   ..8..'_<.g...[.5
01c0 - 21 57 7a 46 53 e9 fd f1-61 14 40 5b 36 7e 10 7a   !WzFS...a.@[6~.z
01d0 - 98 9b 8c 41 cb bb 11 f7-c5 84 a1 cd 20 1c d7 11   ...A........ ...
01e0 - 10 71 fe 7c 07 3d e1 0f-be 63 fd 82 ad c4 15 48   .q.|.=...c.....H
01f0 - ce 6e 2c 94 7f cb 42 b7-45 f9 45 be 48 cc 67 99   .n,...B.E.E.H.g.
0200 - 80 6f bb 4c c3 88 e1 e4-c1 ed 5a ce 21 96 2d c6   .o.L......Z.!.-.
0210 - 67 fa c0 c3 a7 f6 68 a8-f6 e2 1e 71 22 6b d8 d2   g.....h....q"k..
0220 - bf 60 51 84 9c 54 ca 83-91 f5 e1 fa bd 76 08 54   .`Q..T.......v.T
0230 - f0 b4 08 57 de 96 d0 7b-c0 bf 2f 9d 0d 8f bd af   ...W...{../.....
0240 - 89 af 1b 7c 45 67 97 ae-f0 77 69 42 e0 bc c7 f3   ...|Eg...wiB....
0250 - c9 ae c8 ab 4c b1 26 a8-93 bf f9 19 74 8a ba a2   ....L.&.....t...
0260 - 18 8d 25 61 d6 59 25 b6-7b e4 11 d1 00 82 2c b1   ..%a.Y%.{.....,.
0270 - 5f 11 de 9f f6 99 74 b4-69 66 4d fa fc 47 76 de   _.....t.ifM..Gv.
0280 - dc 2a 68 2e f8 85 8a 48-d4 e0 10 6b 41 cf 61 d1   .*h....H...kA.a.
0290 - 39 a3 26 53 05 54 97 c5-3e 88 0d 58 b1 41 57 eb   9.&S.T..>..X.AW.
02a0 - 6f a6 98 03 33 2b 94 e3-bd fe 93 da 9d c0 13 96   o...3+..........
02b0 - 1f 84 92 48 40 d5 a5 e0-2a 77 f4 10 b6 f3 9d 7e   ...H@...*w.....~
02c0 - c5 f6 bb 47 6f f8 52 5b-92 b1 e6 7c 28 08 4d bf   ...Go.R[...|(.M.
02d0 - b5 e8 28 73 96 19 f4 5e-a1 38 ec db e8 cf 7f c9   ..(s...^.8......
02e0 - 1a 5c 4e 62 d0 f5 ac f4-8b 37 f9 21 8b 1f e8 33   .\Nb.....7.!...3
02f0 - f3 ad 87 23 84 1e f1 25-ea 25 b2 6f 32 b0 61 c0   ...#...%.%.o2.a.
0300 - f3 79 d4 a8 65 84 c0 c1-27 ef ea 85 2d 31 45 54   .y..e...'...-1ET
0310 - b3 9a 19 a4 35 d8 99 2b-11 f9 e1 96 fe 53 b1 57   ....5..+.....S.W
0320 - 34 ab b3 17 13 39 91 98-a7 3a 79 57 82 10 67 0f   4....9...:yW..g.
0330 - 90 0b 4f f1 2d 4f 47 73-3e fe b6 6e 94 15 68 ba   ..O.-OGs>..n..h.
0340 - 01 ef cc 7c cd 25 18 d0-56 ad 5b 81 f6 be 92 06   ...|.%..V.[.....
0350 - b4 30 8f aa 93 52 fc 13-e2 51 7a 2f af 1f 05 a1   .0...R...Qz/....
0360 - fd 02 5f c5 44 97 02 03-01 00 01 a3 50 30 4e 30   .._.D.......P0N0
0370 - 1d 06 03 55 1d 0e 04 16-04 14 17 ef 95 eb 91 c1   ...U............
0380 - b0 3b d0 b8 74 c4 9a 6e-fb ed 67 2d ea 17 30 1f   .;..t..n..g-..0.
0390 - 06 03 55 1d 23 04 18 30-16 80 14 17 ef 95 eb 91   ..U.#..0........
03a0 - c1 b0 3b d0 b8 74 c4 9a-6e fb ed 67 2d ea 17 30   ..;..t..n..g-..0
03b0 - 0c 06 03 55 1d 13 04 05-30 03 01 01 ff 30 0d 06   ...U....0....0..
03c0 - 09 2a 86 48 86 f7 0d 01-01 0b 05 00 03 82 02 01   .*.H............
03d0 - 00 8d 52 ac d5 fd 52 16-c3 e9 46 56 2f 83 08 cb   ..R...R...FV/...
03e0 - c0 34 3e e1 8c b2 e1 4d-ea b7 84 04 10 cd 4a 6c   .4>....M......Jl
03f0 - ce 13 74 8e 1c 04 8f 51-8e 3e 1a 01 00 43 ef b2   ..t....Q.>...C..
0400 - a4 8a 9d 95 0d 81 f5 e0-64 20 84 6f 43 cc ba c6   ........d .oC...
0410 - 7b 00 d1 e6 4d 18 6a b1-8d 26 ed 42 37 7c c3 89   {...M.j..&.B7|..
0420 - ff e7 a4 02 4a bd c7 10-05 c9 28 45 98 a2 3c 89   ....J.....(E..<.
0430 - f6 b1 e2 dc f2 29 99 07-25 e4 00 51 5d 82 19 2b   .....)..%..Q]..+
0440 - bb 6b 43 fa b0 d3 60 c0-29 3d b7 5c 67 5b f8 98   .kC...`.)=.\g[..
0450 - bf c6 a7 32 1e b8 50 55-88 91 7d b9 83 fa 15 eb   ...2..PU..}.....
0460 - ac 93 44 d9 1e f5 ff 52-e8 59 7f 2f 0d 2e e0 a5   ..D....R.Y./....
0470 - 36 f1 8e e3 ee d0 77 c1-98 80 f6 b1 b8 8d 7c ab   6.....w.......|.
0480 - 72 ea 1c c3 1f d3 6e c4-b7 e2 52 eb a8 6f f5 0f   r.....n...R..o..
0490 - e3 22 c4 d8 8b ec 43 7c-ea 1c 5c 64 a5 ea 8a 9c   ."....C|..\d....
04a0 - e3 e1 e5 4b ce 55 77 e1-68 0b 8f 2d ad 7c 39 ee   ...K.Uw.h..-.|9.
04b0 - 9a 62 f1 4f 0f db 5c 96-10 cb b8 d4 f7 62 ab 18   .b.O..\......b..
04c0 - 7d 45 fb 16 6f 89 63 5d-d5 1d 59 6f aa 5e b8 9e   }E..o.c]..Yo.^..
04d0 - ad 14 ec e5 73 d4 51 c0-40 31 d9 4f 20 e0 40 a4   ....s.Q.@1.O .@.
04e0 - f5 8b da fc c1 ea 69 dd-91 c9 85 6d 18 30 62 99   ......i....m.0b.
04f0 - 70 9b 2c f2 9e bf 03 c6-6f 2d 7b 93 30 78 37 7d   p.,.....o-{.0x7}
0500 - ce 34 19 74 e4 02 e4 42-7d 48 2c c2 d2 ab d4 f6   .4.t...B}H,.....
0510 - 06 9b e7 36 35 a3 c5 d8-62 92 f8 79 16 64 14 57   ...65...b..y.d.W
0520 - 8a 57 33 51 7d 41 c6 4f-c4 35 de f1 66 78 1f 1b   .W3Q}A.O.5..fx..
0530 - 9d ef 85 4a 6e 2a 96 15-43 bb fb 74 54 0b 39 57   ...Jn*..C..tT.9W
0540 - 20 55 99 be f4 a2 07 b7-27 ae 97 c6 e7 ef a0 68    U......'......h
0550 - d1 6c de e0 91 4d 79 ec-1a 95 ba 8a 0a a0 b8 92   .l...My.........
0560 - b2 11 35 51 9d 02 fe 6d-71 63 5e 5e d9 b4 6d 3f   ..5Q...mqc^^..m?
0570 - e4 b4 fd b0 d3 e1 0d 4e-0b d6 a6 2c 0b 7a d0 fe   .......N...,.z..
0580 - 65 6a cd c2 e2 6d 4e 6f-3a 9a 40 f2 97 78 50 ff   ej...mNo:.@..xP.
0590 - ff 32 68 d1 07 60 29                              .2h..`)
read from 0x1f785b0 [0x1f7e12f] (58 bytes => 58 (0x3A))
0000 - d2 cb 67 50 4c 43 e4 4f-89 9c 11 8c 1e 67 02 de   ..gPLC.O.....g..
0010 - 09 4c 50 e8 e5 6e 22 91-81 4d 87 5b 4c 52 bf cc   .LP..n"..M.[LR..
0020 - 88 b4 03 c0 dd f8 29 c1-39 67 9a f7 03 38 9f 16   ......).9g...8..
0030 - 0e 7a b6 68 90 db b1 0d-7a 05                     .z.h....z.
depth=0 C = GE, ST = Dortmund, L = Dortmund, O = WhatTheFuck, CN = FuckYou, emailAddress = fuck@you.too
verify error:num=18:self signed certificate
verify return:1
depth=0 C = GE, ST = Dortmund, L = Dortmund, O = WhatTheFuck, CN = FuckYou, emailAddress = fuck@you.too
verify return:1
read from 0x1f785b0 [0x1f7db93] (5 bytes => 0 (0x0))
140275356587672:error:140790E5:SSL routines:ssl23_write:ssl handshake failure:s23_lib.c:177:
---
Certificate chain
 0 s:/C=GE/ST=Dortmund/L=Dortmund/O=WhatTheFuck/CN=FuckYou/emailAddress=fuck@you.too
   i:/C=GE/ST=Dortmund/L=Dortmund/O=WhatTheFuck/CN=FuckYou/emailAddress=fuck@you.too
---
Server certificate
-----BEGIN CERTIFICATE-----
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
-----END CERTIFICATE-----
subject=/C=GE/ST=Dortmund/L=Dortmund/O=WhatTheFuck/CN=FuckYou/emailAddress=fuck@you.too
issuer=/C=GE/ST=Dortmund/L=Dortmund/O=WhatTheFuck/CN=FuckYou/emailAddress=fuck@you.too
---
No client certificate CA names sent
---
SSL handshake has read 1586 bytes and written 0 bytes
---
New, (NONE), Cipher is (NONE)
Server public key is 4096 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
SSL-Session:
    Protocol  : TLSv1.2
    Cipher    : 0000
    Session-ID: 40F2E5612911A8AAB0B1E1017E7FCF7CF593C2E04CD9402710EDE460A05E082E
    Session-ID-ctx: 
    Master-Key: 
    Key-Arg   : None
    PSK identity: None
    PSK identity hint: None
    SRP username: None
    Start Time: 1513781586
    Timeout   : 300 (sec)
    Verify return code: 18 (self signed certificate)
---

I think the crucial part in the second attempt is this:

Code: Select all

read from 0x1f785b0 [0x1f7db93] (5 bytes => 0 (0x0))
140275356587672:error:140790E5:SSL routines:ssl23_write:ssl handshake failure:s23_lib.c:177:
Appreciate any idea on how to engage this bug as I am clueless.

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 122 guests