Skip to content

Instantly share code, notes, and snippets.

@docwhat
Created October 31, 2014 19:51
Show Gist options
  • Save docwhat/a2df518e46c78a771d75 to your computer and use it in GitHub Desktop.
Save docwhat/a2df518e46c78a771d75 to your computer and use it in GitHub Desktop.
Debugging HTTPS connections to fedoraproject.org
# OS X Mavericks
$ openssl s_client -state -msg -debug -connect fedoraproject.org:443
CONNECTED(00000003)
SSL_connect:before/connect initialization
write to 0x7fe6a2600000 [0x7fe6a3001000] (130 bytes => 130 (0x82))
0000 - 80 80 01 03 01 00 57 00-00 00 20 00 00 39 00 00 ......W... ..9..
0010 - 38 00 00 35 00 00 16 00-00 13 00 00 0a 07 00 c0 8..5............
0020 - 00 00 33 00 00 32 00 00-2f 00 00 9a 00 00 99 00 ..3..2../.......
0030 - 00 96 03 00 80 00 00 05-00 00 04 01 00 80 00 00 ................
0040 - 15 00 00 12 00 00 09 06-00 40 00 00 14 00 00 11 .........@......
0050 - 00 00 08 00 00 06 04 00-80 00 00 03 02 00 80 00 ................
0060 - 00 ff d3 c7 cd 46 c0 a0-ce 8d 25 0c 36 3c 2b 78 .....F....%.6<+x
0070 - d6 32 65 0b 1a 4e d6 88-0f 2a 70 7e f4 68 05 49 .2e..N...*p~.h.I
0080 - 87 74 .t
>>> SSL 2.0 [length 0080], CLIENT-HELLO
01 03 01 00 57 00 00 00 20 00 00 39 00 00 38 00
00 35 00 00 16 00 00 13 00 00 0a 07 00 c0 00 00
33 00 00 32 00 00 2f 00 00 9a 00 00 99 00 00 96
03 00 80 00 00 05 00 00 04 01 00 80 00 00 15 00
00 12 00 00 09 06 00 40 00 00 14 00 00 11 00 00
08 00 00 06 04 00 80 00 00 03 02 00 80 00 00 ff
d3 c7 cd 46 c0 a0 ce 8d 25 0c 36 3c 2b 78 d6 32
65 0b 1a 4e d6 88 0f 2a 70 7e f4 68 05 49 87 74
SSL_connect:SSLv2/v3 write client hello A
read from 0x7fe6a2600000 [0x7fe6a3006600] (7 bytes => -1 (0xFFFFFFFFFFFFFFFF))
SSL_connect:error in SSLv2/v3 read server hello A
write:errno=54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment