0000: 3c 21 64 6f 63 74 79 70 65 20 68 74 6d 6c 20 70 <!doctype html p
0010: 75 62 6c 69 63 20 22 2d 2f 2f 57 33 43 2f 2f 44 ublic "-//W3C//D
0020: 54 44 20 48 54 4d 4c 20 34 2e 30 20 54 72 61 6e TD HTML 4.0 Tran
0030: 73 69 74 69 6f 6e 61 6c 2f 2f 45 4e 22 3e 0a 0a sitional//EN">..
0040: 3c 68 74 6d 6c 3e 0a 0a 3c 68 65 61 64 3e 0a 3c <html>..<head>.<
0050: 6d 65 74 61 20 68 74 74 70 2d 65 71 75 69 76 3d meta http-equiv=
0060: 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 0a 63 "Content-Type".c
0070: 6f 6e 74 65 6e 74 3d 22 74 65 78 74 2f 68 74 6d ontent="text/htm
0080: 6c 3b 20 63 68 61 72 73 65 74 3d 69 73 6f 2d 38 l; charset=iso-8
0090: 38 35 39 2d 31 22 3e 0a 3c 6d 65 74 61 20 6e 61 859-1">.<meta na
00a0: 6d 65 3d 22 43 6f 70 79 72 69 67 68 74 22 20 63 me="Copyright" c
00b0: 6f 6e 74 65 6e 74 3d 22 31 39 39 39 20 4d 61 74 ontent="1999 Mat
00c0: 74 20 4e 65 77 6d 61 6e 20 2f 20 32 30 30 34 20 t Newman / 2004
00d0: 53 74 61 72 66 69 73 68 20 53 79 73 74 65 6d 73 Starfish Systems
00e0: 22 3e 0a 3c 74 69 74 6c 65 3e 54 4c 53 20 28 53 ">.<title>TLS (S
00f0: 53 4c 29 20 54 63 6c 20 43 6f 6d 6d 61 6e 64 73 SL) Tcl Commands
0100: 3c 2f 74 69 74 6c 65 3e 0a 3c 2f 68 65 61 64 3e </title>.</head>
0110: 0a 0a 3c 62 6f 64 79 20 62 67 63 6f 6c 6f 72 3d ..<body bgcolor=
0120: 22 23 46 46 46 46 46 46 22 3e 0a 0a 3c 64 6c 3e "#FFFFFF">..<dl>
0130: 0a 20 20 20 20 3c 64 64 3e 3c 61 20 68 72 65 66 . <dd><a href
0140: 3d 22 23 4e 41 4d 45 22 3e 4e 41 4d 45 3c 2f 61 ="#NAME">NAME</a
0150: 3e 0a 20 20 20 20 3c 64 6c 3e 0a 09 3c 64 64 3e >. <dl>..<dd>
0160: 3c 62 3e 74 6c 73 3c 2f 62 3e 20 2d 20 62 69 6e <b>tls</b> - bin
0170: 64 69 6e 67 20 74 6f 20 3c 62 3e 4f 70 65 6e 53 ding to <b>OpenS
0180: 53 4c 3c 2f 62 3e 20 74 6f 6f 6c 6b 69 74 2e 3c SL</b> toolkit.<
0190: 2f 64 64 3e 0a 20 20 20 20 3c 2f 64 6c 3e 0a 20 /dd>. </dl>.
01a0: 20 20 20 3c 2f 64 64 3e 0a 20 20 20 20 3c 64 64 </dd>. <dd
01b0: 3e 3c 61 20 68 72 65 66 3d 22 23 53 59 4e 4f 50 ><a href="#SYNOP
01c0: 53 49 53 22 3e 53 59 4e 4f 50 53 49 53 3c 2f 61 SIS">SYNOPSIS</a
01d0: 3e 20 3c 2f 64 64 3e 0a 20 20 20 20 3c 64 64 3e > </dd>. <dd>
01e0: 3c 64 6c 3e 0a 09 20 20 20 20 3c 64 64 3e 3c 62 <dl>.. <dd><b
01f0: 3e 70 61 63 6b 61 67 65 20 72 65 71 75 69 72 65 >package require
0200: 20 54 63 6c 3c 2f 62 3e 20 3c 65 6d 3e 3f 38 2e Tcl</b> <em>?8.
0210: 34 3f 3c 2f 65 6d 3e 3c 2f 64 64 3e 0a 09 20 20 4?</em></dd>..
0220: 20 20 3c 64 64 3e 3c 62 3e 70 61 63 6b 61 67 65 <dd><b>package
0230: 20 72 65 71 75 69 72 65 20 74 6c 73 3c 2f 62 3e require tls</b>
0240: 3c 2f 64 64 3e 0a 09 20 20 20 20 3c 64 74 3e 26 </dd>.. <dt>&
0250: 6e 62 73 70 3b 3c 2f 64 74 3e 0a 09 20 20 20 20 nbsp;</dt>..
0260: 3c 64 64 3e 3c 62 3e 74 6c 73 3a 3a 69 6e 69 74 <dd><b>tls::init
0270: 3c 2f 62 3e 20 3c 65 6d 3e 3f 6f 70 74 69 6f 6e </b> <em>?option
0280: 73 3f 3c 2f 65 6d 3e 20 3c 2f 64 64 3e 0a 09 20 s?</em> </dd>..
0290: 20 20 20 3c 64 64 3e 3c 62 3e 74 6c 73 3a 3a 73 <dd><b>tls::s
02a0: 6f 63 6b 65 74 3c 2f 62 3e 20 3c 65 6d 3e 3f 6f ocket</b> <em>?o
02b0: 70 74 69 6f 6e 73 3f 20 68 6f 73 74 20 70 6f 72 ptions? host por
02c0: 74 3c 2f 65 6d 3e 3c 2f 64 64 3e 0a 09 20 20 20 t</em></dd>..
02d0: 20 3c 64 64 3e 3c 62 3e 74 6c 73 3a 3a 73 6f 63 <dd><b>tls::soc
02e0: 6b 65 74 3c 2f 62 3e 20 3c 65 6d 3e 20 3f 2d 73 ket</b> <em> ?-s
02f0: 65 72 76 65 72 20 63 6f 6d 6d 61 6e 64 3f 20 3f erver command? ?
0300: 6f 70 74 69 6f 6e 73 3f 20 70 6f 72 74 3c 2f 65 options? port</e
0310: 6d 3e 3c 2f 64 64 3e 0a 09 20 20 20 20 3c 64 64 m></dd>.. <dd
0320: 3e 3c 62 3e 74 6c 73 3a 3a 68 61 6e 64 73 68 61 ><b>tls::handsha
0330: 6b 65 3c 2f 62 3e 20 3c 65 6d 3e 20 63 68 61 6e ke</b> <em> chan
0340: 6e 65 6c 3c 2f 65 6d 3e 3c 2f 64 64 3e 0a 09 20 nel</em></dd>..
0350: 20 20 20 3c 64 64 3e 3c 62 3e 74 6c 73 3a 3a 73 <dd><b>tls::s
0360: 74 61 74 75 73 20 3c 2f 62 3e 20 3c 65 6d 3e 3f tatus </b> <em>?
0370: 2d 6c 6f 63 61 6c 3f 20 63 68 61 6e 6e 65 6c 3c -local? channel<
0380: 2f 65 6d 3e 3c 2f 64 64 3e 0a 09 20 20 20 20 3c /em></dd>.. <
0390: 64 64 3e 3c 62 3e 74 6c 73 3a 3a 63 6f 6e 6e 65 dd><b>tls::conne
03a0: 63 74 69 6f 6e 20 3c 2f 62 3e 20 3c 65 6d 3e 63 ction </b> <em>c
03b0: 68 61 6e 6e 65 6c 3c 2f 65 6d 3e 3c 2f 64 64 3e hannel</em></dd>
03c0: 0a 09 20 20 20 20 3c 64 64 3e 3c 62 3e 74 6c 73 .. <dd><b>tls
03d0: 3a 3a 69 6d 70 6f 72 74 3c 2f 62 3e 20 3c 65 6d ::import</b> <em
03e0: 3e 63 68 61 6e 6e 65 6c 20 3f 6f 70 74 69 6f 6e >channel ?option
03f0: 73 3f 3c 2f 65 6d 3e 3c 2f 64 64 3e 0a 09 20 20 s?</em></dd>..
0400: 20 20 3c 64 64 3e 3c 62 3e 74 6c 73 3a 3a 75 6e <dd><b>tls::un
0410: 69 6d 70 6f 72 74 3c 2f 62 3e 20 3c 65 6d 3e 63 import</b> <em>c
0420: 68 61 6e 6e 65 6c 3c 2f 65 6d 3e 3c 2f 64 64 3e hannel</em></dd>
0430: 0a 09 20 20 20 20 3c 64 74 3e 26 6e 62 73 70 3b .. <dt>
0440: 3c 2f 64 74 3e 0a 09 20 20 20 20 3c 64 64 3e 3c </dt>.. <dd><
0450: 62 3e 74 6c 73 3a 3a 63 69 70 68 65 72 73 20 3c b>tls::ciphers <
0460: 2f 62 3e 20 3c 65 6d 3e 70 72 6f 74 6f 63 6f 6c /b> <em>protocol
0470: 20 3f 76 65 72 62 6f 73 65 3f 20 3f 73 75 70 70 ?verbose? ?supp
0480: 6f 72 74 65 64 3f 3c 2f 65 6d 3e 3c 2f 64 64 3e orted?</em></dd>
0490: 0a 09 20 20 20 20 3c 64 64 3e 3c 62 3e 74 6c 73 .. <dd><b>tls
04a0: 3a 3a 70 72 6f 74 6f 63 6f 6c 73 3c 2f 62 3e 3c ::protocols</b><
04b0: 2f 64 64 3e 0a 09 20 20 20 20 3c 64 64 3e 3c 62 /dd>.. <dd><b
04c0: 3e 74 6c 73 3a 3a 76 65 72 73 69 6f 6e 3c 2f 62 >tls::version</b
04d0: 3e 3c 2f 64 64 3e 0a 09 3c 2f 64 6c 3e 0a 20 20 ></dd>..</dl>.
04e0: 20 20 3c 2f 64 64 3e 0a 20 20 20 20 3c 64 64 3e </dd>. <dd>
04f0: 3c 61 20 68 72 65 66 3d 22 23 43 4f 4d 4d 41 4e <a href="#COMMAN
0500: 44 53 22 3e 43 4f 4d 4d 41 4e 44 53 3c 2f 61 3e DS">COMMANDS</a>
0510: 3c 2f 64 64 3e 0a 20 20 20 20 3c 64 64 3e 3c 61 </dd>. <dd><a
0520: 20 68 72 65 66 3d 22 23 43 41 4c 4c 42 41 43 4b href="#CALLBACK
0530: 20 4f 50 54 49 4f 4e 53 22 3e 43 41 4c 4c 42 41 OPTIONS">CALLBA
0540: 43 4b 20 4f 50 54 49 4f 4e 53 3c 2f 61 3e 3c 2f CK OPTIONS</a></
0550: 64 64 3e 0a 20 20 20 20 3c 64 64 3e 3c 61 20 68 dd>. <dd><a h
0560: 72 65 66 3d 22 23 48 54 54 50 53 20 45 58 41 4d ref="#HTTPS EXAM
0570: 50 4c 45 22 3e 48 54 54 50 53 20 45 58 41 4d 50 PLE">HTTPS EXAMP
0580: 4c 45 3c 2f 61 3e 3c 2f 64 64 3e 0a 20 20 20 20 LE</a></dd>.
0590: 3c 64 64 3e 3c 61 20 68 72 65 66 3d 22 23 53 45 <dd><a href="#SE
05a0: 45 20 41 4c 53 4f 22 3e 53 50 45 43 49 41 4c 20 E ALSO">SPECIAL
05b0: 43 4f 4e 53 49 44 45 52 41 54 49 4f 4e 53 3c 2f CONSIDERATIONS</
05c0: 61 3e 3c 2f 64 64 3e 0a 20 20 20 20 3c 64 64 3e a></dd>. <dd>
05d0: 3c 61 20 68 72 65 66 3d 22 23 53 45 45 20 41 4c <a href="#SEE AL
05e0: 53 4f 22 3e 53 45 45 20 41 4c 53 4f 3c 2f 61 3e SO">SEE ALSO</a>
05f0: 3c 2f 64 64 3e 0a 3c 2f 64 6c 3e 0a 0a 3c 68 72 </dd>.</dl>..<hr
0600: 3e 0a 0a 3c 68 33 3e 3c 61 20 6e 61 6d 65 3d 22 >..<h3><a name="
0610: 4e 41 4d 45 22 3e 4e 41 4d 45 3c 2f 61 3e 3c 2f NAME">NAME</a></
0620: 68 33 3e 0a 0a 3c 70 3e 3c 73 74 72 6f 6e 67 3e h3>..<p><strong>
0630: 74 6c 73 3c 2f 73 74 72 6f 6e 67 3e 20 2d 20 62 tls</strong> - b
0640: 69 6e 64 69 6e 67 20 74 6f 20 3c 73 74 72 6f 6e inding to <stron
0650: 67 3e 4f 70 65 6e 53 53 4c 3c 2f 73 74 72 6f 6e g>OpenSSL</stron
0660: 67 3e 0a 74 6f 6f 6c 6b 69 74 2e 3c 2f 70 3e 0a g>.toolkit.</p>.
0670: 0a 3c 68 33 3e 3c 61 20 6e 61 6d 65 3d 22 53 59 .<h3><a name="SY
0680: 4e 4f 50 53 49 53 22 3e 53 59 4e 4f 50 53 49 53 NOPSIS">SYNOPSIS
0690: 3c 2f 61 3e 3c 2f 68 33 3e 0a 0a 3c 70 3e 3c 62 </a></h3>..<p><b
06a0: 3e 70 61 63 6b 61 67 65 20 72 65 71 75 69 72 65 >package require
06b0: 20 54 63 6c 20 38 2e 34 3c 2f 62 3e 3c 62 72 3e Tcl 8.4</b><br>
06c0: 0a 3c 62 3e 70 61 63 6b 61 67 65 20 72 65 71 75 .<b>package requ
06d0: 69 72 65 20 74 6c 73 3c 2f 62 3e 3c 62 72 3e 0a ire tls</b><br>.
06e0: 3c 62 72 3e 0a 3c 61 20 68 72 65 66 3d 22 23 74 <br>.<a href="#t
06f0: 6c 73 3a 3a 69 6e 69 74 22 3e 3c 62 3e 74 6c 73 ls::init"><b>tls
0700: 3a 3a 69 6e 69 74 3c 2f 62 3e 20 3c 69 3e 3f 6f ::init</b> <i>?o
0710: 70 74 69 6f 6e 73 3f 3c 2f 69 3e 3c 2f 61 3e 3c ptions?</i></a><
0720: 62 72 3e 0a 3c 61 20 68 72 65 66 3d 22 23 74 6c br>.<a href="#tl
0730: 73 3a 3a 73 6f 63 6b 65 74 22 3e 3c 62 3e 74 6c s::socket"><b>tl
0740: 73 3a 3a 73 6f 63 6b 65 74 3c 2f 62 3e 20 3c 69 s::socket</b> <i
0750: 3e 3f 6f 70 74 69 6f 6e 73 3f 20 68 6f 73 74 20 >?options? host
0760: 70 6f 72 74 3c 2f 69 3e 3c 62 72 3e 0a 3c 61 20 port</i><br>.<a
0770: 68 72 65 66 3d 22 23 74 6c 73 3a 3a 73 6f 63 6b href="#tls::sock
0780: 65 74 22 3e 3c 62 3e 74 6c 73 3a 3a 73 6f 63 6b et"><b>tls::sock
0790: 65 74 3c 2f 62 3e 20 3c 69 3e 3f 2d 73 65 72 76 et</b> <i>?-serv
07a0: 65 72 20 63 6f 6d 6d 61 6e 64 3f 20 3f 6f 70 74 er command? ?opt
07b0: 69 6f 6e 73 3f 20 70 6f 72 74 3c 2f 69 3e 3c 2f ions? port</i></
07c0: 61 3e 3c 62 72 3e 0a 3c 61 20 68 72 65 66 3d 22 a><br>.<a href="
07d0: 23 74 6c 73 3a 3a 73 74 61 74 75 73 22 3e 3c 62 #tls::status"><b
07e0: 3e 74 6c 73 3a 3a 73 74 61 74 75 73 3c 2f 62 3e >tls::status</b>
07f0: 20 3c 69 3e 3f 2d 6c 6f 63 61 6c 3f 20 63 68 61 <i>?-local? cha
0800: 6e 6e 65 6c 3c 2f 69 3e 3c 2f 61 3e 3c 62 72 3e nnel</i></a><br>
0810: 0a 3c 61 20 68 72 65 66 3d 22 23 74 6c 73 3a 3a .<a href="#tls::
0820: 63 6f 6e 6e 65 63 74 69 6f 6e 22 3e 3c 62 3e 74 connection"><b>t
0830: 6c 73 3a 3a 63 6f 6e 6e 65 63 74 69 6f 6e 3c 2f ls::connection</
0840: 62 3e 20 3c 69 3e 63 68 61 6e 6e 65 6c 3c 2f 69 b> <i>channel</i
0850: 3e 3c 2f 61 3e 3c 62 72 3e 0a 3c 61 20 68 72 65 ></a><br>.<a hre
0860: 66 3d 22 23 74 6c 73 3a 3a 68 61 6e 64 73 68 61 f="#tls::handsha
0870: 6b 65 22 3e 3c 62 3e 74 6c 73 3a 3a 68 61 6e 64 ke"><b>tls::hand
0880: 73 68 61 6b 65 3c 2f 62 3e 20 3c 69 3e 63 68 61 shake</b> <i>cha
0890: 6e 6e 65 6c 3c 2f 69 3e 3c 2f 61 3e 3c 62 72 3e nnel</i></a><br>
08a0: 0a 3c 61 20 68 72 65 66 3d 22 23 74 6c 73 3a 3a .<a href="#tls::
08b0: 69 6d 70 6f 72 74 22 3e 3c 62 3e 74 6c 73 3a 3a import"><b>tls::
08c0: 69 6d 70 6f 72 74 3c 2f 62 3e 20 3c 69 3e 63 68 import</b> <i>ch
08d0: 61 6e 6e 65 6c 20 3f 6f 70 74 69 6f 6e 73 3f 3c annel ?options?<
08e0: 2f 69 3e 3c 2f 61 3e 3c 62 72 3e 0a 3c 61 20 68 /i></a><br>.<a h
08f0: 72 65 66 3d 22 23 74 6c 73 3a 3a 75 6e 69 6d 70 ref="#tls::unimp
0900: 6f 72 74 22 3e 3c 62 3e 74 6c 73 3a 3a 75 6e 69 ort"><b>tls::uni
0910: 6d 70 6f 72 74 3c 2f 62 3e 20 3c 69 3e 63 68 61 mport</b> <i>cha
0920: 6e 6e 65 6c 3c 2f 69 3e 3c 2f 61 3e 3c 62 72 3e nnel</i></a><br>
0930: 0a 3c 62 72 3e 0a 3c 61 20 68 72 65 66 3d 22 23 .<br>.<a href="#
0940: 74 6c 73 3a 3a 63 69 70 68 65 72 73 22 3e 3c 62 tls::ciphers"><b
0950: 3e 74 6c 73 3a 3a 63 69 70 68 65 72 73 3c 2f 62 >tls::ciphers</b
0960: 3e 20 3c 69 3e 70 72 6f 74 6f 63 6f 6c 20 3f 76 > <i>protocol ?v
0970: 65 72 62 6f 73 65 3f 20 3f 73 75 70 70 6f 72 74 erbose? ?support
0980: 65 64 3f 3c 2f 69 3e 3c 2f 61 3e 3c 62 72 3e 0a ed?</i></a><br>.
0990: 3c 61 20 68 72 65 66 3d 22 23 74 6c 73 3a 3a 70 <a href="#tls::p
09a0: 72 6f 74 6f 63 6f 6c 73 22 3e 3c 62 3e 74 6c 73 rotocols"><b>tls
09b0: 3a 3a 70 72 6f 74 6f 63 6f 6c 73 3c 2f 62 3e 3c ::protocols</b><
09c0: 2f 61 3e 0a 3c 61 20 68 72 65 66 3d 22 23 74 6c /a>.<a href="#tl
09d0: 73 3a 3a 76 65 72 73 69 6f 6e 22 3e 3c 62 3e 74 s::version"><b>t
09e0: 6c 73 3a 3a 76 65 72 73 69 6f 6e 3c 2f 62 3e 3c ls::version</b><
09f0: 2f 61 3e 0a 3c 2f 70 3e 0a 0a 3c 68 33 3e 3c 61 /a>.</p>..<h3><a
0a00: 20 6e 61 6d 65 3d 22 44 45 53 43 52 49 50 54 49 name="DESCRIPTI
0a10: 4f 4e 22 3e 44 45 53 43 52 49 50 54 49 4f 4e 3c ON">DESCRIPTION<
0a20: 2f 61 3e 3c 2f 68 33 3e 0a 0a 3c 70 3e 54 68 69 /a></h3>..<p>Thi
0a30: 73 20 65 78 74 65 6e 73 69 6f 6e 20 70 72 6f 76 s extension prov
0a40: 69 64 65 73 20 61 20 67 65 6e 65 72 69 63 20 62 ides a generic b
0a50: 69 6e 64 69 6e 67 20 74 6f 20 3c 61 0a 68 72 65 inding to <a.hre
0a60: 66 3d 22 68 74 74 70 3a 2f 2f 77 77 77 2e 6f 70 f="http://www.op
0a70: 65 6e 73 73 6c 2e 6f 72 67 2f 22 3e 4f 70 65 6e enssl.org/">Open
0a80: 53 53 4c 3c 2f 61 3e 2c 20 75 74 69 6c 69 7a 69 SSL</a>, utilizi
0a90: 6e 67 20 74 68 65 0a 3c 73 74 72 6f 6e 67 3e 54 ng the.<strong>T
0aa0: 63 6c 5f 53 74 61 63 6b 43 68 61 6e 6e 65 6c 3c cl_StackChannel<
0ab0: 2f 73 74 72 6f 6e 67 3e 0a 41 50 49 20 66 6f 72 /strong>.API for
0ac0: 20 54 63 6c 20 38 2e 34 20 61 6e 64 20 68 69 67 Tcl 8.4 and hig
0ad0: 68 65 72 2e 20 54 68 65 20 73 6f 63 6b 65 74 73 her. The sockets
0ae0: 20 62 65 68 61 76 65 20 65 78 61 63 74 6c 79 20 behave exactly
0af0: 74 68 65 20 73 61 6d 65 0a 61 73 20 63 68 61 6e the same.as chan
0b00: 6e 65 6c 73 20 63 72 65 61 74 65 64 20 75 73 69 nels created usi
0b10: 6e 67 20 54 63 6c 27 73 20 62 75 69 6c 74 2d 69 ng Tcl's built-i
0b20: 6e 20 3c 73 74 72 6f 6e 67 3e 73 6f 63 6b 65 74 n <strong>socket
0b30: 3c 2f 73 74 72 6f 6e 67 3e 0a 63 6f 6d 6d 61 6e </strong>.comman
0b40: 64 20 77 69 74 68 20 61 64 64 69 74 69 6f 6e 61 d with additiona
0b50: 6c 20 6f 70 74 69 6f 6e 73 20 66 6f 72 20 63 6f l options for co
0b60: 6e 74 72 6f 6c 6c 69 6e 67 20 74 68 65 20 53 53 ntrolling the SS
0b70: 4c 20 73 65 73 73 69 6f 6e 2e 0a 3c 2f 70 3e 0a L session..</p>.
0b80: 0a 3c 68 33 3e 3c 61 20 6e 61 6d 65 3d 22 43 4f .<h3><a name="CO
0b90: 4d 4d 41 4e 44 53 22 3e 43 4f 4d 4d 41 4e 44 53 MMANDS">COMMANDS
0ba0: 3c 2f 61 3e 3c 2f 68 33 3e 0a 0a 3c 70 3e 54 79 </a></h3>..<p>Ty
0bb0: 70 69 63 61 6c 6c 79 20 6f 6e 65 20 77 6f 75 6c pically one woul
0bc0: 64 20 75 73 65 20 74 68 65 20 3c 73 74 72 6f 6e d use the <stron
0bd0: 67 3e 74 6c 73 3a 3a 73 6f 63 6b 65 74 20 3c 2f g>tls::socket </
0be0: 73 74 72 6f 6e 67 3e 63 6f 6d 6d 61 6e 64 0a 77 strong>command.w
0bf0: 68 69 63 68 20 70 72 6f 76 69 64 65 73 20 63 6f hich provides co
0c00: 6d 70 61 74 69 62 69 6c 69 74 79 20 77 69 74 68 mpatibility with
0c10: 20 74 68 65 20 6e 61 74 69 76 65 20 54 63 6c 20 the native Tcl
0c20: 3c 73 74 72 6f 6e 67 3e 73 6f 63 6b 65 74 3c 2f <strong>socket</
0c30: 73 74 72 6f 6e 67 3e 0a 63 6f 6d 6d 61 6e 64 2e strong>.command.
0c40: 20 49 6e 20 73 75 63 68 20 63 61 73 65 73 20 3c In such cases <
0c50: 73 74 72 6f 6e 67 3e 74 6c 73 3a 3a 69 6d 70 6f strong>tls::impo
0c60: 72 74 3c 2f 73 74 72 6f 6e 67 3e 20 73 68 6f 75 rt</strong> shou
0c70: 6c 64 20 6e 6f 74 20 62 65 0a 75 73 65 64 20 64 ld not be.used d
0c80: 69 72 65 63 74 6c 79 2e 3c 2f 70 3e 0a 0a 3c 64 irectly.</p>..<d
0c90: 6c 3e 0a 20 20 20 20 3c 64 74 3e 3c 61 20 6e 61 l>. <dt><a na
0ca0: 6d 65 3d 22 74 6c 73 3a 3a 69 6e 69 74 22 3e 3c me="tls::init"><
0cb0: 62 3e 74 6c 73 3a 3a 69 6e 69 74 20 3c 2f 62 3e b>tls::init </b>
0cc0: 3c 69 3e 3f 6f 70 74 69 6f 6e 73 3f 3c 2f 69 3e <i>?options?</i>
0cd0: 3c 2f 61 3e 3c 2f 64 74 3e 0a 20 20 20 20 3c 64 </a></dt>. <d
0ce0: 64 3e 4f 70 74 69 6f 6e 61 6c 20 66 75 6e 63 74 d>Optional funct
0cf0: 69 6f 6e 20 74 6f 20 73 65 74 20 74 68 65 20 64 ion to set the d
0d00: 65 66 61 75 6c 74 20 6f 70 74 69 6f 6e 73 20 75 efault options u
0d10: 73 65 64 20 62 79 0a 09 3c 73 74 72 6f 6e 67 3e sed by..<strong>
0d20: 74 6c 73 3a 3a 73 6f 63 6b 65 74 3c 2f 73 74 72 tls::socket</str
0d30: 6f 6e 67 3e 2e 20 49 66 20 79 6f 75 20 63 61 6c ong>. If you cal
0d40: 6c 20 3c 73 74 72 6f 6e 67 3e 74 6c 73 3a 3a 69 l <strong>tls::i
0d50: 6d 70 6f 72 74 3c 2f 73 74 72 6f 6e 67 3e 0a 09 mport</strong>..
0d60: 64 69 72 65 63 74 6c 79 20 74 68 69 73 20 72 6f directly this ro
0d70: 75 74 69 6e 65 20 68 61 73 20 6e 6f 20 65 66 66 utine has no eff
0d80: 65 63 74 2e 20 41 6e 79 20 6f 66 20 74 68 65 20 ect. Any of the
0d90: 6f 70 74 69 6f 6e 73 0a 09 74 68 61 74 20 3c 73 options..that <s
0da0: 74 72 6f 6e 67 3e 74 6c 73 3a 3a 73 6f 63 6b 65 trong>tls::socke
0db0: 74 3c 2f 73 74 72 6f 6e 67 3e 20 61 63 63 65 70 t</strong> accep
0dc0: 74 73 20 63 61 6e 20 62 65 20 73 65 74 0a 09 75 ts can be set..u
0dd0: 73 69 6e 67 20 74 68 69 73 20 63 6f 6d 6d 61 6e sing this comman
0de0: 64 2c 20 74 68 6f 75 67 68 20 79 6f 75 20 73 68 d, though you sh
0df0: 6f 75 6c 64 20 6c 69 6d 69 74 20 79 6f 75 72 20 ould limit your
0e00: 6f 70 74 69 6f 6e 73 0a 09 74 6f 20 6f 6e 6c 79 options..to only
0e10: 20 54 4c 53 20 72 65 6c 61 74 65 64 20 6f 6e 65 TLS related one
0e20: 73 2e 3c 2f 64 64 3e 0a 20 20 20 20 3c 64 74 3e s.</dd>. <dt>
0e30: 26 6e 62 73 70 3b 3c 2f 64 74 3e 0a 20 20 20 20 </dt>.
0e40: 3c 64 74 3e 3c 61 20 6e 61 6d 65 3d 22 74 6c 73 <dt><a name="tls
0e50: 3a 3a 73 6f 63 6b 65 74 22 3e 3c 62 3e 74 6c 73 ::socket"><b>tls
0e60: 3a 3a 73 6f 63 6b 65 74 20 3c 2f 62 3e 3c 65 6d ::socket </b><em
0e70: 3e 3f 6f 70 74 69 6f 6e 73 3f 0a 09 68 6f 73 74 >?options?..host
0e80: 20 70 6f 72 74 3c 2f 65 6d 3e 3c 2f 61 3e 3c 2f port</em></a></
0e90: 64 74 3e 0a 20 20 20 20 3c 64 74 3e 3c 62 3e 74 dt>. <dt><b>t
0ea0: 6c 73 3a 3a 73 6f 63 6b 65 74 3c 2f 62 3e 3c 65 ls::socket</b><e
0eb0: 6d 3e 20 3f 2d 73 65 72 76 65 72 20 63 6f 6d 6d m> ?-server comm
0ec0: 61 6e 64 3f 20 3f 6f 70 74 69 6f 6e 73 3f 20 70 and? ?options? p
0ed0: 6f 72 74 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 20 20 ort</em></dt>.
0ee0: 20 20 3c 64 64 3e 54 68 69 73 20 69 73 20 61 20 <dd>This is a
0ef0: 68 65 6c 70 65 72 20 66 75 6e 63 74 69 6f 6e 20 helper function
0f00: 74 68 61 74 20 75 74 69 6c 69 7a 65 73 20 74 68 that utilizes th
0f10: 65 20 75 6e 64 65 72 6c 79 69 6e 67 0a 09 63 6f e underlying..co
0f20: 6d 6d 61 6e 64 73 20 28 3c 73 74 72 6f 6e 67 3e mmands (<strong>
0f30: 74 6c 73 3a 3a 69 6d 70 6f 72 74 3c 2f 73 74 72 tls::import</str
0f40: 6f 6e 67 3e 29 2e 20 49 74 20 62 65 68 61 76 65 ong>). It behave
0f50: 73 0a 09 65 78 61 63 74 6c 79 20 74 68 65 20 73 s..exactly the s
0f60: 61 6d 65 20 61 73 20 74 68 65 20 6e 61 74 69 76 ame as the nativ
0f70: 65 20 54 63 6c 20 3c 73 74 72 6f 6e 67 3e 73 6f e Tcl <strong>so
0f80: 63 6b 65 74 3c 2f 73 74 72 6f 6e 67 3e 0a 09 63 cket</strong>..c
0f90: 6f 6d 6d 61 6e 64 20 65 78 63 65 70 74 20 74 68 ommand except th
0fa0: 61 74 20 74 68 65 20 6f 70 74 69 6f 6e 73 20 63 at the options c
0fb0: 61 6e 20 69 6e 63 6c 75 64 65 20 61 6e 79 20 6f an include any o
0fc0: 66 20 74 68 65 0a 09 61 70 70 6c 69 63 61 62 6c f the..applicabl
0fd0: 65 20 3c 61 20 68 72 65 66 3d 22 23 74 6c 73 3a e <a href="#tls:
0fe0: 3a 69 6d 70 6f 72 74 22 3e 3c 73 74 72 6f 6e 67 :import"><strong
0ff0: 3e 74 6c 73 3a 69 6d 70 6f 72 74 3c 2f 73 74 72 >tls:import</str
1000: 6f 6e 67 3e 3c 2f 61 3e 0a 09 6f 70 74 69 6f 6e ong></a>..option
1010: 73 20 77 69 74 68 20 6f 6e 65 20 61 64 64 69 74 s with one addit
1020: 69 6f 6e 61 6c 20 6f 70 74 69 6f 6e 3a 0a 3c 62 ional option:.<b
1030: 6c 6f 63 6b 71 75 6f 74 65 3e 0a 20 20 20 20 3c lockquote>. <
1040: 64 6c 3e 0a 09 3c 64 74 3e 3c 73 74 72 6f 6e 67 dl>..<dt><strong
1050: 3e 2d 61 75 74 6f 73 65 72 76 65 72 6e 61 6d 65 >-autoservername
1060: 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 62 6f </strong> <em>bo
1070: 6f 6c 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 3c 64 ol</em></dt>..<d
1080: 64 3e 41 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 d>Automatically
1090: 73 65 6e 64 20 74 68 65 20 2d 73 65 72 76 65 72 send the -server
10a0: 6e 61 6d 65 20 61 73 20 74 68 65 20 3c 65 6d 3e name as the <em>
10b0: 68 6f 73 74 3c 2f 65 6d 3e 20 61 72 67 75 6d 65 host</em> argume
10c0: 6e 74 0a 09 20 20 20 20 28 64 65 66 61 75 6c 74 nt.. (default
10d0: 20 69 73 20 3c 65 6d 3e 66 61 6c 73 65 3c 2f 65 is <em>false</e
10e0: 6d 3e 29 3c 2f 64 64 3e 0a 20 20 20 20 3c 2f 64 m>)</dd>. </d
10f0: 6c 3e 0a 3c 2f 62 6c 6f 63 6b 71 75 6f 74 65 3e l>.</blockquote>
1100: 0a 0a 20 20 20 20 3c 64 74 3e 3c 61 20 6e 61 6d .. <dt><a nam
1110: 65 3d 22 74 6c 73 3a 3a 69 6d 70 6f 72 74 22 3e e="tls::import">
1120: 3c 62 3e 74 6c 73 3a 3a 69 6d 70 6f 72 74 20 3c <b>tls::import <
1130: 2f 62 3e 3c 69 3e 63 68 61 6e 6e 65 6c 0a 09 3f /b><i>channel..?
1140: 6f 70 74 69 6f 6e 73 3f 3c 2f 69 3e 3c 2f 61 3e options?</i></a>
1150: 3c 2f 64 74 3e 0a 20 20 20 20 3c 64 64 3e 53 53 </dt>. <dd>SS
1160: 4c 2d 65 6e 61 62 6c 65 20 61 20 72 65 67 75 6c L-enable a regul
1170: 61 72 20 54 63 6c 20 63 68 61 6e 6e 65 6c 20 2d ar Tcl channel -
1180: 20 69 74 20 6e 65 65 64 20 6e 6f 74 20 62 65 20 it need not be
1190: 61 0a 09 73 6f 63 6b 65 74 2c 20 62 75 74 20 6d a..socket, but m
11a0: 75 73 74 20 70 72 6f 76 69 64 65 20 62 69 2d 64 ust provide bi-d
11b0: 69 72 65 63 74 69 6f 6e 61 6c 20 66 6c 6f 77 2e irectional flow.
11c0: 20 41 6c 73 6f 0a 09 73 65 74 74 69 6e 67 20 73 Also..setting s
11d0: 65 73 73 69 6f 6e 20 70 61 72 61 6d 65 74 65 72 ession parameter
11e0: 73 20 66 6f 72 20 53 53 4c 20 68 61 6e 64 73 68 s for SSL handsh
11f0: 61 6b 65 2e 3c 2f 64 64 3e 0a 0a 3c 62 6c 6f 63 ake.</dd>..<bloc
1200: 6b 71 75 6f 74 65 3e 0a 20 20 20 20 3c 64 6c 3e kquote>. <dl>
1210: 0a 09 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 2d 61 ..<dt><strong>-a
1220: 6c 70 6e 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d lpn</strong> <em
1230: 3e 6c 69 73 74 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a >list</em></dt>.
1240: 09 3c 64 64 3e 4c 69 73 74 20 6f 66 20 70 72 6f .<dd>List of pro
1250: 74 6f 63 6f 6c 73 20 74 6f 20 6f 66 66 65 72 20 tocols to offer
1260: 64 75 72 69 6e 67 20 41 70 70 6c 69 63 61 74 69 during Applicati
1270: 6f 6e 2d 4c 61 79 65 72 0a 09 20 20 20 20 50 72 on-Layer.. Pr
1280: 6f 74 6f 63 6f 6c 20 4e 65 67 6f 74 69 61 74 69 otocol Negotiati
1290: 6f 6e 20 28 41 4c 50 4e 29 2e 20 46 6f 72 20 65 on (ALPN). For e
12a0: 78 61 6d 70 6c 65 3a 20 3c 65 6d 3e 68 32 3c 2f xample: <em>h2</
12b0: 65 6d 3e 20 61 6e 64 0a 09 20 20 20 20 3c 65 6d em> and.. <em
12c0: 3e 68 74 74 70 2f 31 2e 31 3c 2f 65 6d 3e 2c 20 >http/1.1</em>,
12d0: 62 75 74 20 6e 6f 74 20 3c 65 6d 3e 68 33 3c 2f but not <em>h3</
12e0: 65 6d 3e 20 6f 72 20 3c 65 6d 3e 71 75 69 63 3c em> or <em>quic<
12f0: 2f 65 6d 3e 2e 3c 2f 64 64 3e 0a 09 3c 64 74 3e /em>.</dd>..<dt>
1300: 3c 73 74 72 6f 6e 67 3e 2d 63 61 64 69 72 3c 2f <strong>-cadir</
1310: 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 64 69 72 3c strong> <em>dir<
1320: 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 3c 64 64 3e 53 /em></dt>..<dd>S
1330: 65 74 20 74 68 65 20 43 41 20 63 65 72 74 69 66 et the CA certif
1340: 69 63 61 74 65 73 20 70 61 74 68 2e 20 54 68 65 icates path. The
1350: 20 64 65 66 61 75 6c 74 20 64 69 72 65 63 74 6f default directo
1360: 72 79 20 69 73 20 70 6c 61 74 66 6f 72 6d 0a 09 ry is platform..
1370: 20 20 20 20 73 70 65 63 69 66 69 63 20 61 6e 64 specific and
1380: 20 63 61 6e 20 62 65 20 73 65 74 20 61 74 20 63 can be set at c
1390: 6f 6d 70 69 6c 65 20 74 69 6d 65 2e 20 54 68 69 ompile time. Thi
13a0: 73 20 63 61 6e 20 62 65 20 6f 76 65 72 72 69 64 s can be overrid
13b0: 64 65 6e 0a 09 20 20 20 20 76 69 61 20 74 68 65 den.. via the
13c0: 20 3c 62 3e 53 53 4c 5f 43 45 52 54 5f 44 49 52 <b>SSL_CERT_DIR
13d0: 3c 2f 62 3e 20 65 6e 76 69 72 6f 6e 6d 65 6e 74 </b> environment
13e0: 20 76 61 72 69 61 62 6c 65 2e 3c 2f 64 64 3e 0a variable.</dd>.
13f0: 09 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 2d 63 61 .<dt><strong>-ca
1400: 66 69 6c 65 20 3c 2f 73 74 72 6f 6e 67 3e 3c 65 file </strong><e
1410: 6d 3e 66 69 6c 65 6e 61 6d 65 3c 2f 65 6d 3e 3c m>filename</em><
1420: 2f 64 74 3e 0a 09 3c 64 64 3e 53 65 74 20 74 68 /dt>..<dd>Set th
1430: 65 20 63 65 72 74 69 66 69 63 61 74 65 20 61 75 e certificate au
1440: 74 68 6f 72 69 74 79 20 28 43 41 29 20 63 65 72 thority (CA) cer
1450: 74 69 66 69 63 61 74 65 73 20 66 69 6c 65 2e 20 tificates file.
1460: 54 68 65 20 64 65 66 61 75 6c 74 0a 09 20 20 20 The default..
1470: 20 69 73 20 74 68 65 20 63 65 72 74 2e 70 65 6d is the cert.pem
1480: 20 66 69 6c 65 20 69 6e 20 74 68 65 20 4f 70 73 file in the Ops
1490: 6e 53 53 4c 20 64 69 72 65 63 74 6f 72 79 2e 20 nSSL directory.
14a0: 54 68 69 73 20 63 61 6e 20 61 6c 73 6f 20 62 65 This can also be
14b0: 0a 09 20 20 20 20 6f 76 65 72 72 69 64 64 65 6e .. overridden
14c0: 20 76 69 61 20 74 68 65 20 3c 62 3e 53 53 4c 5f via the <b>SSL_
14d0: 43 45 52 54 5f 46 49 4c 45 3c 2f 62 3e 20 65 6e CERT_FILE</b> en
14e0: 76 69 72 6f 6e 6d 65 6e 74 20 76 61 72 69 61 62 vironment variab
14f0: 6c 65 2e 3c 2f 64 64 3e 0a 09 3c 64 74 3e 3c 73 le.</dd>..<dt><s
1500: 74 72 6f 6e 67 3e 2d 63 65 72 74 66 69 6c 65 3c trong>-certfile<
1510: 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 66 69 6c /strong> <em>fil
1520: 65 6e 61 6d 65 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a ename</em></dt>.
1530: 09 3c 64 64 3e 53 70 65 63 69 66 79 20 74 68 65 .<dd>Specify the
1540: 20 66 69 6c 65 6e 61 6d 65 20 77 69 74 68 20 74 filename with t
1550: 68 65 20 63 65 72 74 69 66 69 63 61 74 65 20 74 he certificate t
1560: 6f 20 75 73 65 2e 3c 2f 64 64 3e 0a 09 3c 64 74 o use.</dd>..<dt
1570: 3e 3c 73 74 72 6f 6e 67 3e 2d 63 65 72 74 3c 2f ><strong>-cert</
1580: 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 66 69 6c 65 strong> <em>file
1590: 6e 61 6d 65 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 name</em></dt>..
15a0: 3c 64 64 3e 53 70 65 63 69 66 79 20 74 68 65 20 <dd>Specify the
15b0: 63 6f 6e 74 65 6e 74 73 20 6f 66 20 61 20 63 65 contents of a ce
15c0: 72 74 69 66 69 63 61 74 65 20 74 6f 20 75 73 65 rtificate to use
15d0: 2c 20 61 73 20 61 20 44 45 52 0a 09 20 20 20 20 , as a DER..
15e0: 65 6e 63 6f 64 65 64 20 62 69 6e 61 72 79 20 76 encoded binary v
15f0: 61 6c 75 65 20 28 58 2e 35 30 39 20 44 45 52 29 alue (X.509 DER)
1600: 2e 3c 2f 64 64 3e 0a 09 3c 64 74 3e 3c 73 74 72 .</dd>..<dt><str
1610: 6f 6e 67 3e 2d 63 69 70 68 65 72 3c 2f 73 74 72 ong>-cipher</str
1620: 6f 6e 67 3e 20 3c 65 6d 3e 73 74 72 69 6e 67 3c ong> <em>string<
1630: 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 3c 64 64 3e 4c /em></dt>..<dd>L
1640: 69 73 74 20 6f 66 20 63 69 70 68 65 72 73 20 74 ist of ciphers t
1650: 6f 20 75 73 65 2e 20 53 74 72 69 6e 67 20 69 73 o use. String is
1660: 20 61 20 63 6f 6c 6f 6e 20 28 22 3a 22 29 20 73 a colon (":") s
1670: 65 70 61 72 61 74 65 64 20 6c 69 73 74 0a 09 20 eparated list..
1680: 20 20 20 6f 66 20 63 69 70 68 65 72 73 20 6f 72 of ciphers or
1690: 20 63 69 70 68 65 72 20 73 75 69 74 65 73 2e 20 cipher suites.
16a0: 43 69 70 68 65 72 20 73 75 69 74 65 73 20 63 61 Cipher suites ca
16b0: 6e 20 62 65 20 63 6f 6d 62 69 6e 65 64 0a 09 20 n be combined..
16c0: 20 20 20 75 73 69 6e 67 20 74 68 65 20 3c 62 3e using the <b>
16d0: 2b 3c 2f 62 3e 20 63 68 61 72 61 63 74 65 72 2e +</b> character.
16e0: 20 50 72 65 66 69 78 65 73 20 63 61 6e 20 62 65 Prefixes can be
16f0: 20 75 73 65 64 20 74 6f 20 70 65 72 6d 61 6e 65 used to permane
1700: 6e 74 6c 79 0a 09 20 20 20 20 72 65 6d 6f 76 65 ntly.. remove
1710: 20 28 22 21 22 29 2c 20 64 65 6c 65 74 65 20 28 ("!"), delete (
1720: 22 2d 22 29 2c 20 6f 72 20 6d 6f 76 65 20 61 20 "-"), or move a
1730: 63 79 70 68 65 72 20 74 6f 20 74 68 65 20 65 6e cypher to the en
1740: 64 20 6f 66 0a 09 20 20 20 20 74 68 65 20 6c 69 d of.. the li
1750: 73 74 20 28 22 2b 22 29 2e 20 4b 65 79 77 6f 72 st ("+"). Keywor
1760: 64 73 20 3c 62 3e 40 53 54 52 45 4e 47 54 48 3c ds <b>@STRENGTH<
1770: 2f 62 3e 20 28 73 6f 72 74 20 62 79 20 61 6c 67 /b> (sort by alg
1780: 6f 72 69 74 68 6d 0a 09 20 20 20 20 6b 65 79 20 orithm.. key
1790: 6c 65 6e 67 74 68 29 2c 20 3c 62 3e 40 53 45 43 length), <b>@SEC
17a0: 4c 45 56 45 4c 3d 3c 2f 62 3e 3c 69 3e 6e 3c 2f LEVEL=</b><i>n</
17b0: 69 3e 20 28 73 65 74 20 73 65 63 75 72 69 74 79 i> (set security
17c0: 20 6c 65 76 65 6c 20 74 6f 0a 09 20 20 20 20 6e level to.. n
17d0: 29 2c 20 61 6e 64 20 3c 62 3e 44 45 46 41 55 4c ), and <b>DEFAUL
17e0: 54 3c 2f 62 3e 20 28 75 73 65 20 64 65 66 61 75 T</b> (use defau
17f0: 6c 74 20 63 69 70 68 65 72 20 6c 69 73 74 2c 20 lt cipher list,
1800: 61 74 20 73 74 61 72 74 20 6f 6e 6c 79 29 0a 09 at start only)..
1810: 20 20 20 20 63 61 6e 20 61 6c 73 6f 20 62 65 20 can also be
1820: 73 70 65 63 69 66 69 65 64 2e 20 53 65 65 20 4f specified. See O
1830: 70 65 6e 53 53 4c 20 64 6f 63 75 6d 65 6e 74 61 penSSL documenta
1840: 74 69 6f 6e 20 66 6f 72 20 74 68 65 20 66 75 6c tion for the ful
1850: 6c 0a 09 20 20 20 20 6c 69 73 74 20 6f 66 20 76 l.. list of v
1860: 61 6c 69 64 20 76 61 6c 75 65 73 2e 20 28 54 4c alid values. (TL
1870: 53 20 31 2e 32 20 61 6e 64 20 65 61 72 6c 69 65 S 1.2 and earlie
1880: 72 20 6f 6e 6c 79 29 3c 2f 64 64 3e 0a 09 3c 64 r only)</dd>..<d
1890: 74 3e 3c 73 74 72 6f 6e 67 3e 2d 63 69 70 68 65 t><strong>-ciphe
18a0: 72 73 75 69 74 65 73 3c 2f 73 74 72 6f 6e 67 3e rsuites</strong>
18b0: 20 3c 65 6d 3e 73 74 72 69 6e 67 3c 2f 65 6d 3e <em>string</em>
18c0: 3c 2f 64 74 3e 0a 09 3c 64 64 3e 4c 69 73 74 20 </dt>..<dd>List
18d0: 6f 66 20 63 69 70 68 65 72 20 73 75 69 74 65 73 of cipher suites
18e0: 20 74 6f 20 75 73 65 2e 20 53 74 72 69 6e 67 20 to use. String
18f0: 69 73 20 61 20 63 6f 6c 6f 6e 20 28 22 3a 22 29 is a colon (":")
1900: 0a 09 20 20 20 20 73 65 70 61 72 61 74 65 64 20 .. separated
1910: 6c 69 73 74 20 6f 66 20 63 69 70 68 65 72 20 73 list of cipher s
1920: 75 69 74 65 20 6e 61 6d 65 73 2e 20 28 54 4c 53 uite names. (TLS
1930: 20 31 2e 33 20 6f 6e 6c 79 29 3c 2f 64 64 3e 0a 1.3 only)</dd>.
1940: 09 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 2d 63 6f .<dt><strong>-co
1950: 6d 6d 61 6e 64 3c 2f 73 74 72 6f 6e 67 3e 20 3c mmand</strong> <
1960: 65 6d 3e 63 61 6c 6c 62 61 63 6b 3c 2f 65 6d 3e em>callback</em>
1970: 3c 2f 64 74 3e 0a 09 3c 64 64 3e 43 61 6c 6c 62 </dt>..<dd>Callb
1980: 61 63 6b 20 74 6f 20 69 6e 76 6f 6b 65 20 61 74 ack to invoke at
1990: 20 73 65 76 65 72 61 6c 20 70 6f 69 6e 74 73 20 several points
19a0: 64 75 72 69 6e 67 20 74 68 65 20 68 61 6e 64 73 during the hands
19b0: 68 61 6b 65 2e 0a 09 20 20 20 20 54 68 69 73 20 hake... This
19c0: 69 73 20 75 73 65 64 20 74 6f 20 70 61 73 73 20 is used to pass
19d0: 65 72 72 6f 72 73 20 61 6e 64 20 74 72 61 63 69 errors and traci
19e0: 6e 67 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 2c 20 ng information,
19f0: 61 6e 64 0a 09 20 20 20 20 69 74 20 63 61 6e 20 and.. it can
1a00: 61 6c 6c 6f 77 20 54 63 6c 20 73 63 72 69 70 74 allow Tcl script
1a10: 73 20 74 6f 20 70 65 72 66 6f 72 6d 20 74 68 65 s to perform the
1a20: 69 72 20 6f 77 6e 20 63 65 72 74 69 66 69 63 61 ir own certifica
1a30: 74 65 0a 09 20 20 20 20 76 61 6c 69 64 61 74 69 te.. validati
1a40: 6f 6e 20 69 6e 20 70 6c 61 63 65 20 6f 66 20 74 on in place of t
1a50: 68 65 20 64 65 66 61 75 6c 74 20 76 61 6c 69 64 he default valid
1a60: 61 74 69 6f 6e 20 70 72 6f 76 69 64 65 64 20 62 ation provided b
1a70: 79 0a 09 20 20 20 20 4f 70 65 6e 53 53 4c 2e 20 y.. OpenSSL.
1a80: 53 65 65 20 3c 61 20 68 72 65 66 3d 22 23 43 41 See <a href="#CA
1a90: 4c 4c 42 41 43 4b 20 4f 50 54 49 4f 4e 53 22 3e LLBACK OPTIONS">
1aa0: 43 41 4c 4c 42 41 43 4b 20 4f 50 54 49 4f 4e 53 CALLBACK OPTIONS
1ab0: 3c 2f 61 3e 0a 09 20 20 20 20 66 6f 72 20 66 75 </a>.. for fu
1ac0: 72 74 68 65 72 20 64 69 73 63 75 73 73 69 6f 6e rther discussion
1ad0: 2e 3c 2f 64 64 3e 0a 09 3c 64 74 3e 3c 73 74 72 .</dd>..<dt><str
1ae0: 6f 6e 67 3e 2d 64 68 70 61 72 61 6d 73 20 3c 2f ong>-dhparams </
1af0: 73 74 72 6f 6e 67 3e 3c 65 6d 3e 66 69 6c 65 6e strong><em>filen
1b00: 61 6d 65 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 3c ame</em></dt>..<
1b10: 64 64 3e 53 70 65 63 69 66 79 20 74 68 65 20 44 dd>Specify the D
1b20: 69 66 66 69 65 2d 48 65 6c 6c 6d 61 6e 20 70 61 iffie-Hellman pa
1b30: 72 61 6d 65 74 65 72 73 20 66 69 6c 65 2e 3c 2f rameters file.</
1b40: 64 64 3e 0a 09 3c 64 74 3e 3c 73 74 72 6f 6e 67 dd>..<dt><strong
1b50: 3e 2d 6b 65 79 66 69 6c 65 3c 2f 73 74 72 6f 6e >-keyfile</stron
1b60: 67 3e 20 3c 65 6d 3e 66 69 6c 65 6e 61 6d 65 3c g> <em>filename<
1b70: 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 3c 64 64 3e 53 /em></dt>..<dd>S
1b80: 70 65 63 69 66 79 20 74 68 65 20 70 72 69 76 61 pecify the priva
1b90: 74 65 20 6b 65 79 20 66 69 6c 65 2e 20 28 64 65 te key file. (de
1ba0: 66 61 75 6c 74 20 69 73 0a 09 20 20 20 20 76 61 fault is.. va
1bb0: 6c 75 65 20 6f 66 20 2d 63 65 72 74 66 69 6c 65 lue of -certfile
1bc0: 29 3c 2f 64 64 3e 0a 09 3c 64 74 3e 3c 73 74 72 )</dd>..<dt><str
1bd0: 6f 6e 67 3e 2d 6b 65 79 3c 2f 73 74 72 6f 6e 67 ong>-key</strong
1be0: 3e 20 3c 65 6d 3e 66 69 6c 65 6e 61 6d 65 3c 2f > <em>filename</
1bf0: 65 6d 3e 3c 2f 64 74 3e 0a 09 3c 64 64 3e 53 70 em></dt>..<dd>Sp
1c00: 65 63 69 66 79 20 74 68 65 20 70 72 69 76 61 74 ecify the privat
1c10: 65 20 6b 65 79 20 74 6f 20 75 73 65 20 61 73 20 e key to use as
1c20: 61 20 44 45 52 20 65 6e 63 6f 64 65 64 20 76 61 a DER encoded va
1c30: 6c 75 65 20 28 50 4b 43 53 23 31 20 44 45 52 29 lue (PKCS#1 DER)
1c40: 3c 2f 64 64 3e 0a 09 3c 64 74 3e 3c 73 74 72 6f </dd>..<dt><stro
1c50: 6e 67 3e 2d 6d 6f 64 65 6c 3c 2f 73 74 72 6f 6e ng>-model</stron
1c60: 67 3e 20 3c 65 6d 3e 63 68 61 6e 6e 65 6c 3c 2f g> <em>channel</
1c70: 65 6d 3e 3c 2f 64 74 3e 0a 09 3c 64 64 3e 46 6f em></dt>..<dd>Fo
1c80: 72 63 65 20 74 68 69 73 20 63 68 61 6e 6e 65 6c rce this channel
1c90: 20 74 6f 20 73 68 61 72 65 20 74 68 65 20 73 61 to share the sa
1ca0: 6d 65 20 3c 65 6d 3e 3c 73 74 72 6f 6e 67 3e 53 me <em><strong>S
1cb0: 53 4c 5f 43 54 58 3c 2f 73 74 72 6f 6e 67 3e 3c SL_CTX</strong><
1cc0: 2f 65 6d 3e 0a 09 20 20 20 20 73 74 72 75 63 74 /em>.. struct
1cd0: 75 72 65 20 61 73 20 74 68 65 20 73 70 65 63 69 ure as the speci
1ce0: 66 69 65 64 20 3c 65 6d 3e 63 68 61 6e 6e 65 6c fied <em>channel
1cf0: 3c 2f 65 6d 3e 2c 20 61 6e 64 0a 09 20 20 20 20 </em>, and..
1d00: 74 68 65 72 65 66 6f 72 65 20 73 68 61 72 65 20 therefore share
1d10: 63 61 6c 6c 62 61 63 6b 73 20 65 74 63 2e 3c 2f callbacks etc.</
1d20: 64 64 3e 0a 09 3c 64 74 3e 3c 73 74 72 6f 6e 67 dd>..<dt><strong
1d30: 3e 2d 70 61 73 73 77 6f 72 64 3c 2f 73 74 72 6f >-password</stro
1d40: 6e 67 3e 20 3c 65 6d 3e 63 61 6c 6c 62 61 63 6b ng> <em>callback
1d50: 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 3c 64 64 3e </em></dt>..<dd>
1d60: 43 61 6c 6c 62 61 63 6b 20 74 6f 20 69 6e 76 6f Callback to invo
1d70: 6b 65 20 77 68 65 6e 20 4f 70 65 6e 53 53 4c 20 ke when OpenSSL
1d80: 6e 65 65 64 73 20 74 6f 20 6f 62 74 61 69 6e 20 needs to obtain
1d90: 61 20 70 61 73 73 77 6f 72 64 2c 0a 09 20 20 20 a password,..
1da0: 20 74 79 70 69 63 61 6c 6c 79 20 74 6f 20 75 6e typically to un
1db0: 6c 6f 63 6b 20 74 68 65 20 70 72 69 76 61 74 65 lock the private
1dc0: 20 6b 65 79 20 6f 66 20 61 20 63 65 72 74 69 66 key of a certif
1dd0: 69 63 61 74 65 2e 20 54 68 65 0a 09 20 20 20 20 icate. The..
1de0: 63 61 6c 6c 62 61 63 6b 20 73 68 6f 75 6c 64 20 callback should
1df0: 72 65 74 75 72 6e 20 61 20 73 74 72 69 6e 67 20 return a string
1e00: 77 68 69 63 68 20 72 65 70 72 65 73 65 6e 74 73 which represents
1e10: 20 74 68 65 20 70 61 73 73 77 6f 72 64 0a 09 20 the password..
1e20: 20 20 20 74 6f 20 62 65 20 75 73 65 64 2e 20 53 to be used. S
1e30: 65 65 20 3c 61 20 68 72 65 66 3d 22 23 43 41 4c ee <a href="#CAL
1e40: 4c 42 41 43 4b 20 4f 50 54 49 4f 4e 53 22 3e 43 LBACK OPTIONS">C
1e50: 41 4c 4c 42 41 43 4b 20 4f 50 54 49 4f 4e 53 3c ALLBACK OPTIONS<
1e60: 2f 61 3e 0a 09 20 20 20 20 66 6f 72 20 66 75 72 /a>.. for fur
1e70: 74 68 65 72 20 64 69 73 63 75 73 73 69 6f 6e 2e ther discussion.
1e80: 3c 2f 64 64 3e 0a 09 3c 64 74 3e 3c 73 74 72 6f </dd>..<dt><stro
1e90: 6e 67 3e 2d 70 6f 73 74 5f 68 61 6e 64 73 68 61 ng>-post_handsha
1ea0: 6b 65 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e ke</strong> <em>
1eb0: 62 6f 6f 6c 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 bool</em></dt>..
1ec0: 3c 64 64 3e 41 6c 6c 6f 77 20 70 6f 73 74 2d 68 <dd>Allow post-h
1ed0: 61 6e 64 73 68 61 6b 65 20 74 69 63 6b 65 74 20 andshake ticket
1ee0: 75 70 64 61 74 65 73 2e 3c 2f 64 64 3e 0a 09 3c updates.</dd>..<
1ef0: 64 74 3e 3c 73 74 72 6f 6e 67 3e 2d 72 65 71 75 dt><strong>-requ
1f00: 65 73 74 20 3c 2f 73 74 72 6f 6e 67 3e 3c 65 6d est </strong><em
1f10: 3e 62 6f 6f 6c 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a >bool</em></dt>.
1f20: 09 3c 64 64 3e 52 65 71 75 65 73 74 20 61 20 63 .<dd>Request a c
1f30: 65 72 74 69 66 69 63 61 74 65 20 66 72 6f 6d 20 ertificate from
1f40: 70 65 65 72 20 64 75 72 69 6e 67 20 53 53 4c 20 peer during SSL
1f50: 68 61 6e 64 73 68 61 6b 65 2e 0a 09 20 20 20 20 handshake...
1f60: 28 64 65 66 61 75 6c 74 20 69 73 20 3c 65 6d 3e (default is <em>
1f70: 74 72 75 65 3c 2f 65 6d 3e 29 3c 2f 64 64 3e 0a true</em>)</dd>.
1f80: 09 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 2d 72 65 .<dt><strong>-re
1f90: 71 75 69 72 65 3c 2f 73 74 72 6f 6e 67 3e 20 3c quire</strong> <
1fa0: 65 6d 3e 62 6f 6f 6c 3c 2f 65 6d 3e 3c 2f 64 74 em>bool</em></dt
1fb0: 3e 0a 09 3c 64 64 3e 52 65 71 75 69 72 65 20 61 >..<dd>Require a
1fc0: 20 76 61 6c 69 64 20 63 65 72 74 69 66 69 63 61 valid certifica
1fd0: 74 65 20 66 72 6f 6d 20 70 65 65 72 20 64 75 72 te from peer dur
1fe0: 69 6e 67 20 53 53 4c 20 68 61 6e 64 73 68 61 6b ing SSL handshak
1ff0: 65 2e 0a 09 20 20 20 20 49 66 20 74 68 69 73 20 e... If this
2000: 69 73 20 73 65 74 20 74 6f 20 74 72 75 65 2c 20 is set to true,
2010: 74 68 65 6e 20 3c 73 74 72 6f 6e 67 3e 2d 72 65 then <strong>-re
2020: 71 75 65 73 74 3c 2f 73 74 72 6f 6e 67 3e 20 6d quest</strong> m
2030: 75 73 74 0a 09 20 20 20 20 61 6c 73 6f 20 62 65 ust.. also be
2040: 20 73 65 74 20 74 6f 20 74 72 75 65 2e 20 28 64 set to true. (d
2050: 65 66 61 75 6c 74 20 69 73 20 3c 65 6d 3e 66 61 efault is <em>fa
2060: 6c 73 65 3c 2f 65 6d 3e 29 3c 2f 64 64 3e 0a 09 lse</em>)</dd>..
2070: 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 2d 73 65 63 <dt><strong>-sec
2080: 75 72 69 74 79 5f 6c 65 76 65 6c 3c 2f 73 74 72 urity_level</str
2090: 6f 6e 67 3e 20 3c 65 6d 3e 69 6e 74 65 67 65 72 ong> <em>integer
20a0: 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 3c 64 64 3e </em></dt>..<dd>
20b0: 53 65 74 20 73 65 63 75 72 69 74 79 20 6c 65 76 Set security lev
20c0: 65 6c 2e 20 4d 75 73 74 20 62 65 20 30 20 74 6f el. Must be 0 to
20d0: 20 35 2e 20 54 68 65 20 73 65 63 75 72 69 74 79 5. The security
20e0: 20 6c 65 76 65 6c 20 61 66 66 65 63 74 73 0a 09 level affects..
20f0: 20 20 20 20 63 69 70 68 65 72 20 73 75 69 74 65 cipher suite
2100: 20 65 6e 63 72 79 70 74 69 6f 6e 20 61 6c 67 6f encryption algo
2110: 72 69 74 68 6d 73 2c 20 73 75 70 70 6f 72 74 65 rithms, supporte
2120: 64 20 45 43 43 20 63 75 72 76 65 73 2c 0a 09 20 d ECC curves,..
2130: 20 20 20 73 75 70 70 6f 72 74 65 64 20 73 69 67 supported sig
2140: 6e 61 74 75 72 65 20 61 6c 67 6f 72 69 74 68 6d nature algorithm
2150: 73 2c 20 44 48 20 70 61 72 61 6d 65 74 65 72 20 s, DH parameter
2160: 73 69 7a 65 73 2c 20 63 65 72 74 69 66 69 63 61 sizes, certifica
2170: 74 65 0a 09 20 20 20 20 6b 65 79 20 73 69 7a 65 te.. key size
2180: 73 20 61 6e 64 20 73 69 67 6e 61 74 75 72 65 20 s and signature
2190: 61 6c 67 6f 72 69 74 68 6d 73 2e 20 54 68 65 20 algorithms. The
21a0: 64 65 66 61 75 6c 74 20 69 73 20 31 2e 0a 09 20 default is 1...
21b0: 20 20 20 4c 65 76 65 6c 20 33 20 61 6e 64 20 68 Level 3 and h
21c0: 69 67 68 65 72 20 64 69 73 61 62 6c 65 20 73 75 igher disable su
21d0: 70 70 6f 72 74 20 66 6f 72 20 73 65 73 73 69 6f pport for sessio
21e0: 6e 20 74 69 63 6b 65 74 73 20 61 6e 64 20 6f 6e n tickets and on
21f0: 6c 79 0a 09 20 20 20 20 61 63 63 65 70 74 20 63 ly.. accept c
2200: 69 70 68 65 72 20 73 75 69 74 65 73 20 74 68 61 ipher suites tha
2210: 74 20 70 72 6f 76 69 64 65 20 66 6f 72 77 61 72 t provide forwar
2220: 64 20 73 65 63 72 65 63 79 2e 3c 2f 64 64 3e 0a d secrecy.</dd>.
2230: 09 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 2d 73 65 .<dt><strong>-se
2240: 72 76 65 72 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 rver</strong> <e
2250: 6d 3e 62 6f 6f 6c 3c 2f 65 6d 3e 3c 2f 64 74 3e m>bool</em></dt>
2260: 0a 09 3c 64 64 3e 48 61 6e 64 73 68 61 6b 65 20 ..<dd>Handshake
2270: 61 73 20 73 65 72 76 65 72 20 69 66 20 74 72 75 as server if tru
2280: 65 2c 20 65 6c 73 65 20 68 61 6e 64 73 68 61 6b e, else handshak
2290: 65 20 61 73 0a 09 20 20 20 20 63 6c 69 65 6e 74 e as.. client
22a0: 2e 20 28 64 65 66 61 75 6c 74 20 69 73 20 3c 65 . (default is <e
22b0: 6d 3e 66 61 6c 73 65 3c 2f 65 6d 3e 29 3c 2f 64 m>false</em>)</d
22c0: 64 3e 0a 09 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e d>..<dt><strong>
22d0: 2d 73 65 72 76 65 72 6e 61 6d 65 3c 2f 73 74 72 -servername</str
22e0: 6f 6e 67 3e 20 3c 65 6d 3e 68 6f 73 74 3c 2f 65 ong> <em>host</e
22f0: 6d 3e 3c 2f 64 74 3e 0a 09 3c 64 64 3e 53 70 65 m></dt>..<dd>Spe
2300: 63 69 66 79 20 73 65 72 76 65 72 20 68 6f 73 74 cify server host
2310: 6e 61 6d 65 2e 20 4f 6e 6c 79 20 61 76 61 69 6c name. Only avail
2320: 61 62 6c 65 20 69 66 20 74 68 65 20 4f 70 65 6e able if the Open
2330: 53 53 4c 20 6c 69 62 72 61 72 79 0a 09 20 20 20 SSL library..
2340: 20 74 68 65 20 70 61 63 6b 61 67 65 20 69 73 20 the package is
2350: 6c 69 6e 6b 65 64 20 61 67 61 69 6e 73 74 20 73 linked against s
2360: 75 70 70 6f 72 74 73 20 74 68 65 20 54 4c 53 20 upports the TLS
2370: 68 6f 73 74 6e 61 6d 65 20 65 78 74 65 6e 73 69 hostname extensi
2380: 6f 6e 0a 09 20 20 20 20 66 6f 72 20 27 53 65 72 on.. for 'Ser
2390: 76 65 72 20 4e 61 6d 65 20 49 6e 64 69 63 61 74 ver Name Indicat
23a0: 69 6f 6e 27 20 28 53 4e 49 29 2e 20 55 73 65 20 ion' (SNI). Use
23b0: 74 6f 20 6e 61 6d 65 20 74 68 65 20 6c 6f 67 69 to name the logi
23c0: 63 61 6c 20 68 6f 73 74 0a 09 20 20 20 20 77 65 cal host.. we
23d0: 20 61 72 65 20 74 61 6c 6b 69 6e 67 20 74 6f 20 are talking to
23e0: 61 6e 64 20 65 78 70 65 63 74 69 6e 67 20 61 20 and expecting a
23f0: 63 65 72 74 69 66 69 63 61 74 65 20 66 6f 72 2e certificate for.
2400: 3c 2f 64 64 3e 0a 09 3c 64 74 3e 3c 73 74 72 6f </dd>..<dt><stro
2410: 6e 67 3e 2d 73 65 73 73 69 6f 6e 5f 69 64 3c 2f ng>-session_id</
2420: 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 73 74 72 69 strong> <em>stri
2430: 6e 67 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 3c 64 ng</em></dt>..<d
2440: 64 3e 53 65 73 73 69 6f 6e 20 69 64 20 74 6f 20 d>Session id to
2450: 72 65 73 75 6d 65 20 73 65 73 73 69 6f 6e 2e 3c resume session.<
2460: 2f 64 64 3e 0a 09 3c 64 74 3e 3c 73 74 72 6f 6e /dd>..<dt><stron
2470: 67 3e 2d 73 73 6c 32 3c 2f 73 74 72 6f 6e 67 3e g>-ssl2</strong>
2480: 20 3c 65 6d 3e 62 6f 6f 6c 3c 2f 65 6d 3e 3c 2f <em>bool</em></
2490: 64 74 3e 0a 09 3c 64 64 3e 45 6e 61 62 6c 65 20 dt>..<dd>Enable
24a0: 75 73 65 20 6f 66 20 53 53 4c 20 76 32 2e 20 28 use of SSL v2. (
24b0: 64 65 66 61 75 6c 74 20 69 73 20 3c 65 6d 3e 66 default is <em>f
24c0: 61 6c 73 65 3c 2f 65 6d 3e 29 3c 2f 64 64 3e 0a alse</em>)</dd>.
24d0: 09 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 2d 73 73 .<dt><strong>-ss
24e0: 6c 33 20 3c 2f 73 74 72 6f 6e 67 3e 3c 65 6d 3e l3 </strong><em>
24f0: 62 6f 6f 6c 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 bool</em></dt>..
2500: 3c 64 64 3e 45 6e 61 62 6c 65 20 75 73 65 20 6f <dd>Enable use o
2510: 66 20 53 53 4c 20 76 33 2e 20 28 64 65 66 61 75 f SSL v3. (defau
2520: 6c 74 20 69 73 20 3c 65 6d 3e 66 61 6c 73 65 3c lt is <em>false<
2530: 2f 65 6d 3e 29 3c 2f 64 64 3e 0a 09 3c 64 74 3e /em>)</dd>..<dt>
2540: 2d 3c 73 74 72 6f 6e 67 3e 74 6c 73 31 3c 2f 73 -<strong>tls1</s
2550: 74 72 6f 6e 67 3e 20 3c 65 6d 3e 62 6f 6f 6c 3c trong> <em>bool<
2560: 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 3c 64 64 3e 45 /em></dt>..<dd>E
2570: 6e 61 62 6c 65 20 75 73 65 20 6f 66 20 54 4c 53 nable use of TLS
2580: 20 76 31 2e 20 28 64 65 66 61 75 6c 74 20 69 73 v1. (default is
2590: 20 3c 65 6d 3e 74 72 75 65 3c 2f 65 6d 3e 29 3c <em>true</em>)<
25a0: 2f 64 64 3e 0a 09 3c 64 74 3e 2d 3c 73 74 72 6f /dd>..<dt>-<stro
25b0: 6e 67 3e 74 6c 73 31 2e 31 3c 2f 73 74 72 6f 6e ng>tls1.1</stron
25c0: 67 3e 20 3c 65 6d 3e 62 6f 6f 6c 3c 2f 65 6d 3e g> <em>bool</em>
25d0: 3c 2f 64 74 3e 0a 09 3c 64 64 3e 45 6e 61 62 6c </dt>..<dd>Enabl
25e0: 65 20 75 73 65 20 6f 66 20 54 4c 53 20 76 31 2e e use of TLS v1.
25f0: 31 20 28 64 65 66 61 75 6c 74 20 69 73 20 3c 65 1 (default is <e
2600: 6d 3e 74 72 75 65 3c 2f 65 6d 3e 29 3c 2f 64 64 m>true</em>)</dd
2610: 3e 0a 09 3c 64 74 3e 2d 3c 73 74 72 6f 6e 67 3e >..<dt>-<strong>
2620: 74 6c 73 31 2e 32 3c 2f 73 74 72 6f 6e 67 3e 20 tls1.2</strong>
2630: 3c 65 6d 3e 62 6f 6f 6c 3c 2f 65 6d 3e 3c 2f 64 <em>bool</em></d
2640: 74 3e 0a 09 3c 64 64 3e 45 6e 61 62 6c 65 20 75 t>..<dd>Enable u
2650: 73 65 20 6f 66 20 54 4c 53 20 76 31 2e 32 20 28 se of TLS v1.2 (
2660: 64 65 66 61 75 6c 74 20 69 73 20 3c 65 6d 3e 74 default is <em>t
2670: 72 75 65 3c 2f 65 6d 3e 29 3c 2f 64 64 3e 0a 09 rue</em>)</dd>..
2680: 3c 64 74 3e 2d 3c 73 74 72 6f 6e 67 3e 74 6c 73 <dt>-<strong>tls
2690: 31 2e 33 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 1.3</strong> <em
26a0: 3e 62 6f 6f 6c 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a >bool</em></dt>.
26b0: 09 3c 64 64 3e 45 6e 61 62 6c 65 20 75 73 65 20 .<dd>Enable use
26c0: 6f 66 20 54 4c 53 20 76 31 2e 33 20 28 64 65 66 of TLS v1.3 (def
26d0: 61 75 6c 74 20 69 73 20 3c 65 6d 3e 74 72 75 65 ault is <em>true
26e0: 3c 2f 65 6d 3e 29 3c 2f 64 64 3e 0a 09 3c 64 74 </em>)</dd>..<dt
26f0: 3e 3c 73 74 72 6f 6e 67 3e 2d 76 61 6c 69 64 61 ><strong>-valida
2700: 74 65 63 6f 6d 6d 61 6e 64 3c 2f 73 74 72 6f 6e tecommand</stron
2710: 67 3e 20 3c 65 6d 3e 63 61 6c 6c 62 61 63 6b 3c g> <em>callback<
2720: 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 3c 64 64 3e 43 /em></dt>..<dd>C
2730: 61 6c 6c 62 61 63 6b 20 74 6f 20 69 6e 76 6f 6b allback to invok
2740: 65 20 74 6f 20 76 65 72 69 66 79 20 6f 72 20 76 e to verify or v
2750: 61 6c 69 64 61 74 65 20 70 72 6f 74 6f 63 6f 6c alidate protocol
2760: 20 63 6f 6e 66 69 67 0a 09 20 20 20 20 70 61 72 config.. par
2770: 61 6d 65 74 65 72 73 20 64 75 72 69 6e 67 20 74 ameters during t
2780: 68 65 20 70 72 6f 74 6f 63 6f 6c 20 6e 65 67 6f he protocol nego
2790: 74 69 61 74 69 6f 6e 20 70 68 61 73 65 2e 20 53 tiation phase. S
27a0: 65 65 0a 09 20 20 20 20 3c 61 20 68 72 65 66 3d ee.. <a href=
27b0: 22 23 43 41 4c 4c 42 41 43 4b 20 4f 50 54 49 4f "#CALLBACK OPTIO
27c0: 4e 53 22 3e 43 41 4c 4c 42 41 43 4b 20 4f 50 54 NS">CALLBACK OPT
27d0: 49 4f 4e 53 3c 2f 61 3e 0a 09 20 20 20 20 66 6f IONS</a>.. fo
27e0: 72 20 66 75 72 74 68 65 72 20 64 69 73 63 75 73 r further discus
27f0: 73 69 6f 6e 2e 3c 2f 64 64 3e 0a 20 20 20 20 3c sion.</dd>. <
2800: 2f 64 6c 3e 0a 3c 2f 62 6c 6f 63 6b 71 75 6f 74 /dl>.</blockquot
2810: 65 3e 0a 0a 20 20 20 20 3c 64 74 3e 3c 61 20 6e e>.. <dt><a n
2820: 61 6d 65 3d 22 74 6c 73 3a 3a 75 6e 69 6d 70 6f ame="tls::unimpo
2830: 72 74 22 3e 3c 62 3e 74 6c 73 3a 3a 75 6e 69 6d rt"><b>tls::unim
2840: 70 6f 72 74 20 3c 2f 62 3e 3c 69 3e 63 68 61 6e port </b><i>chan
2850: 6e 65 6c 3c 2f 69 3e 3c 2f 61 3e 3c 2f 64 74 3e nel</i></a></dt>
2860: 0a 20 20 20 20 3c 64 64 3e 50 72 6f 76 69 64 65 . <dd>Provide
2870: 64 20 66 6f 72 20 73 79 6d 6d 65 74 72 79 20 74 d for symmetry t
2880: 6f 20 3c 73 74 72 6f 6e 67 3e 74 6c 73 3a 3a 69 o <strong>tls::i
2890: 6d 70 6f 72 74 3c 2f 73 74 72 6f 6e 67 3e 2c 20 mport</strong>,
28a0: 74 68 69 73 0a 20 20 20 20 20 20 75 6e 73 74 61 this. unsta
28b0: 63 6b 73 20 74 68 65 20 53 53 4c 2d 65 6e 61 62 cks the SSL-enab
28c0: 6c 69 6e 67 20 6f 66 20 61 20 72 65 67 75 6c 61 ling of a regula
28d0: 72 20 54 63 6c 20 63 68 61 6e 6e 65 6c 2e 20 20 r Tcl channel.
28e0: 41 6e 20 65 72 72 6f 72 0a 20 20 20 20 20 20 69 An error. i
28f0: 73 20 74 68 72 6f 77 6e 20 69 66 20 54 4c 53 20 s thrown if TLS
2900: 69 73 20 6e 6f 74 20 74 68 65 20 74 6f 70 20 73 is not the top s
2910: 74 61 63 6b 65 64 20 63 68 61 6e 6e 65 6c 20 74 tacked channel t
2920: 79 70 65 2e 3c 2f 64 64 3e 0a 20 20 20 20 3c 64 ype.</dd>. <d
2930: 74 3e 26 6e 62 73 70 3b 3c 2f 64 74 3e 0a 20 20 t> </dt>.
2940: 20 20 3c 64 74 3e 3c 61 20 6e 61 6d 65 3d 22 74 <dt><a name="t
2950: 6c 73 3a 3a 68 61 6e 64 73 68 61 6b 65 22 3e 3c ls::handshake"><
2960: 73 74 72 6f 6e 67 3e 74 6c 73 3a 3a 68 61 6e 64 strong>tls::hand
2970: 73 68 61 6b 65 3c 2f 73 74 72 6f 6e 67 3e 20 3c shake</strong> <
2980: 65 6d 3e 63 68 61 6e 6e 65 6c 3c 2f 65 6d 3e 3c em>channel</em><
2990: 2f 61 3e 3c 2f 64 74 3e 0a 20 20 20 20 3c 64 64 /a></dt>. <dd
29a0: 3e 46 6f 72 63 65 73 20 68 61 6e 64 73 68 61 6b >Forces handshak
29b0: 65 20 74 6f 20 74 61 6b 65 20 70 6c 61 63 65 2c e to take place,
29c0: 20 61 6e 64 20 72 65 74 75 72 6e 73 20 30 20 69 and returns 0 i
29d0: 66 0a 09 68 61 6e 64 73 68 61 6b 65 20 69 73 20 f..handshake is
29e0: 73 74 69 6c 6c 20 69 6e 20 70 72 6f 67 72 65 73 still in progres
29f0: 73 20 28 6e 6f 6e 2d 62 6c 6f 63 6b 69 6e 67 29 s (non-blocking)
2a00: 2c 20 6f 72 20 31 20 69 66 0a 09 74 68 65 20 68 , or 1 if..the h
2a10: 61 6e 64 73 68 61 6b 65 20 77 61 73 20 73 75 63 andshake was suc
2a20: 63 65 73 73 66 75 6c 2e 20 49 66 20 74 68 65 20 cessful. If the
2a30: 68 61 6e 64 73 68 61 6b 65 20 66 61 69 6c 65 64 handshake failed
2a40: 0a 09 74 68 69 73 20 72 6f 75 74 69 6e 65 20 77 ..this routine w
2a50: 69 6c 6c 20 74 68 72 6f 77 20 61 6e 20 65 72 72 ill throw an err
2a60: 6f 72 2e 3c 2f 64 64 3e 0a 20 20 20 20 3c 64 74 or.</dd>. <dt
2a70: 3e 26 6e 62 73 70 3b 3c 2f 64 74 3e 0a 20 20 20 > </dt>.
2a80: 20 3c 64 74 3e 3c 61 20 6e 61 6d 65 3d 22 74 6c <dt><a name="tl
2a90: 73 3a 3a 73 74 61 74 75 73 22 3e 3c 73 74 72 6f s::status"><stro
2aa0: 6e 67 3e 74 6c 73 3a 3a 73 74 61 74 75 73 3c 2f ng>tls::status</
2ab0: 73 74 72 6f 6e 67 3e 0a 20 20 20 20 3c 65 6d 3e strong>. <em>
2ac0: 3f 2d 6c 6f 63 61 6c 3f 20 63 68 61 6e 6e 65 6c ?-local? channel
2ad0: 3c 2f 65 6d 3e 3c 2f 61 3e 3c 2f 64 74 3e 0a 20 </em></a></dt>.
2ae0: 20 20 20 3c 64 64 3e 52 65 74 75 72 6e 73 20 74 <dd>Returns t
2af0: 68 65 20 63 75 72 72 65 6e 74 20 73 74 61 74 75 he current statu
2b00: 73 20 6f 66 20 74 68 65 20 63 65 72 74 69 66 69 s of the certifi
2b10: 63 61 74 65 20 66 6f 72 20 61 6e 20 53 53 4c 0a cate for an SSL.
2b20: 09 63 68 61 6e 6e 65 6c 2e 20 54 68 65 20 72 65 .channel. The re
2b30: 73 75 6c 74 20 69 73 20 61 20 6c 69 73 74 20 6f sult is a list o
2b40: 66 20 6b 65 79 2d 76 61 6c 75 65 20 70 61 69 72 f key-value pair
2b50: 73 20 64 65 73 63 72 69 62 69 6e 67 0a 09 74 68 s describing..th
2b60: 65 20 63 65 72 74 69 66 69 63 61 74 65 2e 20 49 e certificate. I
2b70: 66 20 74 68 65 20 72 65 73 75 6c 74 20 69 73 20 f the result is
2b80: 61 6e 20 65 6d 70 74 79 20 6c 69 73 74 20 74 68 an empty list th
2b90: 65 6e 20 74 68 65 0a 09 53 53 4c 20 68 61 6e 64 en the..SSL hand
2ba0: 73 68 61 6b 65 20 68 61 73 20 6e 6f 74 20 79 65 shake has not ye
2bb0: 74 20 63 6f 6d 70 6c 65 74 65 64 2e 20 49 66 20 t completed. If
2bc0: 3c 65 6d 3e 2d 6c 6f 63 61 6c 3c 2f 65 6d 3e 20 <em>-local</em>
2bd0: 69 73 0a 09 73 70 65 63 69 66 69 65 64 2c 20 74 is..specified, t
2be0: 68 65 6e 20 74 68 65 20 6c 6f 63 61 6c 20 63 65 hen the local ce
2bf0: 72 74 69 66 69 63 61 74 65 20 69 73 20 75 73 65 rtificate is use
2c00: 64 2e 3c 2f 64 64 3e 0a 3c 62 6c 6f 63 6b 71 75 d.</dd>.<blockqu
2c10: 6f 74 65 3e 0a 09 3c 62 3e 53 53 4c 20 53 74 61 ote>..<b>SSL Sta
2c20: 74 75 73 3c 2f 62 3e 0a 20 20 20 20 3c 64 6c 3e tus</b>. <dl>
2c30: 0a 09 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 61 6c ..<dt><strong>al
2c40: 70 6e 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e pn</strong> <em>
2c50: 70 72 6f 74 6f 63 6f 6c 3c 2f 65 6d 3e 3c 2f 64 protocol</em></d
2c60: 74 3e 0a 09 3c 64 64 3e 54 68 65 20 70 72 6f 74 t>..<dd>The prot
2c70: 6f 63 6f 6c 20 73 65 6c 65 63 74 65 64 20 61 66 ocol selected af
2c80: 74 65 72 20 41 70 70 6c 69 63 61 74 69 6f 6e 2d ter Application-
2c90: 4c 61 79 65 72 20 50 72 6f 74 6f 63 6f 6c 0a 09 Layer Protocol..
2ca0: 20 20 20 20 4e 65 67 6f 74 69 61 74 69 6f 6e 20 Negotiation
2cb0: 28 41 4c 50 4e 29 2e 3c 2f 64 64 3e 0a 09 3c 64 (ALPN).</dd>..<d
2cc0: 74 3e 3c 73 74 72 6f 6e 67 3e 63 69 70 68 65 72 t><strong>cipher
2cd0: 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 63 69 </strong> <em>ci
2ce0: 70 68 65 72 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 pher</em></dt>..
2cf0: 3c 64 64 3e 54 68 65 20 63 75 72 72 65 6e 74 20 <dd>The current
2d00: 63 69 70 68 65 72 20 69 6e 20 75 73 65 20 62 65 cipher in use be
2d10: 74 77 65 65 6e 20 74 68 65 20 63 6c 69 65 6e 74 tween the client
2d20: 20 61 6e 64 0a 09 20 20 20 20 73 65 72 76 65 72 and.. server
2d30: 20 63 68 61 6e 6e 65 6c 73 2e 3c 2f 64 64 3e 0a channels.</dd>.
2d40: 09 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 70 65 65 .<dt><strong>pee
2d50: 72 6e 61 6d 65 3c 2f 73 74 72 6f 6e 67 3e 20 3c rname</strong> <
2d60: 65 6d 3e 6e 61 6d 65 3c 2f 65 6d 3e 3c 2f 64 74 em>name</em></dt
2d70: 3e 0a 09 3c 64 64 3e 54 68 65 20 70 65 65 72 6e >..<dd>The peern
2d80: 61 6d 65 20 66 72 6f 6d 20 74 68 65 20 63 65 72 ame from the cer
2d90: 74 69 66 69 63 61 74 65 2e 3c 2f 64 64 3e 0a 09 tificate.</dd>..
2da0: 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 70 72 6f 74 <dt><strong>prot
2db0: 6f 63 6f 6c 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 ocol</strong> <e
2dc0: 6d 3e 76 65 72 73 69 6f 6e 3c 2f 65 6d 3e 3c 2f m>version</em></
2dd0: 64 74 3e 0a 09 3c 64 64 3e 54 68 65 20 70 72 6f dt>..<dd>The pro
2de0: 74 6f 63 6f 6c 20 76 65 72 73 69 6f 6e 20 75 73 tocol version us
2df0: 65 64 20 66 6f 72 20 74 68 65 20 63 6f 6e 6e 65 ed for the conne
2e00: 63 74 69 6f 6e 3a 0a 09 20 20 20 20 53 53 4c 32 ction:.. SSL2
2e10: 2c 20 53 53 4c 33 2c 20 54 4c 53 31 2c 20 54 4c , SSL3, TLS1, TL
2e20: 53 31 2e 31 2c 20 54 4c 53 31 2e 32 2c 20 54 4c S1.1, TLS1.2, TL
2e30: 53 31 2e 33 2c 20 6f 72 20 75 6e 6b 6e 6f 77 6e S1.3, or unknown
2e40: 2e 3c 2f 64 64 3e 0a 09 3c 64 74 3e 3c 73 74 72 .</dd>..<dt><str
2e50: 6f 6e 67 3e 73 62 69 74 73 3c 2f 73 74 72 6f 6e ong>sbits</stron
2e60: 67 3e 20 3c 65 6d 3e 6e 3c 2f 65 6d 3e 3c 2f 64 g> <em>n</em></d
2e70: 74 3e 0a 09 3c 64 64 3e 54 68 65 20 6e 75 6d 62 t>..<dd>The numb
2e80: 65 72 20 6f 66 20 62 69 74 73 20 75 73 65 64 20 er of bits used
2e90: 66 6f 72 20 74 68 65 20 73 65 73 73 69 6f 6e 20 for the session
2ea0: 6b 65 79 2e 3c 2f 64 64 3e 0a 09 3c 64 74 3e 3c key.</dd>..<dt><
2eb0: 73 74 72 6f 6e 67 3e 73 69 67 6e 61 74 75 72 65 strong>signature
2ec0: 48 61 73 68 41 6c 67 6f 72 69 74 68 6d 3c 2f 73 HashAlgorithm</s
2ed0: 74 72 6f 6e 67 3e 20 3c 65 6d 3e 61 6c 67 6f 72 trong> <em>algor
2ee0: 69 74 68 6d 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 ithm</em></dt>..
2ef0: 3c 64 64 3e 54 68 65 20 73 69 67 6e 61 74 75 72 <dd>The signatur
2f00: 65 20 68 61 73 68 20 61 6c 67 6f 72 69 74 68 6d e hash algorithm
2f10: 2e 3c 2f 64 64 3e 0a 09 3c 64 74 3e 3c 73 74 72 .</dd>..<dt><str
2f20: 6f 6e 67 3e 73 69 67 6e 61 74 75 72 65 54 79 70 ong>signatureTyp
2f30: 65 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 74 e</strong> <em>t
2f40: 79 70 65 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 3c ype</em></dt>..<
2f50: 64 64 3e 54 68 65 20 73 69 67 6e 61 74 75 72 65 dd>The signature
2f60: 20 74 79 70 65 20 76 61 6c 75 65 2e 3c 2f 64 64 type value.</dd
2f70: 3e 0a 09 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 76 >..<dt><strong>v
2f80: 65 72 69 66 79 44 65 70 74 68 3c 2f 73 74 72 6f erifyDepth</stro
2f90: 6e 67 3e 20 3c 65 6d 3e 6e 3c 2f 65 6d 3e 3c 2f ng> <em>n</em></
2fa0: 64 74 3e 0a 09 3c 64 64 3e 4d 61 78 69 6d 75 6d dt>..<dd>Maximum
2fb0: 20 64 65 70 74 68 20 66 6f 72 20 74 68 65 20 63 depth for the c
2fc0: 65 72 74 69 66 69 63 61 74 65 20 63 68 61 69 6e ertificate chain
2fd0: 20 76 65 72 69 66 69 63 61 74 69 6f 6e 2e 0a 09 verification...
2fe0: 20 20 20 20 44 65 66 61 75 6c 74 20 69 73 20 2d Default is -
2ff0: 31 2c 20 74 6f 20 63 68 65 63 6b 20 61 6c 6c 2e 1, to check all.
3000: 3c 2f 64 64 3e 0a 09 3c 64 74 3e 3c 73 74 72 6f </dd>..<dt><stro
3010: 6e 67 3e 76 65 72 69 66 79 4d 6f 64 65 3c 2f 73 ng>verifyMode</s
3020: 74 72 6f 6e 67 3e 20 3c 65 6d 3e 6c 69 73 74 3c trong> <em>list<
3030: 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 3c 64 64 3e 4c /em></dt>..<dd>L
3040: 69 73 74 20 6f 66 20 63 65 72 74 69 66 69 63 61 ist of certifica
3050: 74 65 20 76 65 72 69 66 69 63 61 74 69 6f 6e 20 te verification
3060: 6d 6f 64 65 73 2e 3c 2f 64 64 3e 0a 09 3c 64 74 modes.</dd>..<dt
3070: 3e 3c 73 74 72 6f 6e 67 3e 76 65 72 69 66 79 52 ><strong>verifyR
3080: 65 73 75 6c 74 3c 2f 73 74 72 6f 6e 67 3e 20 3c esult</strong> <
3090: 65 6d 3e 72 65 73 75 6c 74 3c 2f 65 6d 3e 3c 2f em>result</em></
30a0: 64 74 3e 0a 09 3c 64 64 3e 43 65 72 74 69 66 69 dt>..<dd>Certifi
30b0: 63 61 74 65 20 76 65 72 69 66 69 63 61 74 69 6f cate verificatio
30c0: 6e 20 72 65 73 75 6c 74 2e 3c 2f 64 64 3e 0a 09 n result.</dd>..
30d0: 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 63 61 5f 6e <dt><strong>ca_n
30e0: 61 6d 65 73 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 ames</strong> <e
30f0: 6d 3e 6c 69 73 74 3c 2f 65 6d 3e 3c 2f 64 74 3e m>list</em></dt>
3100: 0a 09 3c 64 64 3e 4c 69 73 74 20 6f 66 20 74 68 ..<dd>List of th
3110: 65 20 43 65 72 74 69 66 69 63 61 74 65 20 41 75 e Certificate Au
3120: 74 68 6f 72 69 74 69 65 73 20 75 73 65 64 20 74 thorities used t
3130: 6f 20 63 72 65 61 74 65 20 74 68 65 20 63 65 72 o create the cer
3140: 74 69 66 69 63 61 74 65 2e 3c 2f 64 64 3e 0a 20 tificate.</dd>.
3150: 20 20 20 3c 2f 64 6c 3e 0a 3c 2f 62 6c 6f 63 6b </dl>.</block
3160: 71 75 6f 74 65 3e 0a 3c 62 6c 6f 63 6b 71 75 6f quote>.<blockquo
3170: 74 65 3e 0a 09 3c 62 3e 43 65 72 74 69 66 69 63 te>..<b>Certific
3180: 61 74 65 20 53 74 61 74 75 73 3c 2f 62 3e 0a 20 ate Status</b>.
3190: 20 20 20 3c 64 6c 3e 0a 09 3c 64 74 3e 3c 73 74 <dl>..<dt><st
31a0: 72 6f 6e 67 3e 61 6c 6c 3c 2f 73 74 72 6f 6e 67 rong>all</strong
31b0: 3e 20 3c 65 6d 3e 73 74 72 69 6e 67 3c 2f 65 6d > <em>string</em
31c0: 3e 3c 2f 64 74 3e 0a 09 3c 64 64 3e 44 75 6d 70 ></dt>..<dd>Dump
31d0: 20 6f 66 20 61 6c 6c 20 63 65 72 74 69 66 69 63 of all certific
31e0: 61 74 65 20 69 6e 66 6f 2e 3c 2f 64 64 3e 0a 0a ate info.</dd>..
31f0: 09 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 76 65 72 .<dt><strong>ver
3200: 73 69 6f 6e 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 sion</strong> <e
3210: 6d 3e 76 61 6c 75 65 3c 2f 65 6d 3e 3c 2f 64 74 m>value</em></dt
3220: 3e 0a 09 3c 64 64 3e 54 68 65 20 63 65 72 74 69 >..<dd>The certi
3230: 66 69 63 61 74 65 20 76 65 72 73 69 6f 6e 2e 3c ficate version.<
3240: 2f 64 64 3e 0a 09 3c 64 74 3e 3c 73 74 72 6f 6e /dd>..<dt><stron
3250: 67 3e 73 65 72 69 61 6c 4e 75 6d 62 65 72 3c 2f g>serialNumber</
3260: 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 6e 3c 2f 65 strong> <em>n</e
3270: 6d 3e 3c 2f 64 74 3e 0a 09 3c 64 64 3e 54 68 65 m></dt>..<dd>The
3280: 20 73 65 72 69 61 6c 20 6e 75 6d 62 65 72 20 6f serial number o
3290: 66 20 74 68 65 20 63 65 72 74 69 66 69 63 61 74 f the certificat
32a0: 65 20 61 73 20 68 65 78 20 73 74 72 69 6e 67 2e e as hex string.
32b0: 3c 2f 64 64 3e 0a 09 3c 64 74 3e 3c 73 74 72 6f </dd>..<dt><stro
32c0: 6e 67 3e 73 69 67 6e 61 74 75 72 65 3c 2f 73 74 ng>signature</st
32d0: 72 6f 6e 67 3e 20 3c 65 6d 3e 61 6c 67 6f 72 69 rong> <em>algori
32e0: 74 68 6d 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 3c thm</em></dt>..<
32f0: 64 64 3e 43 69 70 68 65 72 20 61 6c 67 6f 72 69 dd>Cipher algori
3300: 74 68 6d 20 75 73 65 64 20 66 6f 72 20 63 65 72 thm used for cer
3310: 74 69 66 69 63 61 74 65 20 73 69 67 6e 61 74 75 tificate signatu
3320: 72 65 2e 3c 2f 64 64 3e 0a 09 3c 64 74 3e 3c 73 re.</dd>..<dt><s
3330: 74 72 6f 6e 67 3e 69 73 73 75 65 72 3c 2f 73 74 trong>issuer</st
3340: 72 6f 6e 67 3e 20 3c 65 6d 3e 64 6e 3c 2f 65 6d rong> <em>dn</em
3350: 3e 3c 2f 64 74 3e 0a 09 3c 64 64 3e 54 68 65 20 ></dt>..<dd>The
3360: 64 69 73 74 69 6e 67 75 69 73 68 65 64 20 6e 61 distinguished na
3370: 6d 65 20 28 44 4e 29 20 6f 66 20 74 68 65 20 63 me (DN) of the c
3380: 65 72 74 69 66 69 63 61 74 65 20 69 73 73 75 65 ertificate issue
3390: 72 2e 3c 2f 64 64 3e 0a 09 3c 64 74 3e 3c 73 74 r.</dd>..<dt><st
33a0: 72 6f 6e 67 3e 6e 6f 74 42 65 66 6f 72 65 3c 2f rong>notBefore</
33b0: 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 64 61 74 65 strong> <em>date
33c0: 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 3c 64 64 3e </em></dt>..<dd>
33d0: 54 68 65 20 62 65 67 69 6e 20 64 61 74 65 20 66 The begin date f
33e0: 6f 72 20 74 68 65 20 76 61 6c 69 64 69 74 79 20 or the validity
33f0: 6f 66 20 74 68 65 20 63 65 72 74 69 66 69 63 61 of the certifica
3400: 74 65 2e 3c 2f 64 64 3e 0a 09 3c 64 74 3e 3c 73 te.</dd>..<dt><s
3410: 74 72 6f 6e 67 3e 6e 6f 74 41 66 74 65 72 3c 2f trong>notAfter</
3420: 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 64 61 74 65 strong> <em>date
3430: 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 3c 64 64 3e </em></dt>..<dd>
3440: 54 68 65 20 65 78 70 69 72 61 74 69 6f 6e 20 64 The expiration d
3450: 61 74 65 20 66 6f 72 20 74 68 65 20 63 65 72 74 ate for the cert
3460: 69 66 69 63 61 74 65 2e 3c 2f 64 64 3e 0a 09 3c ificate.</dd>..<
3470: 64 74 3e 3c 73 74 72 6f 6e 67 3e 73 75 62 6a 65 dt><strong>subje
3480: 63 74 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e ct</strong> <em>
3490: 64 6e 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 3c 64 dn</em></dt>..<d
34a0: 64 3e 54 68 65 20 64 69 73 74 69 6e 67 75 69 73 d>The distinguis
34b0: 68 65 64 20 6e 61 6d 65 20 28 44 4e 29 20 6f 66 hed name (DN) of
34c0: 20 74 68 65 20 63 65 72 74 69 66 69 63 61 74 65 the certificate
34d0: 20 73 75 62 6a 65 63 74 2e 0a 09 20 20 20 20 46 subject... F
34e0: 69 65 6c 64 73 20 69 6e 63 6c 75 64 65 3a 20 43 ields include: C
34f0: 6f 6d 6d 6f 6e 20 4e 61 6d 65 20 28 43 4e 29 2c ommon Name (CN),
3500: 20 4f 72 67 61 6e 69 7a 61 74 69 6f 6e 20 28 4f Organization (O
3510: 29 2c 20 4c 6f 63 61 6c 69 74 79 0a 09 20 20 20 ), Locality..
3520: 20 6f 72 20 43 69 74 79 20 28 4c 29 2c 20 53 74 or City (L), St
3530: 61 74 65 20 6f 72 20 50 72 6f 76 69 6e 63 65 20 ate or Province
3540: 28 53 29 2c 20 61 6e 64 20 43 6f 75 6e 74 72 79 (S), and Country
3550: 20 4e 61 6d 65 20 28 43 29 2e 3c 2f 64 64 3e 0a Name (C).</dd>.
3560: 09 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 69 73 73 .<dt><strong>iss
3570: 75 65 72 55 6e 69 71 75 65 49 44 3c 2f 73 74 72 uerUniqueID</str
3580: 6f 6e 67 3e 20 3c 65 6d 3e 73 74 72 69 6e 67 3c ong> <em>string<
3590: 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 3c 64 64 3e 54 /em></dt>..<dd>T
35a0: 68 65 20 69 73 73 75 65 72 20 75 6e 69 71 75 65 he issuer unique
35b0: 20 69 64 2e 3c 2f 64 64 3e 0a 09 3c 64 74 3e 3c id.</dd>..<dt><
35c0: 73 74 72 6f 6e 67 3e 73 75 62 6a 65 63 74 55 6e strong>subjectUn
35d0: 69 71 75 65 49 44 3c 2f 73 74 72 6f 6e 67 3e 20 iqueID</strong>
35e0: 3c 65 6d 3e 73 74 72 69 6e 67 3c 2f 65 6d 3e 3c <em>string</em><
35f0: 2f 64 74 3e 0a 09 3c 64 64 3e 54 68 65 20 73 75 /dt>..<dd>The su
3600: 62 6a 65 63 74 20 75 6e 69 71 75 65 20 69 64 2e bject unique id.
3610: 3c 2f 64 64 3e 0a 0a 09 3c 64 74 3e 3c 73 74 72 </dd>...<dt><str
3620: 6f 6e 67 3e 6e 75 6d 5f 65 78 74 65 6e 73 69 6f ong>num_extensio
3630: 6e 73 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e ns</strong> <em>
3640: 6e 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 3c 64 64 n</em></dt>..<dd
3650: 3e 4e 75 6d 62 65 72 20 6f 66 20 63 65 72 74 69 >Number of certi
3660: 66 69 63 61 74 65 20 65 78 74 65 6e 73 69 6f 6e ficate extension
3670: 73 2e 3c 2f 64 64 3e 0a 09 3c 64 74 3e 3c 73 74 s.</dd>..<dt><st
3680: 72 6f 6e 67 3e 65 78 74 65 6e 73 69 6f 6e 73 3c rong>extensions<
3690: 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 6c 69 73 /strong> <em>lis
36a0: 74 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 3c 64 64 t</em></dt>..<dd
36b0: 3e 4c 69 73 74 20 6f 66 20 63 65 72 74 69 66 69 >List of certifi
36c0: 63 61 74 65 20 65 78 74 65 6e 73 69 6f 6e 20 6e cate extension n
36d0: 61 6d 65 73 2e 3c 2f 64 64 3e 0a 09 3c 64 74 3e ames.</dd>..<dt>
36e0: 3c 73 74 72 6f 6e 67 3e 61 75 74 68 6f 72 69 74 <strong>authorit
36f0: 79 4b 65 79 49 64 65 6e 74 69 66 69 65 72 3c 2f yKeyIdentifier</
3700: 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 73 74 72 69 strong> <em>stri
3710: 6e 67 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 3c 64 ng</em></dt>..<d
3720: 64 3e 28 41 4b 49 29 20 4b 65 79 20 69 64 65 6e d>(AKI) Key iden
3730: 74 69 66 69 65 72 20 6f 66 20 74 68 65 20 49 73 tifier of the Is
3740: 73 75 69 6e 67 20 43 41 20 63 65 72 74 69 66 69 suing CA certifi
3750: 63 61 74 65 20 74 68 61 74 20 73 69 67 6e 65 64 cate that signed
3760: 0a 09 20 20 20 20 74 68 65 20 53 53 4c 20 63 65 .. the SSL ce
3770: 72 74 69 66 69 63 61 74 65 20 61 73 20 68 65 78 rtificate as hex
3780: 20 73 74 72 69 6e 67 2e 20 54 68 69 73 20 76 61 string. This va
3790: 6c 75 65 20 6d 61 74 63 68 65 73 20 74 68 65 20 lue matches the
37a0: 53 4b 49 0a 09 20 20 20 20 76 61 6c 75 65 20 6f SKI.. value o
37b0: 66 20 74 68 65 20 49 6e 74 65 72 6d 65 64 69 61 f the Intermedia
37c0: 74 65 20 43 41 20 63 65 72 74 69 66 69 63 61 74 te CA certificat
37d0: 65 2e 3c 2f 64 64 3e 0a 09 3c 64 74 3e 3c 73 74 e.</dd>..<dt><st
37e0: 72 6f 6e 67 3e 73 75 62 6a 65 63 74 4b 65 79 49 rong>subjectKeyI
37f0: 64 65 6e 74 69 66 69 65 72 3c 2f 73 74 72 6f 6e dentifier</stron
3800: 67 3e 20 3c 65 6d 3e 73 74 72 69 6e 67 3c 2f 65 g> <em>string</e
3810: 6d 3e 3c 2f 64 74 3e 0a 09 3c 64 64 3e 28 53 4b m></dt>..<dd>(SK
3820: 49 29 20 48 61 73 68 20 6f 66 20 74 68 65 20 70 I) Hash of the p
3830: 75 62 6c 69 63 20 6b 65 79 20 69 6e 73 69 64 65 ublic key inside
3840: 20 74 68 65 20 63 65 72 74 69 66 69 63 61 74 65 the certificate
3850: 20 61 73 20 68 65 78 0a 09 20 20 20 73 74 72 69 as hex.. stri
3860: 6e 67 2e 20 55 73 65 64 20 74 6f 20 69 64 65 6e ng. Used to iden
3870: 74 69 66 79 20 63 65 72 74 69 66 69 63 61 74 65 tify certificate
3880: 73 20 74 68 61 74 20 63 6f 6e 74 61 69 6e 20 61 s that contain a
3890: 20 70 61 72 74 69 63 75 6c 61 72 0a 09 20 20 20 particular..
38a0: 70 75 62 6c 69 63 20 6b 65 79 2e 3c 2f 64 64 3e public key.</dd>
38b0: 0a 09 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 73 75 ..<dt><strong>su
38c0: 62 6a 65 63 74 41 6c 74 4e 61 6d 65 3c 2f 73 74 bjectAltName</st
38d0: 72 6f 6e 67 3e 20 3c 65 6d 3e 6c 69 73 74 3c 2f rong> <em>list</
38e0: 65 6d 3e 3c 2f 64 74 3e 0a 09 3c 64 64 3e 4c 69 em></dt>..<dd>Li
38f0: 73 74 20 6f 66 20 61 6c 6c 20 6f 66 20 74 68 65 st of all of the
3900: 20 61 6c 74 65 72 6e 61 74 69 76 65 20 64 6f 6d alternative dom
3910: 61 69 6e 20 6e 61 6d 65 73 2c 20 73 75 62 20 64 ain names, sub d
3920: 6f 6d 61 69 6e 73 2c 0a 09 20 20 20 20 61 6e 64 omains,.. and
3930: 20 49 50 20 61 64 64 72 65 73 73 65 73 20 74 68 IP addresses th
3940: 61 74 20 61 72 65 20 73 65 63 75 72 65 64 20 62 at are secured b
3950: 79 20 74 68 65 20 63 65 72 74 69 66 69 63 61 74 y the certificat
3960: 65 2e 3c 2f 64 64 3e 0a 09 3c 64 74 3e 3c 73 74 e.</dd>..<dt><st
3970: 72 6f 6e 67 3e 6f 63 73 70 3c 2f 73 74 72 6f 6e rong>ocsp</stron
3980: 67 3e 20 3c 65 6d 3e 6c 69 73 74 3c 2f 65 6d 3e g> <em>list</em>
3990: 3c 2f 64 74 3e 0a 09 3c 64 64 3e 4c 69 73 74 20 </dt>..<dd>List
39a0: 6f 66 20 61 6c 6c 20 4f 6e 6c 69 6e 65 20 43 65 of all Online Ce
39b0: 72 74 69 66 69 63 61 74 65 20 53 74 61 74 75 73 rtificate Status
39c0: 20 50 72 6f 74 6f 63 6f 6c 20 28 4f 43 53 50 29 Protocol (OCSP)
39d0: 20 55 52 4c 73 2e 3c 2f 64 64 3e 0a 0a 09 3c 64 URLs.</dd>...<d
39e0: 74 3e 3c 73 74 72 6f 6e 67 3e 63 65 72 74 69 66 t><strong>certif
39f0: 69 63 61 74 65 3c 2f 73 74 72 6f 6e 67 3e 20 3c icate</strong> <
3a00: 65 6d 3e 63 65 72 74 3c 2f 65 6d 3e 3c 2f 64 74 em>cert</em></dt
3a10: 3e 0a 09 3c 64 64 3e 54 68 65 20 50 45 4d 20 65 >..<dd>The PEM e
3a20: 6e 63 6f 64 65 64 20 63 65 72 74 69 66 69 63 61 ncoded certifica
3a30: 74 65 2e 3c 2f 64 64 3e 0a 0a 09 3c 64 74 3e 3c te.</dd>...<dt><
3a40: 73 74 72 6f 6e 67 3e 73 69 67 6e 61 74 75 72 65 strong>signature
3a50: 41 6c 67 6f 72 69 74 68 6d 3c 2f 73 74 72 6f 6e Algorithm</stron
3a60: 67 3e 20 3c 65 6d 3e 61 6c 67 6f 72 69 74 68 6d g> <em>algorithm
3a70: 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 3c 64 64 3e </em></dt>..<dd>
3a80: 43 69 70 68 65 72 20 61 6c 67 6f 72 69 74 68 6d Cipher algorithm
3a90: 20 75 73 65 64 20 66 6f 72 20 63 65 72 74 69 66 used for certif
3aa0: 69 63 61 74 65 20 73 69 67 6e 61 74 75 72 65 2e icate signature.
3ab0: 3c 2f 64 64 3e 0a 09 3c 64 74 3e 3c 73 74 72 6f </dd>..<dt><stro
3ac0: 6e 67 3e 73 69 67 6e 61 74 75 72 65 56 61 6c 75 ng>signatureValu
3ad0: 65 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 73 e</strong> <em>s
3ae0: 74 72 69 6e 67 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a tring</em></dt>.
3af0: 09 3c 64 64 3e 43 65 72 74 69 66 69 63 61 74 65 .<dd>Certificate
3b00: 20 73 69 67 6e 61 74 75 72 65 20 61 73 20 68 65 signature as he
3b10: 78 20 73 74 72 69 6e 67 2e 3c 2f 64 64 3e 0a 09 x string.</dd>..
3b20: 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 73 69 67 6e <dt><strong>sign
3b30: 61 74 75 72 65 44 69 67 65 73 74 3c 2f 73 74 72 atureDigest</str
3b40: 6f 6e 67 3e 20 3c 65 6d 3e 76 65 72 73 69 6f 6e ong> <em>version
3b50: 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 3c 64 64 3e </em></dt>..<dd>
3b60: 43 65 72 74 69 66 69 63 61 74 65 20 73 69 67 6e Certificate sign
3b70: 69 6e 67 20 64 69 67 65 73 74 2e 3c 2f 64 64 3e ing digest.</dd>
3b80: 0a 09 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 70 75 ..<dt><strong>pu
3b90: 62 6c 69 63 4b 65 79 41 6c 67 6f 72 69 74 68 6d blicKeyAlgorithm
3ba0: 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 61 6c </strong> <em>al
3bb0: 67 6f 72 69 74 68 6d 3c 2f 65 6d 3e 3c 2f 64 74 gorithm</em></dt
3bc0: 3e 0a 09 3c 64 64 3e 43 65 72 74 69 66 69 63 61 >..<dd>Certifica
3bd0: 74 65 20 73 69 67 6e 61 74 75 72 65 20 70 75 62 te signature pub
3be0: 6c 69 63 20 6b 65 79 20 61 6c 67 6f 72 69 74 68 lic key algorith
3bf0: 6d 2e 3c 2f 64 64 3e 0a 09 3c 64 74 3e 3c 73 74 m.</dd>..<dt><st
3c00: 72 6f 6e 67 3e 70 75 62 6c 69 63 4b 65 79 3c 2f rong>publicKey</
3c10: 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 73 74 72 69 strong> <em>stri
3c20: 6e 67 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 3c 64 ng</em></dt>..<d
3c30: 64 3e 43 65 72 74 69 66 69 63 61 74 65 20 73 69 d>Certificate si
3c40: 67 6e 61 74 75 72 65 20 70 75 62 6c 69 63 20 6b gnature public k
3c50: 65 79 20 61 73 20 68 65 78 20 73 74 72 69 6e 67 ey as hex string
3c60: 2e 3c 2f 64 64 3e 0a 09 3c 64 74 3e 3c 73 74 72 .</dd>..<dt><str
3c70: 6f 6e 67 3e 62 69 74 73 3c 2f 73 74 72 6f 6e 67 ong>bits</strong
3c80: 3e 20 3c 65 6d 3e 6e 3c 2f 65 6d 3e 3c 2f 64 74 > <em>n</em></dt
3c90: 3e 0a 09 3c 64 64 3e 4e 75 6d 62 65 72 20 6f 66 >..<dd>Number of
3ca0: 20 62 69 74 73 20 75 73 65 64 20 66 6f 72 20 63 bits used for c
3cb0: 65 72 74 69 66 69 63 61 74 65 20 73 69 67 6e 61 ertificate signa
3cc0: 74 75 72 65 20 6b 65 79 3c 2f 64 64 3e 0a 09 3c ture key</dd>..<
3cd0: 64 74 3e 3c 73 74 72 6f 6e 67 3e 73 65 6c 66 5f dt><strong>self_
3ce0: 73 69 67 6e 65 64 3c 2f 73 74 72 6f 6e 67 3e 20 signed</strong>
3cf0: 3c 65 6d 3e 62 6f 6f 6c 65 61 6e 3c 2f 65 6d 3e <em>boolean</em>
3d00: 3c 2f 64 74 3e 0a 09 3c 64 64 3e 49 73 20 63 65 </dt>..<dd>Is ce
3d10: 72 74 69 66 69 63 61 74 65 20 73 69 67 6e 61 74 rtificate signat
3d20: 75 72 65 20 73 65 6c 66 20 73 69 67 6e 65 64 2e ure self signed.
3d30: 3c 2f 64 64 3e 0a 0a 09 3c 64 74 3e 3c 73 74 72 </dd>...<dt><str
3d40: 6f 6e 67 3e 73 68 61 31 5f 68 61 73 68 3c 2f 73 ong>sha1_hash</s
3d50: 74 72 6f 6e 67 3e 20 3c 65 6d 3e 68 61 73 68 3c trong> <em>hash<
3d60: 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 3c 64 64 3e 54 /em></dt>..<dd>T
3d70: 68 65 20 53 48 41 31 20 68 61 73 68 20 6f 66 20 he SHA1 hash of
3d80: 74 68 65 20 63 65 72 74 69 66 69 63 61 74 65 20 the certificate
3d90: 61 73 20 68 65 78 20 73 74 72 69 6e 67 2e 3c 2f as hex string.</
3da0: 64 64 3e 0a 09 3c 64 74 3e 3c 73 74 72 6f 6e 67 dd>..<dt><strong
3db0: 3e 73 68 61 32 35 36 5f 68 61 73 68 3c 2f 73 74 >sha256_hash</st
3dc0: 72 6f 6e 67 3e 20 3c 65 6d 3e 68 61 73 68 3c 2f rong> <em>hash</
3dd0: 65 6d 3e 3c 2f 64 74 3e 0a 09 3c 64 64 3e 54 68 em></dt>..<dd>Th
3de0: 65 20 53 48 41 32 35 36 20 68 61 73 68 20 6f 66 e SHA256 hash of
3df0: 20 74 68 65 20 63 65 72 74 69 66 69 63 61 74 65 the certificate
3e00: 20 61 73 20 68 65 78 20 73 74 72 69 6e 67 2e 3c as hex string.<
3e10: 2f 64 64 3e 0a 20 20 20 20 3c 2f 64 6c 3e 0a 3c /dd>. </dl>.<
3e20: 2f 62 6c 6f 63 6b 71 75 6f 74 65 3e 0a 0a 20 20 /blockquote>..
3e30: 20 20 3c 64 74 3e 3c 61 20 6e 61 6d 65 3d 22 74 <dt><a name="t
3e40: 6c 73 3a 3a 63 6f 6e 6e 65 63 74 69 6f 6e 22 3e ls::connection">
3e50: 3c 73 74 72 6f 6e 67 3e 74 6c 73 3a 3a 63 6f 6e <strong>tls::con
3e60: 6e 65 63 74 69 6f 6e 3c 2f 73 74 72 6f 6e 67 3e nection</strong>
3e70: 0a 20 20 20 20 3c 65 6d 3e 63 68 61 6e 6e 65 6c . <em>channel
3e80: 3c 2f 65 6d 3e 3c 2f 61 3e 3c 2f 64 74 3e 0a 20 </em></a></dt>.
3e90: 20 20 20 3c 64 64 3e 52 65 74 75 72 6e 73 20 74 <dd>Returns t
3ea0: 68 65 20 63 75 72 72 65 6e 74 20 63 6f 6e 6e 65 he current conne
3eb0: 63 74 69 6f 6e 20 73 74 61 74 75 73 20 6f 66 20 ction status of
3ec0: 61 6e 20 53 53 4c 20 63 68 61 6e 6e 65 6c 2e 20 an SSL channel.
3ed0: 54 68 65 0a 09 72 65 73 75 6c 74 20 69 73 20 61 The..result is a
3ee0: 20 6c 69 73 74 20 6f 66 20 6b 65 79 2d 76 61 6c list of key-val
3ef0: 75 65 20 70 61 69 72 73 20 64 65 73 63 72 69 62 ue pairs describ
3f00: 69 6e 67 20 74 68 65 0a 09 63 6f 6e 6e 65 63 74 ing the..connect
3f10: 65 64 20 70 65 65 72 2e 3c 2f 64 64 3e 0a 3c 62 ed peer.</dd>.<b
3f20: 6c 6f 63 6b 71 75 6f 74 65 3e 0a 09 3c 62 3e 53 lockquote>..<b>S
3f30: 53 4c 20 53 74 61 74 75 73 3c 2f 62 3e 0a 20 20 SL Status</b>.
3f40: 20 20 3c 64 6c 3e 0a 09 3c 64 74 3e 3c 73 74 72 <dl>..<dt><str
3f50: 6f 6e 67 3e 73 74 61 74 65 3c 2f 73 74 72 6f 6e ong>state</stron
3f60: 67 3e 20 3c 65 6d 3e 73 74 61 74 65 3c 2f 65 6d g> <em>state</em
3f70: 3e 3c 2f 64 74 3e 0a 09 3c 64 64 3e 53 74 61 74 ></dt>..<dd>Stat
3f80: 65 20 6f 66 20 74 68 65 20 63 6f 6e 6e 65 63 74 e of the connect
3f90: 69 6f 6e 2e 3c 2f 64 64 3e 0a 09 3c 64 74 3e 3c ion.</dd>..<dt><
3fa0: 73 74 72 6f 6e 67 3e 73 65 72 76 65 72 6e 61 6d strong>servernam
3fb0: 65 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 6e e</strong> <em>n
3fc0: 61 6d 65 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 3c ame</em></dt>..<
3fd0: 64 64 3e 54 68 65 20 6e 61 6d 65 20 6f 66 20 74 dd>The name of t
3fe0: 68 65 20 63 6f 6e 6e 65 63 74 65 64 20 74 6f 20 he connected to
3ff0: 73 65 72 76 65 72 2e 3c 2f 64 64 3e 0a 09 3c 64 server.</dd>..<d
4000: 74 3e 3c 73 74 72 6f 6e 67 3e 70 72 6f 74 6f 63 t><strong>protoc
4010: 6f 6c 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e ol</strong> <em>
4020: 76 65 72 73 69 6f 6e 3c 2f 65 6d 3e 3c 2f 64 74 version</em></dt
4030: 3e 0a 09 3c 64 64 3e 54 68 65 20 70 72 6f 74 6f >..<dd>The proto
4040: 63 6f 6c 20 76 65 72 73 69 6f 6e 20 75 73 65 64 col version used
4050: 20 66 6f 72 20 74 68 65 20 63 6f 6e 6e 65 63 74 for the connect
4060: 69 6f 6e 3a 0a 09 20 20 20 20 53 53 4c 32 2c 20 ion:.. SSL2,
4070: 53 53 4c 33 2c 20 54 4c 53 31 2c 20 54 4c 53 31 SSL3, TLS1, TLS1
4080: 2e 31 2c 20 54 4c 53 31 2e 32 2c 20 54 4c 53 31 .1, TLS1.2, TLS1
4090: 2e 33 2c 20 6f 72 20 75 6e 6b 6e 6f 77 6e 2e 3c .3, or unknown.<
40a0: 2f 64 64 3e 0a 09 3c 64 74 3e 3c 73 74 72 6f 6e /dd>..<dt><stron
40b0: 67 3e 72 65 6e 65 67 6f 74 69 61 74 69 6f 6e 3c g>renegotiation<
40c0: 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 62 6f 6f /strong> <em>boo
40d0: 6c 65 61 6e 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 lean</em></dt>..
40e0: 3c 64 64 3e 57 68 65 74 68 65 72 20 70 72 6f 74 <dd>Whether prot
40f0: 6f 63 6f 6c 20 72 65 6e 65 67 6f 74 69 61 74 69 ocol renegotiati
4100: 6f 6e 20 69 73 20 73 75 70 70 6f 72 74 65 64 20 on is supported
4110: 6f 72 20 6e 6f 74 2e 3c 2f 64 64 3e 0a 09 3c 64 or not.</dd>..<d
4120: 74 3e 3c 73 74 72 6f 6e 67 3e 73 65 63 75 72 69 t><strong>securi
4130: 74 79 6c 65 76 65 6c 3c 2f 73 74 72 6f 6e 67 3e tylevel</strong>
4140: 20 3c 65 6d 3e 6c 65 76 65 6c 3c 2f 65 6d 3e 3c <em>level</em><
4150: 2f 64 74 3e 0a 09 3c 64 64 3e 54 68 65 20 73 65 /dt>..<dd>The se
4160: 63 75 72 69 74 79 20 6c 65 76 65 6c 20 75 73 65 curity level use
4170: 64 20 66 6f 72 20 73 65 6c 65 63 74 69 6f 6e 20 d for selection
4180: 6f 66 20 63 69 70 68 65 72 73 2c 20 6b 65 79 20 of ciphers, key
4190: 73 69 7a 65 2c 20 65 74 63 2e 3c 2f 64 64 3e 0a size, etc.</dd>.
41a0: 09 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 73 65 73 .<dt><strong>ses
41b0: 73 69 6f 6e 5f 72 65 75 73 65 64 3c 2f 73 74 72 sion_reused</str
41c0: 6f 6e 67 3e 20 3c 65 6d 3e 62 6f 6f 6c 65 61 6e ong> <em>boolean
41d0: 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 3c 64 64 3e </em></dt>..<dd>
41e0: 57 68 65 74 68 65 72 20 74 68 65 20 73 65 73 73 Whether the sess
41f0: 69 6f 6e 20 68 61 73 20 62 65 65 6e 20 72 65 75 ion has been reu
4200: 73 65 64 20 6f 72 20 6e 6f 74 2e 3c 2f 64 64 3e sed or not.</dd>
4210: 0a 09 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 69 73 ..<dt><strong>is
4220: 5f 73 65 72 76 65 72 3c 2f 73 74 72 6f 6e 67 3e _server</strong>
4230: 20 3c 65 6d 3e 62 6f 6f 6c 65 61 6e 3c 2f 65 6d <em>boolean</em
4240: 3e 3c 2f 64 74 3e 0a 09 3c 64 64 3e 57 68 65 74 ></dt>..<dd>Whet
4250: 68 65 72 20 74 68 65 20 63 6f 6e 6e 65 63 74 69 her the connecti
4260: 6f 6e 20 69 73 20 63 6f 6e 66 69 67 75 72 65 64 on is configured
4270: 20 61 73 20 61 20 73 65 72 76 65 72 20 28 31 29 as a server (1)
4280: 20 6f 72 20 63 6c 69 65 6e 74 20 28 30 29 2e 3c or client (0).<
4290: 2f 64 64 3e 0a 09 3c 64 74 3e 3c 73 74 72 6f 6e /dd>..<dt><stron
42a0: 67 3e 63 6f 6d 70 72 65 73 73 69 6f 6e 3c 2f 73 g>compression</s
42b0: 74 72 6f 6e 67 3e 20 3c 65 6d 3e 6d 6f 64 65 3c trong> <em>mode<
42c0: 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 3c 64 64 3e 43 /em></dt>..<dd>C
42d0: 6f 6d 70 72 65 73 73 69 6f 6e 20 6d 65 74 68 6f ompression metho
42e0: 64 2e 3c 2f 64 64 3e 0a 09 3c 64 74 3e 3c 73 74 d.</dd>..<dt><st
42f0: 72 6f 6e 67 3e 65 78 70 61 6e 73 69 6f 6e 3c 2f rong>expansion</
4300: 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 6d 6f 64 65 strong> <em>mode
4310: 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 3c 64 64 3e </em></dt>..<dd>
4320: 45 78 70 61 6e 73 69 6f 6e 20 6d 65 74 68 6f 64 Expansion method
4330: 2e 3c 2f 64 64 3e 0a 20 20 20 20 3c 2f 64 6c 3e .</dd>. </dl>
4340: 0a 3c 2f 62 6c 6f 63 6b 71 75 6f 74 65 3e 0a 3c .</blockquote>.<
4350: 62 6c 6f 63 6b 71 75 6f 74 65 3e 0a 09 3c 62 3e blockquote>..<b>
4360: 43 69 70 68 65 72 20 49 6e 66 6f 3c 2f 62 3e 0a Cipher Info</b>.
4370: 20 20 20 20 3c 64 6c 3e 0a 09 3c 64 74 3e 3c 73 <dl>..<dt><s
4380: 74 72 6f 6e 67 3e 63 69 70 68 65 72 3c 2f 73 74 trong>cipher</st
4390: 72 6f 6e 67 3e 20 3c 65 6d 3e 63 69 70 68 65 72 rong> <em>cipher
43a0: 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 3c 64 64 3e </em></dt>..<dd>
43b0: 54 68 65 20 63 75 72 72 65 6e 74 20 63 69 70 68 The current ciph
43c0: 65 72 20 69 6e 20 75 73 65 20 66 6f 72 20 74 68 er in use for th
43d0: 65 20 63 6f 6e 6e 65 63 74 69 6f 6e 2e 3c 2f 64 e connection.</d
43e0: 64 3e 0a 09 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e d>..<dt><strong>
43f0: 73 74 61 6e 64 61 72 64 5f 6e 61 6d 65 3c 2f 73 standard_name</s
4400: 74 72 6f 6e 67 3e 20 3c 65 6d 3e 6e 61 6d 65 3c trong> <em>name<
4410: 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 3c 64 64 3e 54 /em></dt>..<dd>T
4420: 68 65 20 73 74 61 6e 64 61 72 64 20 52 46 43 20 he standard RFC
4430: 6e 61 6d 65 20 6f 66 20 63 69 70 68 65 72 2e 3c name of cipher.<
4440: 2f 64 64 3e 0a 09 3c 64 74 3e 3c 73 74 72 6f 6e /dd>..<dt><stron
4450: 67 3e 62 69 74 73 3c 2f 73 74 72 6f 6e 67 3e 20 g>bits</strong>
4460: 3c 65 6d 3e 6e 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a <em>n</em></dt>.
4470: 09 3c 64 64 3e 54 68 65 20 6e 75 6d 62 65 72 20 .<dd>The number
4480: 6f 66 20 70 72 6f 63 65 73 73 65 64 20 62 69 74 of processed bit
4490: 73 20 75 73 65 64 20 66 6f 72 20 63 69 70 68 65 s used for ciphe
44a0: 72 2e 3c 2f 64 64 3e 0a 09 3c 64 74 3e 3c 73 74 r.</dd>..<dt><st
44b0: 72 6f 6e 67 3e 73 65 63 72 65 74 5f 62 69 74 73 rong>secret_bits
44c0: 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 6e 3c </strong> <em>n<
44d0: 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 3c 64 64 3e 54 /em></dt>..<dd>T
44e0: 68 65 20 6e 75 6d 62 65 72 20 6f 66 20 73 65 63 he number of sec
44f0: 72 65 74 20 62 69 74 73 20 75 73 65 64 20 66 6f ret bits used fo
4500: 72 20 63 69 70 68 65 72 2e 3c 2f 64 64 3e 0a 09 r cipher.</dd>..
4510: 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 6d 69 6e 5f <dt><strong>min_
4520: 76 65 72 73 69 6f 6e 3c 2f 73 74 72 6f 6e 67 3e version</strong>
4530: 20 3c 65 6d 3e 76 65 72 73 69 6f 6e 3c 2f 65 6d <em>version</em
4540: 3e 3c 2f 64 74 3e 0a 09 3c 64 64 3e 54 68 65 20 ></dt>..<dd>The
4550: 6d 69 6e 69 6d 75 6d 20 70 72 6f 74 6f 63 6f 6c minimum protocol
4560: 20 76 65 72 73 69 6f 6e 20 66 6f 72 20 63 69 70 version for cip
4570: 68 65 72 2e 3c 2f 64 64 3e 0a 09 3c 64 74 3e 3c her.</dd>..<dt><
4580: 73 74 72 6f 6e 67 3e 69 64 3c 2f 73 74 72 6f 6e strong>id</stron
4590: 67 3e 20 3c 65 6d 3e 69 64 3c 2f 65 6d 3e 3c 2f g> <em>id</em></
45a0: 64 74 3e 0a 09 3c 64 64 3e 54 68 65 20 4f 70 65 dt>..<dd>The Ope
45b0: 6e 53 53 4c 20 63 69 70 68 65 72 20 69 64 2e 3c nSSL cipher id.<
45c0: 2f 64 64 3e 0a 09 3c 64 74 3e 3c 73 74 72 6f 6e /dd>..<dt><stron
45d0: 67 3e 64 65 73 63 72 69 70 74 69 6f 6e 3c 2f 73 g>description</s
45e0: 74 72 6f 6e 67 3e 20 3c 65 6d 3e 73 74 72 69 6e trong> <em>strin
45f0: 67 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 3c 64 64 g</em></dt>..<dd
4600: 3e 41 20 74 65 78 74 20 64 65 73 63 72 69 70 74 >A text descript
4610: 69 6f 6e 20 6f 66 20 74 68 65 20 63 69 70 68 65 ion of the ciphe
4620: 72 2e 3c 2f 64 64 3e 0a 20 20 20 20 3c 2f 64 6c r.</dd>. </dl
4630: 3e 0a 3c 2f 62 6c 6f 63 6b 71 75 6f 74 65 3e 0a >.</blockquote>.
4640: 3c 62 6c 6f 63 6b 71 75 6f 74 65 3e 0a 09 3c 62 <blockquote>..<b
4650: 3e 53 65 73 73 69 6f 6e 20 49 6e 66 6f 3c 2f 62 >Session Info</b
4660: 3e 0a 20 20 20 20 3c 64 6c 3e 0a 09 3c 64 74 3e >. <dl>..<dt>
4670: 3c 73 74 72 6f 6e 67 3e 61 6c 70 6e 3c 2f 73 74 <strong>alpn</st
4680: 72 6f 6e 67 3e 20 3c 65 6d 3e 70 72 6f 74 6f 63 rong> <em>protoc
4690: 6f 6c 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 3c 64 ol</em></dt>..<d
46a0: 64 3e 54 68 65 20 70 72 6f 74 6f 63 6f 6c 20 73 d>The protocol s
46b0: 65 6c 65 63 74 65 64 20 61 66 74 65 72 20 41 70 elected after Ap
46c0: 70 6c 69 63 61 74 69 6f 6e 2d 4c 61 79 65 72 20 plication-Layer
46d0: 50 72 6f 74 6f 63 6f 6c 0a 09 20 20 20 20 4e 65 Protocol.. Ne
46e0: 67 6f 74 69 61 74 69 6f 6e 20 28 41 4c 50 4e 29 gotiation (ALPN)
46f0: 2e 3c 2f 64 64 3e 0a 09 3c 64 74 3e 3c 73 74 72 .</dd>..<dt><str
4700: 6f 6e 67 3e 72 65 73 75 6d 61 62 6c 65 3c 2f 73 ong>resumable</s
4710: 74 72 6f 6e 67 3e 20 3c 65 6d 3e 62 6f 6f 6c 65 trong> <em>boole
4720: 61 6e 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 09 3c 64 an</em></dt>..<d
4730: 64 3e 43 61 6e 20 74 68 65 20 73 65 73 73 69 6f d>Can the sessio
4740: 6e 20 62 65 20 72 65 73 75 6d 65 64 20 6f 72 20 n be resumed or
4750: 6e 6f 74 2e 3c 2f 64 64 3e 0a 09 3c 64 74 3e 3c not.</dd>..<dt><
4760: 73 74 72 6f 6e 67 3e 73 74 61 72 74 5f 74 69 6d strong>start_tim
4770: 65 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 73 e</strong> <em>s
4780: 65 63 6f 6e 64 73 3c 2f 65 6d 3e 3c 2f 64 74 3e econds</em></dt>
4790: 0a 09 3c 64 64 3e 54 69 6d 65 20 73 69 6e 63 65 ..<dd>Time since
47a0: 20 73 65 73 73 69 6f 6e 20 73 74 61 72 74 65 64 session started
47b0: 20 69 6e 20 73 65 63 6f 6e 64 73 20 73 69 6e 63 in seconds sinc
47c0: 65 20 65 70 6f 63 68 2e 3c 2f 64 64 3e 0a 09 3c e epoch.</dd>..<
47d0: 64 74 3e 3c 73 74 72 6f 6e 67 3e 74 69 6d 65 6f dt><strong>timeo
47e0: 75 74 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e ut</strong> <em>
47f0: 73 65 63 6f 6e 64 73 3c 2f 65 6d 3e 3c 2f 64 74 seconds</em></dt
4800: 3e 0a 09 3c 64 64 3e 4d 61 78 20 64 75 72 61 74 >..<dd>Max durat
4810: 69 6f 6e 20 6f 66 20 73 65 73 73 69 6f 6e 20 69 ion of session i
4820: 6e 20 73 65 63 6f 6e 64 73 20 62 65 66 6f 72 65 n seconds before
4830: 20 74 69 6d 65 2d 6f 75 74 2e 3c 2f 64 64 3e 0a time-out.</dd>.
4840: 09 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 6c 69 66 .<dt><strong>lif
4850: 65 74 69 6d 65 3c 2f 73 74 72 6f 6e 67 3e 20 3c etime</strong> <
4860: 65 6d 3e 73 65 63 6f 6e 64 73 3c 2f 65 6d 3e 3c em>seconds</em><
4870: 2f 64 74 3e 0a 09 3c 64 64 3e 53 65 73 73 69 6f /dt>..<dd>Sessio
4880: 6e 20 74 69 63 6b 65 74 20 6c 69 66 65 74 69 6d n ticket lifetim
4890: 65 20 68 69 6e 74 20 69 6e 20 73 65 63 6f 6e 64 e hint in second
48a0: 73 2e 3c 2f 64 64 3e 0a 09 3c 64 74 3e 3c 73 74 s.</dd>..<dt><st
48b0: 72 6f 6e 67 3e 73 65 73 73 69 6f 6e 5f 69 64 3c rong>session_id<
48c0: 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 62 69 6e /strong> <em>bin
48d0: 61 72 79 5f 73 74 72 69 6e 67 3c 2f 65 6d 3e 3c ary_string</em><
48e0: 2f 64 74 3e 0a 09 3c 64 64 3e 55 6e 69 71 75 65 /dt>..<dd>Unique
48f0: 20 73 65 73 73 69 6f 6e 20 69 64 20 66 6f 72 20 session id for
4900: 75 73 65 20 69 6e 20 72 65 73 75 6d 69 6e 67 20 use in resuming
4910: 74 68 65 20 73 65 73 73 69 6f 6e 2e 3c 2f 64 64 the session.</dd
4920: 3e 0a 09 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 73 >..<dt><strong>s
4930: 65 73 73 69 6f 6e 5f 74 69 63 6b 65 74 3c 2f 73 ession_ticket</s
4940: 74 72 6f 6e 67 3e 20 3c 65 6d 3e 62 69 6e 61 72 trong> <em>binar
4950: 79 5f 73 74 72 69 6e 67 3c 2f 65 6d 3e 3c 2f 64 y_string</em></d
4960: 74 3e 0a 09 3c 64 64 3e 55 6e 69 71 75 65 20 73 t>..<dd>Unique s
4970: 65 73 73 69 6f 6e 20 74 69 63 6b 65 74 20 66 6f ession ticket fo
4980: 72 20 75 73 65 20 69 6e 20 72 65 73 75 6d 69 6e r use in resumin
4990: 67 20 74 68 65 20 73 65 73 73 69 6f 6e 2e 3c 2f g the session.</
49a0: 64 64 3e 0a 09 3c 64 74 3e 3c 73 74 72 6f 6e 67 dd>..<dt><strong
49b0: 3e 74 69 63 6b 65 74 5f 61 70 70 5f 64 61 74 61 >ticket_app_data
49c0: 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 62 69 </strong> <em>bi
49d0: 6e 61 72 79 5f 73 74 72 69 6e 67 3c 2f 65 6d 3e nary_string</em>
49e0: 3c 2f 64 74 3e 0a 09 3c 64 64 3e 55 6e 69 71 75 </dt>..<dd>Uniqu
49f0: 65 20 73 65 73 73 69 6f 6e 20 74 69 63 6b 65 74 e session ticket
4a00: 20 61 70 70 6c 69 63 61 74 69 6f 6e 20 64 61 74 application dat
4a10: 61 2e 3c 2f 64 64 3e 0a 09 3c 64 74 3e 3c 73 74 a.</dd>..<dt><st
4a20: 72 6f 6e 67 3e 6d 61 73 74 65 72 5f 6b 65 79 3c rong>master_key<
4a30: 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 62 69 6e /strong> <em>bin
4a40: 61 72 79 5f 73 74 72 69 6e 67 3c 2f 65 6d 3e 3c ary_string</em><
4a50: 2f 64 74 3e 0a 09 3c 64 64 3e 55 6e 69 71 75 65 /dt>..<dd>Unique
4a60: 20 73 65 73 73 69 6f 6e 20 6d 61 73 74 65 72 20 session master
4a70: 6b 65 79 2e 3c 2f 64 64 3e 0a 09 3c 64 74 3e 3c key.</dd>..<dt><
4a80: 73 74 72 6f 6e 67 3e 73 65 73 73 69 6f 6e 5f 63 strong>session_c
4a90: 61 63 68 65 5f 6d 6f 64 65 3c 2f 73 74 72 6f 6e ache_mode</stron
4aa0: 67 3e 20 3c 65 6d 3e 6d 6f 64 65 3c 2f 65 6d 3e g> <em>mode</em>
4ab0: 3c 2f 64 74 3e 0a 09 3c 64 64 3e 53 65 72 76 65 </dt>..<dd>Serve
4ac0: 72 20 63 61 63 68 65 20 6d 6f 64 65 20 28 63 6c r cache mode (cl
4ad0: 69 65 6e 74 2c 20 73 65 72 76 65 72 2c 20 6f 72 ient, server, or
4ae0: 20 62 6f 74 68 29 2e 3c 2f 64 64 3e 0a 20 20 20 both).</dd>.
4af0: 20 3c 2f 64 6c 3e 0a 3c 2f 62 6c 6f 63 6b 71 75 </dl>.</blockqu
4b00: 6f 74 65 3e 0a 0a 20 20 20 20 3c 64 74 3e 3c 61 ote>.. <dt><a
4b10: 20 6e 61 6d 65 3d 22 74 6c 73 3a 3a 63 69 70 68 name="tls::ciph
4b20: 65 72 73 22 3e 3c 73 74 72 6f 6e 67 3e 74 6c 73 ers"><strong>tls
4b30: 3a 3a 63 69 70 68 65 72 73 3c 2f 73 74 72 6f 6e ::ciphers</stron
4b40: 67 3e 0a 20 20 20 20 3c 65 6d 3e 70 72 6f 74 6f g>. <em>proto
4b50: 63 6f 6c 20 3f 76 65 72 62 6f 73 65 3f 20 3f 73 col ?verbose? ?s
4b60: 75 70 70 6f 72 74 65 64 3f 3c 2f 65 6d 3e 3c 2f upported?</em></
4b70: 61 3e 3c 2f 64 74 3e 0a 20 20 20 20 3c 64 64 3e a></dt>. <dd>
4b80: 52 65 74 75 72 6e 73 20 61 20 6c 69 73 74 20 6f Returns a list o
4b90: 66 20 73 75 70 70 6f 72 74 65 64 20 63 69 70 68 f supported ciph
4ba0: 65 72 73 20 61 76 61 69 6c 61 62 6c 65 20 66 6f ers available fo
4bb0: 72 20 3c 65 6d 3e 70 72 6f 74 6f 63 6f 6c 3c 2f r <em>protocol</
4bc0: 65 6d 3e 2c 0a 09 77 68 65 72 65 20 70 72 6f 74 em>,..where prot
4bd0: 6f 63 6f 6c 20 6d 75 73 74 20 62 65 20 6f 6e 65 ocol must be one
4be0: 20 6f 66 20 3c 62 3e 73 73 6c 32 2c 20 73 73 6c of <b>ssl2, ssl
4bf0: 33 2c 20 74 6c 73 31 2c 20 74 6c 73 31 2e 31 2c 3, tls1, tls1.1,
4c00: 0a 09 74 6c 73 31 2e 32 2c 3c 2f 62 3e 20 6f 72 ..tls1.2,</b> or
4c10: 20 3c 62 3e 74 6c 73 31 2e 33 3c 2f 62 3e 2e 20 <b>tls1.3</b>.
4c20: 49 66 20 3c 65 6d 3e 76 65 72 62 6f 73 65 3c 2f If <em>verbose</
4c30: 65 6d 3e 20 69 73 20 73 70 65 63 69 66 69 65 64 em> is specified
4c40: 20 61 73 0a 09 74 72 75 65 20 74 68 65 6e 20 61 as..true then a
4c50: 20 76 65 72 62 6f 73 65 2c 20 68 75 6d 61 6e 20 verbose, human
4c60: 72 65 61 64 61 62 6c 65 20 6c 69 73 74 20 69 73 readable list is
4c70: 20 72 65 74 75 72 6e 65 64 20 77 69 74 68 0a 09 returned with..
4c80: 61 64 64 69 74 69 6f 6e 61 6c 20 69 6e 66 6f 72 additional infor
4c90: 6d 61 74 69 6f 6e 20 6f 6e 20 74 68 65 20 63 69 mation on the ci
4ca0: 70 68 65 72 2e 20 49 66 20 3c 65 6d 3e 73 75 70 pher. If <em>sup
4cb0: 70 6f 72 74 65 64 3c 2f 65 6d 3e 0a 09 69 73 20 ported</em>..is
4cc0: 73 70 65 63 69 66 69 65 64 20 61 73 20 74 72 75 specified as tru
4cd0: 65 2c 20 74 68 65 6e 20 6f 6e 6c 79 20 74 68 65 e, then only the
4ce0: 20 63 69 70 68 65 72 73 20 73 75 70 70 6f 72 74 ciphers support
4cf0: 65 64 20 66 6f 72 20 70 72 6f 74 6f 63 6f 6c 0a ed for protocol.
4d00: 09 77 69 6c 6c 20 62 65 20 6c 69 73 74 65 64 2e .will be listed.
4d10: 3c 2f 64 64 3e 0a 0a 20 20 20 20 3c 64 74 3e 3c </dd>.. <dt><
4d20: 61 20 6e 61 6d 65 3d 22 74 6c 73 3a 3a 70 72 6f a name="tls::pro
4d30: 74 6f 63 6f 6c 73 22 3e 3c 73 74 72 6f 6e 67 3e tocols"><strong>
4d40: 74 6c 73 3a 3a 70 72 6f 74 6f 63 6f 6c 73 3c 2f tls::protocols</
4d50: 73 74 72 6f 6e 67 3e 3c 2f 61 3e 3c 2f 64 74 3e strong></a></dt>
4d60: 0a 20 20 20 20 3c 64 64 3e 52 65 74 75 72 6e 73 . <dd>Returns
4d70: 20 61 20 6c 69 73 74 20 6f 66 20 73 75 70 70 6f a list of suppo
4d80: 72 74 65 64 20 70 72 6f 74 6f 63 6f 6c 73 2e 20 rted protocols.
4d90: 56 61 6c 69 64 20 76 61 6c 75 65 73 20 61 72 65 Valid values are
4da0: 3a 0a 09 3c 62 3e 73 73 6c 32 3c 2f 62 3e 2c 20 :..<b>ssl2</b>,
4db0: 3c 62 3e 73 73 6c 33 3c 2f 62 3e 2c 20 3c 62 3e <b>ssl3</b>, <b>
4dc0: 74 6c 73 31 3c 2f 62 3e 2c 20 3c 62 3e 74 6c 73 tls1</b>, <b>tls
4dd0: 31 2e 31 3c 2f 62 3e 2c 20 3c 62 3e 74 6c 73 31 1.1</b>, <b>tls1
4de0: 2e 32 3c 2f 62 3e 2c 0a 09 61 6e 64 20 3c 62 3e .2</b>,..and <b>
4df0: 74 6c 73 31 2e 33 3c 2f 62 3e 2e 20 45 78 61 63 tls1.3</b>. Exac
4e00: 74 20 6c 69 73 74 20 64 65 70 65 6e 64 73 20 6f t list depends o
4e10: 6e 20 4f 70 65 6e 53 53 4c 20 76 65 72 73 69 6f n OpenSSL versio
4e20: 6e 20 61 6e 64 0a 09 63 6f 6d 70 69 6c 65 20 74 n and..compile t
4e30: 69 6d 65 20 66 6c 61 67 73 2e 3c 2f 64 64 3e 0a ime flags.</dd>.
4e40: 0a 20 20 20 20 3c 64 74 3e 3c 61 20 6e 61 6d 65 . <dt><a name
4e50: 3d 22 74 6c 73 3a 3a 76 65 72 73 69 6f 6e 22 3e ="tls::version">
4e60: 3c 73 74 72 6f 6e 67 3e 74 6c 73 3a 3a 76 65 72 <strong>tls::ver
4e70: 73 69 6f 6e 3c 2f 73 74 72 6f 6e 67 3e 3c 2f 61 sion</strong></a
4e80: 3e 3c 2f 64 74 3e 0a 20 20 20 20 3c 64 64 3e 52 ></dt>. <dd>R
4e90: 65 74 75 72 6e 73 20 74 68 65 20 4f 70 65 6e 53 eturns the OpenS
4ea0: 53 4c 20 76 65 72 73 69 6f 6e 20 73 74 72 69 6e SL version strin
4eb0: 67 2e 3c 2f 64 64 3e 0a 3c 2f 64 6c 3e 0a 0a 3c g.</dd>.</dl>..<
4ec0: 68 33 3e 3c 61 20 6e 61 6d 65 3d 22 43 41 4c 4c h3><a name="CALL
4ed0: 42 41 43 4b 20 4f 50 54 49 4f 4e 53 22 3e 43 41 BACK OPTIONS">CA
4ee0: 4c 4c 42 41 43 4b 20 4f 50 54 49 4f 4e 53 3c 2f LLBACK OPTIONS</
4ef0: 61 3e 3c 2f 68 33 3e 0a 0a 3c 70 3e 0a 41 73 20 a></h3>..<p>.As
4f00: 69 6e 64 69 63 61 74 65 64 20 61 62 6f 76 65 2c indicated above,
4f10: 20 69 6e 64 69 76 69 64 75 61 6c 20 63 68 61 6e individual chan
4f20: 6e 65 6c 73 20 63 61 6e 20 62 65 20 67 69 76 65 nels can be give
4f30: 6e 20 74 68 65 69 72 20 6f 77 6e 20 63 61 6c 6c n their own call
4f40: 62 61 63 6b 73 0a 74 6f 20 68 61 6e 64 6c 65 20 backs.to handle
4f50: 69 6e 74 65 72 6d 65 64 69 61 74 65 20 70 72 6f intermediate pro
4f60: 63 65 73 73 69 6e 67 20 62 79 20 74 68 65 20 4f cessing by the O
4f70: 70 65 6e 53 53 4c 20 6c 69 62 72 61 72 79 2c 20 penSSL library,
4f80: 75 73 69 6e 67 20 74 68 65 0a 3c 73 74 72 6f 6e using the.<stron
4f90: 67 3e 2d 63 6f 6d 6d 61 6e 64 3c 2f 73 74 72 6f g>-command</stro
4fa0: 6e 67 3e 2c 20 3c 73 74 72 6f 6e 67 3e 2d 70 61 ng>, <strong>-pa
4fb0: 73 73 77 6f 72 64 3c 2f 73 74 72 6f 6e 67 3e 2c ssword</strong>,
4fc0: 20 61 6e 64 0a 3c 73 74 72 6f 6e 67 3e 2d 76 61 and.<strong>-va
4fd0: 6c 69 64 61 74 65 5f 63 6f 6d 6d 61 6e 64 3c 2f lidate_command</
4fe0: 73 74 72 6f 6e 67 3e 20 6f 70 74 69 6f 6e 73 20 strong> options
4ff0: 70 61 73 73 65 64 20 74 6f 20 65 69 74 68 65 72 passed to either
5000: 20 6f 66 0a 3c 73 74 72 6f 6e 67 3e 74 6c 73 3a of.<strong>tls:
5010: 3a 73 6f 63 6b 65 74 3c 2f 73 74 72 6f 6e 67 3e :socket</strong>
5020: 20 6f 72 20 3c 73 74 72 6f 6e 67 3e 74 6c 73 3a or <strong>tls:
5030: 3a 69 6d 70 6f 72 74 3c 2f 73 74 72 6f 6e 67 3e :import</strong>
5040: 2e 0a 49 66 20 74 68 65 20 63 61 6c 6c 62 61 63 ..If the callbac
5050: 6b 20 67 65 6e 65 72 61 74 65 73 20 61 6e 20 65 k generates an e
5060: 72 72 6f 72 2c 20 74 68 65 20 3c 62 3e 62 67 65 rror, the <b>bge
5070: 72 72 6f 72 3c 2f 62 3e 20 63 6f 6d 6d 61 6e 64 rror</b> command
5080: 20 77 69 74 68 20 62 65 0a 69 6e 76 6f 6b 65 64 with be.invoked
5090: 20 77 69 74 68 20 74 68 65 20 65 72 72 6f 72 20 with the error
50a0: 69 6e 66 6f 72 6d 61 74 69 6f 6e 2e 0a 3c 2f 70 information..</p
50b0: 3e 0a 0a 3c 62 6c 6f 63 6b 71 75 6f 74 65 3e 0a >..<blockquote>.
50c0: 3c 64 6c 3e 0a 0a 20 20 20 20 3c 64 74 3e 3c 73 <dl>.. <dt><s
50d0: 74 72 6f 6e 67 3e 2d 63 6f 6d 6d 61 6e 64 3c 2f trong>-command</
50e0: 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 63 61 6c 6c strong> <em>call
50f0: 62 61 63 6b 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 20 back</em></dt>.
5100: 20 20 20 3c 64 64 3e 0a 09 49 6e 76 6f 6b 65 73 <dd>..Invokes
5110: 20 74 68 65 20 73 70 65 63 69 66 69 65 64 20 3c the specified <
5120: 65 6d 3e 63 61 6c 6c 62 61 63 6b 3c 2f 65 6d 3e em>callback</em>
5130: 20 73 63 72 69 70 74 20 61 74 20 73 65 76 65 72 script at sever
5140: 61 6c 20 70 6f 69 6e 74 73 0a 09 64 75 72 69 6e al points..durin
5150: 67 20 74 68 65 20 4f 70 65 6e 53 53 4c 20 68 61 g the OpenSSL ha
5160: 6e 64 73 68 61 6b 65 20 61 6e 64 20 75 73 65 2e ndshake and use.
5170: 20 53 65 65 20 62 65 6c 6f 77 20 66 6f 72 20 74 See below for t
5180: 68 65 20 70 6f 73 73 69 62 6c 65 0a 09 61 72 67 he possible..arg
5190: 75 6d 65 6e 74 73 20 70 61 73 73 65 64 20 74 6f uments passed to
51a0: 20 74 68 65 20 63 61 6c 6c 62 61 63 6b 20 73 63 the callback sc
51b0: 72 69 70 74 2e 20 56 61 6c 75 65 73 20 72 65 74 ript. Values ret
51c0: 75 72 6e 65 64 20 66 72 6f 6d 20 74 68 65 0a 09 urned from the..
51d0: 63 61 6c 6c 62 61 63 6b 20 61 72 65 20 69 67 6e callback are ign
51e0: 6f 72 65 64 2e 0a 0a 09 3c 62 72 3e 0a 09 3c 62 ored....<br>..<b
51f0: 72 3e 0a 0a 09 3c 64 6c 3e 0a 0a 09 3c 64 74 3e r>...<dl>...<dt>
5200: 0a 09 20 20 3c 73 74 72 6f 6e 67 3e 65 72 72 6f .. <strong>erro
5210: 72 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 63 r</strong> <em>c
5220: 68 61 6e 6e 65 6c 20 6d 65 73 73 61 67 65 3c 2f hannel message</
5230: 65 6d 3e 0a 09 3c 2f 64 74 3e 0a 09 3c 64 64 3e em>..</dt>..<dd>
5240: 0a 09 20 20 54 68 65 20 3c 65 6d 3e 6d 65 73 73 .. The <em>mess
5250: 61 67 65 3c 2f 65 6d 3e 20 61 72 67 75 6d 65 6e age</em> argumen
5260: 74 20 63 6f 6e 74 61 69 6e 73 20 61 6e 20 65 72 t contains an er
5270: 72 6f 72 20 6d 65 73 73 61 67 65 20 67 65 6e 65 ror message gene
5280: 72 61 74 65 64 0a 09 20 20 62 79 20 74 68 65 20 rated.. by the
5290: 4f 70 65 6e 53 53 4c 20 66 75 6e 63 74 69 6f 6e OpenSSL function
52a0: 20 3c 63 6f 64 65 3e 45 52 52 5f 72 65 61 73 6f <code>ERR_reaso
52b0: 6e 5f 65 72 72 6f 72 5f 73 74 72 69 6e 67 28 29 n_error_string()
52c0: 3c 2f 63 6f 64 65 3e 2e 0a 09 3c 2f 64 64 3e 0a </code>...</dd>.
52d0: 0a 09 3c 62 72 3e 0a 0a 09 3c 64 74 3e 0a 09 20 ..<br>...<dt>..
52e0: 20 3c 73 74 72 6f 6e 67 3e 69 6e 66 6f 3c 2f 73 <strong>info</s
52f0: 74 72 6f 6e 67 3e 20 3c 65 6d 3e 63 68 61 6e 6e trong> <em>chann
5300: 65 6c 20 6d 61 6a 6f 72 20 6d 69 6e 6f 72 20 6d el major minor m
5310: 65 73 73 61 67 65 20 74 79 70 65 3c 2f 65 6d 3e essage type</em>
5320: 0a 09 3c 2f 64 74 3e 0a 09 3c 64 64 3e 0a 09 20 ..</dt>..<dd>..
5330: 20 54 68 69 73 20 66 6f 72 6d 20 6f 66 20 63 61 This form of ca
5340: 6c 6c 62 61 63 6b 20 69 73 20 69 6e 76 6f 6b 65 llback is invoke
5350: 64 20 62 79 20 74 68 65 20 4f 70 65 6e 53 53 4c d by the OpenSSL
5360: 20 66 75 6e 63 74 69 6f 6e 0a 09 20 20 3c 63 6f function.. <co
5370: 64 65 3e 53 53 4c 5f 43 54 58 5f 73 65 74 5f 69 de>SSL_CTX_set_i
5380: 6e 66 6f 5f 63 61 6c 6c 62 61 63 6b 28 29 3c 2f nfo_callback()</
5390: 63 6f 64 65 3e 20 64 75 72 69 6e 67 20 63 6f 6e code> during con
53a0: 6e 65 63 74 69 6f 6e 20 73 65 74 75 70 0a 09 20 nection setup..
53b0: 20 61 6e 64 20 75 73 65 2e 0a 09 20 20 3c 62 72 and use... <br
53c0: 3e 0a 09 20 20 3c 75 6c 3e 0a 09 20 20 3c 6c 69 >.. <ul>.. <li
53d0: 3e 50 6f 73 73 69 62 6c 65 20 76 61 6c 75 65 73 >Possible values
53e0: 20 66 6f 72 20 3c 65 6d 3e 6d 61 6a 6f 72 3c 2f for <em>major</
53f0: 65 6d 3e 20 61 72 65 3a 0a 09 20 20 3c 63 6f 64 em> are:.. <cod
5400: 65 3e 68 61 6e 64 73 68 61 6b 65 2c 20 61 6c 65 e>handshake, ale
5410: 72 74 2c 20 63 6f 6e 6e 65 63 74 2c 20 61 63 63 rt, connect, acc
5420: 65 70 74 3c 2f 63 6f 64 65 3e 2e 3c 2f 6c 69 3e ept</code>.</li>
5430: 0a 09 20 20 3c 6c 69 3e 50 6f 73 73 69 62 6c 65 .. <li>Possible
5440: 20 76 61 6c 75 65 73 20 66 6f 72 20 3c 65 6d 3e values for <em>
5450: 6d 69 6e 6f 72 3c 2f 65 6d 3e 20 61 72 65 3a 0a minor</em> are:.
5460: 09 20 20 3c 63 6f 64 65 3e 73 74 61 72 74 2c 20 . <code>start,
5470: 64 6f 6e 65 2c 20 72 65 61 64 2c 20 77 72 69 74 done, read, writ
5480: 65 2c 20 6c 6f 6f 70 2c 20 65 78 69 74 3c 2f 63 e, loop, exit</c
5490: 6f 64 65 3e 2e 3c 2f 6c 69 3e 0a 09 20 20 3c 6c ode>.</li>.. <l
54a0: 69 3e 54 68 65 20 3c 65 6d 3e 6d 65 73 73 61 67 i>The <em>messag
54b0: 65 3c 2f 65 6d 3e 20 61 72 67 75 6d 65 6e 74 20 e</em> argument
54c0: 69 73 20 61 20 64 65 73 63 72 69 70 74 69 76 65 is a descriptive
54d0: 20 73 74 72 69 6e 67 20 77 68 69 63 68 20 6d 61 string which ma
54e0: 79 0a 09 20 20 62 65 20 67 65 6e 65 72 61 74 65 y.. be generate
54f0: 64 20 65 69 74 68 65 72 20 62 79 20 3c 63 6f 64 d either by <cod
5500: 65 3e 53 53 4c 5f 73 74 61 74 65 5f 73 74 72 69 e>SSL_state_stri
5510: 6e 67 5f 6c 6f 6e 67 28 29 3c 2f 63 6f 64 65 3e ng_long()</code>
5520: 20 6f 72 20 62 79 0a 09 20 20 3c 63 6f 64 65 3e or by.. <code>
5530: 53 53 4c 5f 61 6c 65 72 74 5f 64 65 73 63 5f 73 SSL_alert_desc_s
5540: 74 72 69 6e 67 5f 6c 6f 6e 67 28 29 3c 2f 63 6f tring_long()</co
5550: 64 65 3e 2c 20 64 65 70 65 6e 64 69 6e 67 20 6f de>, depending o
5560: 6e 20 74 68 65 20 63 6f 6e 74 65 78 74 2e 3c 2f n the context.</
5570: 6c 69 3e 0a 09 20 20 3c 6c 69 3e 46 6f 72 20 61 li>.. <li>For a
5580: 6c 65 72 74 73 2c 20 74 68 65 20 70 6f 73 73 69 lerts, the possi
5590: 62 6c 65 20 76 61 6c 75 65 73 20 66 6f 72 20 3c ble values for <
55a0: 65 6d 3e 74 79 70 65 3c 2f 65 6d 3e 20 61 72 65 em>type</em> are
55b0: 3a 0a 09 20 20 3c 63 6f 64 65 3e 77 61 72 6e 69 :.. <code>warni
55c0: 6e 67 2c 20 66 61 74 61 6c 2c 20 61 6e 64 20 75 ng, fatal, and u
55d0: 6e 6b 6e 6f 77 6e 3c 2f 63 6f 64 65 3e 2e 20 46 nknown</code>. F
55e0: 6f 72 20 6f 74 68 65 72 73 2c 0a 09 20 20 3c 63 or others,.. <c
55f0: 6f 64 65 3e 69 6e 66 6f 3c 2f 63 6f 64 65 3e 20 ode>info</code>
5600: 69 73 20 75 73 65 64 2e 3c 2f 6c 69 3e 0a 09 20 is used.</li>..
5610: 20 3c 2f 75 6c 3e 0a 09 3c 2f 64 64 3e 0a 0a 09 </ul>..</dd>...
5620: 3c 64 74 3e 0a 09 20 20 3c 73 74 72 6f 6e 67 3e <dt>.. <strong>
5630: 6d 65 73 73 61 67 65 3c 2f 73 74 72 6f 6e 67 3e message</strong>
5640: 20 3c 65 6d 3e 63 68 61 6e 6e 65 6c 20 64 69 72 <em>channel dir
5650: 65 63 74 69 6f 6e 20 76 65 72 73 69 6f 6e 20 63 ection version c
5660: 6f 6e 74 65 6e 74 5f 74 79 70 65 20 64 61 74 61 ontent_type data
5670: 3c 2f 65 6d 3e 0a 09 3c 2f 64 74 3e 0a 09 3c 64 </em>..</dt>..<d
5680: 64 3e 0a 09 20 20 54 68 69 73 20 66 6f 72 6d 20 d>.. This form
5690: 6f 66 20 63 61 6c 6c 62 61 63 6b 20 69 73 20 69 of callback is i
56a0: 6e 76 6f 6b 65 64 20 62 79 20 74 68 65 20 4f 70 nvoked by the Op
56b0: 65 6e 53 53 4c 20 66 75 6e 63 74 69 6f 6e 0a 09 enSSL function..
56c0: 20 20 3c 63 6f 64 65 3e 53 53 4c 5f 73 65 74 5f <code>SSL_set_
56d0: 6d 73 67 5f 63 61 6c 6c 62 61 63 6b 28 29 3c 2f msg_callback()</
56e0: 63 6f 64 65 3e 20 77 68 65 6e 65 76 65 72 20 61 code> whenever a
56f0: 20 6d 65 73 73 61 67 65 20 69 73 20 73 65 6e 74 message is sent
5700: 20 6f 72 0a 09 20 20 72 65 63 65 69 76 65 64 2e or.. received.
5710: 20 49 74 20 69 73 20 6f 6e 6c 79 20 61 76 61 69 It is only avai
5720: 6c 61 62 6c 65 20 77 68 65 6e 0a 09 20 20 4f 70 lable when.. Op
5730: 65 6e 53 53 4c 20 69 73 20 63 6f 6d 70 6c 69 65 enSSL is complie
5740: 64 20 77 69 74 68 20 74 68 65 20 3c 65 6d 3e 65 d with the <em>e
5750: 6e 61 62 6c 65 2d 73 73 6c 2d 74 72 61 63 65 3c nable-ssl-trace<
5760: 2f 65 6d 3e 20 6f 70 74 69 6f 6e 2e 0a 09 20 20 /em> option...
5770: 57 68 65 72 65 20 3c 65 6d 3e 64 69 72 65 63 74 Where <em>direct
5780: 69 6f 6e 3c 2f 65 6d 3e 20 69 73 20 53 65 6e 74 ion</em> is Sent
5790: 20 6f 72 20 52 65 63 65 69 76 65 64 2c 20 3c 65 or Received, <e
57a0: 6d 3e 76 65 72 73 69 6f 6e 3c 2f 65 6d 3e 20 69 m>version</em> i
57b0: 73 20 74 68 65 0a 09 20 20 70 72 6f 74 6f 63 6f s the.. protoco
57c0: 6c 20 76 65 72 73 69 6f 6e 2c 20 3c 65 6d 3e 63 l version, <em>c
57d0: 6f 6e 74 65 6e 74 5f 74 79 70 65 3c 2f 65 6d 3e ontent_type</em>
57e0: 20 69 73 20 74 68 65 20 6d 65 73 73 61 67 65 20 is the message
57f0: 63 6f 6e 74 65 6e 74 20 74 79 70 65 2c 0a 09 20 content type,..
5800: 20 61 6e 64 20 3c 65 6d 3e 64 61 74 61 3c 2f 65 and <em>data</e
5810: 6d 3e 20 69 73 20 6d 6f 72 65 20 69 6e 66 6f 20 m> is more info
5820: 6f 6e 20 74 68 65 20 6d 65 73 73 61 67 65 20 66 on the message f
5830: 72 6f 6d 20 74 68 65 20 3c 63 6f 64 65 3e 53 53 rom the <code>SS
5840: 4c 5f 74 72 61 63 65 3c 2f 63 6f 64 65 3e 20 41 L_trace</code> A
5850: 50 49 2e 0a 09 3c 2f 64 64 3e 0a 09 3c 62 72 3e PI...</dd>..<br>
5860: 0a 0a 09 3c 64 74 3e 0a 09 20 20 3c 73 74 72 6f ...<dt>.. <stro
5870: 6e 67 3e 73 65 73 73 69 6f 6e 3c 2f 73 74 72 6f ng>session</stro
5880: 6e 67 3e 20 3c 65 6d 3e 63 68 61 6e 6e 65 6c 20 ng> <em>channel
5890: 73 65 73 73 69 6f 6e 5f 69 64 20 74 69 63 6b 65 session_id ticke
58a0: 74 20 6c 69 66 65 74 69 6d 65 3c 2f 65 6d 3e 0a t lifetime</em>.
58b0: 09 3c 2f 64 74 3e 0a 09 3c 64 64 3e 0a 09 20 20 .</dt>..<dd>..
58c0: 54 68 69 73 20 66 6f 72 6d 20 6f 66 20 63 61 6c This form of cal
58d0: 6c 62 61 63 6b 20 69 73 20 69 6e 76 6f 6b 65 64 lback is invoked
58e0: 20 62 79 20 74 68 65 20 4f 70 65 6e 53 53 4c 20 by the OpenSSL
58f0: 66 75 6e 63 74 69 6f 6e 0a 09 20 20 3c 63 6f 64 function.. <cod
5900: 65 3e 53 53 4c 5f 43 54 58 5f 73 65 73 73 5f 73 e>SSL_CTX_sess_s
5910: 65 74 5f 6e 65 77 5f 63 62 28 29 3c 2f 63 6f 64 et_new_cb()</cod
5920: 65 3e 2e 0a 09 20 20 57 68 65 72 65 20 3c 65 6d e>... Where <em
5930: 3e 73 65 73 73 69 6f 6e 5f 69 64 3c 2f 65 6d 3e >session_id</em>
5940: 20 69 73 20 74 68 65 20 63 75 72 72 65 6e 74 20 is the current
5950: 73 65 73 73 69 6f 6e 20 69 64 65 6e 74 69 66 69 session identifi
5960: 65 72 2c 0a 09 20 20 3c 65 6d 3e 74 69 63 6b 65 er,.. <em>ticke
5970: 74 3c 2f 65 6d 3e 20 69 73 20 74 68 65 20 73 65 t</em> is the se
5980: 73 73 69 6f 6e 20 74 69 63 6b 65 74 20 69 6e 66 ssion ticket inf
5990: 6f 2c 20 61 6e 64 20 3c 65 6d 3e 6c 69 66 65 74 o, and <em>lifet
59a0: 69 6d 65 3c 2f 65 6d 3e 0a 09 20 20 69 73 20 74 ime</em>.. is t
59b0: 68 65 20 74 68 65 20 74 69 63 6b 65 74 20 6c 69 he the ticket li
59c0: 66 65 74 69 6d 65 20 69 6e 20 73 65 63 6f 6e 64 fetime in second
59d0: 73 2e 0a 09 3c 2f 64 64 3e 0a 09 3c 62 72 3e 0a s...</dd>..<br>.
59e0: 09 3c 2f 64 6c 3e 0a 20 20 20 20 3c 2f 64 64 3e .</dl>. </dd>
59f0: 0a 0a 20 20 20 20 3c 62 72 3e 0a 0a 20 20 20 20 .. <br>..
5a00: 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 2d 70 61 73 <dt><strong>-pas
5a10: 73 77 6f 72 64 3c 2f 73 74 72 6f 6e 67 3e 20 3c sword</strong> <
5a20: 65 6d 3e 63 61 6c 6c 62 61 63 6b 3c 2f 65 6d 3e em>callback</em>
5a30: 3c 2f 64 74 3e 0a 20 20 20 20 3c 64 64 3e 0a 09 </dt>. <dd>..
5a40: 49 6e 76 6f 6b 65 73 20 74 68 65 20 73 70 65 63 Invokes the spec
5a50: 69 66 69 65 64 20 3c 65 6d 3e 63 61 6c 6c 62 61 ified <em>callba
5a60: 63 6b 3c 2f 65 6d 3e 20 73 63 72 69 70 74 20 77 ck</em> script w
5a70: 68 65 6e 20 4f 70 65 6e 53 53 4c 20 6e 65 65 64 hen OpenSSL need
5a80: 73 20 74 6f 0a 09 6f 62 74 61 69 6e 20 61 20 70 s to..obtain a p
5a90: 61 73 73 77 6f 72 64 2e 20 53 65 65 20 62 65 6c assword. See bel
5aa0: 6f 77 20 66 6f 72 20 74 68 65 20 70 6f 73 73 69 ow for the possi
5ab0: 62 6c 65 20 61 72 67 75 6d 65 6e 74 73 20 70 61 ble arguments pa
5ac0: 73 73 65 64 20 74 6f 0a 09 74 68 65 20 63 61 6c ssed to..the cal
5ad0: 6c 62 61 63 6b 20 73 63 72 69 70 74 2e 20 53 65 lback script. Se
5ae0: 65 20 62 65 6c 6f 77 20 66 6f 72 20 76 61 6c 69 e below for vali
5af0: 64 20 72 65 74 75 72 6e 20 76 61 6c 75 65 73 2e d return values.
5b00: 0a 0a 09 3c 62 72 3e 0a 09 3c 62 72 3e 0a 0a 09 ...<br>..<br>...
5b10: 3c 64 6c 3e 0a 0a 09 3c 64 74 3e 0a 09 20 20 3c <dl>...<dt>.. <
5b20: 73 74 72 6f 6e 67 3e 70 61 73 73 77 6f 72 64 3c strong>password<
5b30: 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 72 77 66 /strong> <em>rwf
5b40: 6c 61 67 20 73 69 7a 65 3c 2f 65 6d 3e 0a 09 3c lag size</em>..<
5b50: 2f 64 74 3e 0a 09 3c 64 64 3e 0a 09 20 20 49 6e /dt>..<dd>.. In
5b60: 76 6f 6b 65 64 20 77 68 65 6e 20 6c 6f 61 64 69 voked when loadi
5b70: 6e 67 20 6f 72 20 73 74 6f 72 69 6e 67 20 61 20 ng or storing a
5b80: 50 45 4d 20 63 65 72 74 69 66 69 63 61 74 65 20 PEM certificate
5b90: 77 69 74 68 20 65 6e 63 72 79 70 74 69 6f 6e 2e with encryption.
5ba0: 0a 09 20 20 57 68 65 72 65 20 3c 65 6d 3e 72 77 .. Where <em>rw
5bb0: 66 6c 61 67 3c 2f 65 6d 3e 20 69 73 20 30 20 66 flag</em> is 0 f
5bc0: 6f 72 20 72 65 61 64 69 6e 67 2f 64 65 63 72 79 or reading/decry
5bd0: 70 74 69 6f 6e 20 6f 72 20 31 20 66 6f 72 0a 09 ption or 1 for..
5be0: 20 20 77 72 69 74 69 6e 67 2f 65 6e 63 72 79 70 writing/encryp
5bf0: 74 69 6f 6e 20 28 63 61 6e 20 70 72 6f 6d 70 74 tion (can prompt
5c00: 20 75 73 65 72 20 74 6f 20 63 6f 6e 66 69 72 6d user to confirm
5c10: 29 20 61 6e 64 0a 09 20 20 3c 65 6d 3e 73 69 7a ) and.. <em>siz
5c20: 65 3c 2f 65 6d 3e 20 69 73 20 74 68 65 20 6d 61 e</em> is the ma
5c30: 78 20 70 61 73 73 77 6f 72 64 20 6c 65 6e 67 74 x password lengt
5c40: 68 20 69 6e 20 62 79 74 65 73 2e 0a 09 20 20 54 h in bytes... T
5c50: 68 65 20 63 61 6c 6c 62 61 63 6b 20 73 68 6f 75 he callback shou
5c60: 6c 64 20 72 65 74 75 72 6e 20 74 68 65 20 70 61 ld return the pa
5c70: 73 73 77 6f 72 64 20 61 73 20 61 20 73 74 72 69 ssword as a stri
5c80: 6e 67 2e 0a 09 3c 2f 64 64 3e 0a 20 20 20 20 3c ng...</dd>. <
5c90: 2f 64 64 3e 0a 0a 20 20 20 20 3c 62 72 3e 0a 0a /dd>.. <br>..
5ca0: 0a 20 20 20 20 3c 64 74 3e 3c 73 74 72 6f 6e 67 . <dt><strong
5cb0: 3e 2d 76 61 6c 69 64 61 74 65 63 6f 6d 6d 61 6e >-validatecomman
5cc0: 64 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 63 d</strong> <em>c
5cd0: 61 6c 6c 62 61 63 6b 3c 2f 65 6d 3e 3c 2f 64 74 allback</em></dt
5ce0: 3e 0a 20 20 20 20 3c 64 64 3e 0a 09 49 6e 76 6f >. <dd>..Invo
5cf0: 6b 65 73 20 74 68 65 20 73 70 65 63 69 66 69 65 kes the specifie
5d00: 64 20 3c 65 6d 3e 63 61 6c 6c 62 61 63 6b 3c 2f d <em>callback</
5d10: 65 6d 3e 20 73 63 72 69 70 74 20 64 75 72 69 6e em> script durin
5d20: 67 20 68 61 6e 64 73 68 61 6b 65 20 69 6e 0a 09 g handshake in..
5d30: 6f 72 64 65 72 20 74 6f 20 76 61 6c 69 64 61 74 order to validat
5d40: 65 20 74 68 65 20 70 72 6f 76 69 64 65 64 20 76 e the provided v
5d50: 61 6c 75 65 28 73 29 2e 20 53 65 65 20 62 65 6c alue(s). See bel
5d60: 6f 77 20 66 6f 72 20 74 68 65 20 70 6f 73 73 69 ow for the possi
5d70: 62 6c 65 0a 09 61 72 67 75 6d 65 6e 74 73 20 70 ble..arguments p
5d80: 61 73 73 65 64 20 74 6f 20 74 68 65 20 63 61 6c assed to the cal
5d90: 6c 62 61 63 6b 20 73 63 72 69 70 74 2e 0a 09 54 lback script...T
5da0: 6f 20 72 65 6a 65 63 74 20 74 68 65 20 76 61 6c o reject the val
5db0: 75 65 20 61 6e 64 20 61 62 6f 72 74 20 63 6f 6e ue and abort con
5dc0: 6e 65 63 74 69 6f 6e 2c 20 74 68 65 20 63 61 6c nection, the cal
5dd0: 6c 62 61 63 6b 20 73 68 6f 75 6c 64 20 72 65 74 lback should ret
5de0: 75 72 6e 20 30 2e 0a 09 54 6f 20 61 63 63 65 70 urn 0...To accep
5df0: 74 20 74 68 65 20 76 61 6c 75 65 20 61 6e 64 20 t the value and
5e00: 63 6f 6e 74 69 6e 75 65 20 74 68 65 20 63 6f 6e continue the con
5e10: 6e 65 63 74 69 6f 6e 2c 20 69 74 20 73 68 6f 75 nection, it shou
5e20: 6c 64 20 72 65 74 75 72 6e 20 31 2e 0a 09 54 6f ld return 1...To
5e30: 20 72 65 6a 65 63 74 20 74 68 65 20 76 61 6c 75 reject the valu
5e40: 65 2c 20 62 75 74 20 63 6f 6e 74 69 6e 75 65 20 e, but continue
5e50: 74 68 65 20 63 6f 6e 6e 65 63 74 69 6f 6e 2c 20 the connection,
5e60: 69 74 20 73 68 6f 75 6c 64 20 72 65 74 75 72 6e it should return
5e70: 20 32 2e 0a 0a 09 3c 62 72 3e 0a 09 3c 62 72 3e 2....<br>..<br>
5e80: 0a 0a 09 3c 64 6c 3e 0a 0a 09 3c 64 74 3e 0a 09 ...<dl>...<dt>..
5e90: 20 20 3c 73 74 72 6f 6e 67 3e 61 6c 70 6e 3c 2f <strong>alpn</
5ea0: 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 63 68 61 6e strong> <em>chan
5eb0: 6e 65 6c 20 70 72 6f 74 6f 63 6f 6c 20 6d 61 74 nel protocol mat
5ec0: 63 68 3c 2f 65 6d 3e 0a 09 3c 2f 64 74 3e 0a 09 ch</em>..</dt>..
5ed0: 3c 64 64 3e 0a 09 20 20 46 6f 72 20 73 65 72 76 <dd>.. For serv
5ee0: 65 72 73 2c 20 74 68 69 73 20 66 6f 72 6d 20 6f ers, this form o
5ef0: 66 20 63 61 6c 6c 62 61 63 6b 20 69 73 20 69 6e f callback is in
5f00: 76 6f 6b 65 64 20 77 68 65 6e 20 74 68 65 20 63 voked when the c
5f10: 6c 69 65 6e 74 20 41 4c 50 4e 0a 09 20 20 65 78 lient ALPN.. ex
5f20: 74 65 6e 73 69 6f 6e 20 69 73 20 72 65 63 65 69 tension is recei
5f30: 76 65 64 2e 20 49 66 20 3c 65 6d 3e 6d 61 74 63 ved. If <em>matc
5f40: 68 3c 2f 65 6d 3e 20 69 73 20 74 72 75 65 2c 20 h</em> is true,
5f50: 3c 65 6d 3e 70 72 6f 74 6f 63 6f 6c 3c 2f 65 6d <em>protocol</em
5f60: 3e 0a 09 20 20 69 73 20 74 68 65 20 66 69 72 73 >.. is the firs
5f70: 74 20 3c 62 3e 2d 61 6c 70 6e 3c 2f 62 3e 20 73 t <b>-alpn</b> s
5f80: 70 65 63 69 66 69 65 64 20 70 72 6f 74 6f 63 6f pecified protoco
5f90: 6c 20 63 6f 6d 6d 6f 6e 20 74 6f 20 74 68 65 20 l common to the
5fa0: 62 6f 74 68 20 74 68 65 0a 09 20 20 63 6c 69 65 both the.. clie
5fb0: 6e 74 20 61 6e 64 20 73 65 72 76 65 72 2e 20 49 nt and server. I
5fc0: 66 20 6e 6f 74 2c 20 74 68 65 20 66 69 72 73 74 f not, the first
5fd0: 20 63 6c 69 65 6e 74 20 73 70 65 63 69 66 69 65 client specifie
5fe0: 64 20 70 72 6f 74 6f 63 6f 6c 20 69 73 0a 09 20 d protocol is..
5ff0: 20 75 73 65 64 2e 20 43 61 6c 6c 65 64 20 61 66 used. Called af
6000: 74 65 72 20 68 65 6c 6c 6f 20 61 6e 64 20 41 4c ter hello and AL
6010: 50 4e 20 63 61 6c 6c 62 61 63 6b 73 2e 0a 09 3c PN callbacks...<
6020: 2f 64 64 3e 0a 0a 09 3c 62 72 3e 0a 0a 09 3c 64 /dd>...<br>...<d
6030: 74 3e 0a 09 20 20 3c 73 74 72 6f 6e 67 3e 68 65 t>.. <strong>he
6040: 6c 6c 6f 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d llo</strong> <em
6050: 3e 63 68 61 6e 6e 65 6c 20 73 65 72 76 65 72 6e >channel servern
6060: 61 6d 65 3c 2f 65 6d 3e 0a 09 3c 2f 64 74 3e 0a ame</em>..</dt>.
6070: 09 3c 64 64 3e 0a 09 20 20 46 6f 72 20 73 65 72 .<dd>.. For ser
6080: 76 65 72 73 2c 20 74 68 69 73 20 66 6f 72 6d 20 vers, this form
6090: 6f 66 20 63 61 6c 6c 62 61 63 6b 20 69 73 20 69 of callback is i
60a0: 6e 76 6f 6b 65 64 20 64 75 72 69 6e 67 20 63 6c nvoked during cl
60b0: 69 65 6e 74 20 68 65 6c 6c 6f 0a 09 20 20 6d 65 ient hello.. me
60c0: 73 73 61 67 65 20 70 72 6f 63 65 73 73 69 6e 67 ssage processing
60d0: 2e 20 49 74 20 69 73 20 75 73 65 64 20 74 6f 20 . It is used to
60e0: 73 65 6c 65 63 74 20 61 6e 20 61 70 70 72 6f 70 select an approp
60f0: 72 69 61 74 65 20 63 65 72 74 69 66 69 63 61 74 riate certificat
6100: 65 20 74 6f 0a 09 20 20 70 72 65 73 65 6e 74 2c e to.. present,
6110: 20 61 6e 64 20 6d 61 6b 65 20 6f 74 68 65 72 20 and make other
6120: 63 6f 6e 66 69 67 75 72 61 74 69 6f 6e 20 61 64 configuration ad
6130: 6a 75 73 74 6d 65 6e 74 73 20 72 65 6c 65 76 61 justments releva
6140: 6e 74 20 74 6f 20 74 68 61 74 0a 09 20 20 73 65 nt to that.. se
6150: 72 76 65 72 20 6e 61 6d 65 20 61 6e 64 20 69 74 rver name and it
6160: 73 20 63 6f 6e 66 69 67 75 72 61 74 69 6f 6e 2e s configuration.
6170: 20 43 61 6c 6c 65 64 20 62 65 66 6f 72 65 20 53 Called before S
6180: 4e 49 20 61 6e 64 20 41 4c 50 4e 20 63 61 6c 6c NI and ALPN call
6190: 62 61 63 6b 73 2e 0a 09 3c 2f 64 64 3e 0a 0a 09 backs...</dd>...
61a0: 3c 62 72 3e 0a 0a 09 3c 64 74 3e 0a 09 20 20 3c <br>...<dt>.. <
61b0: 73 74 72 6f 6e 67 3e 73 6e 69 3c 2f 73 74 72 6f strong>sni</stro
61c0: 6e 67 3e 20 3c 65 6d 3e 63 68 61 6e 6e 65 6c 20 ng> <em>channel
61d0: 73 65 72 76 65 72 6e 61 6d 65 3c 2f 65 6d 3e 0a servername</em>.
61e0: 09 3c 2f 64 74 3e 0a 09 3c 64 64 3e 0a 09 20 20 .</dt>..<dd>..
61f0: 46 6f 72 20 73 65 72 76 65 72 73 2c 20 74 68 69 For servers, thi
6200: 73 20 66 6f 72 6d 20 6f 66 20 63 61 6c 6c 62 61 s form of callba
6210: 63 6b 20 69 73 20 69 6e 76 6f 6b 65 64 20 77 68 ck is invoked wh
6220: 65 6e 20 74 68 65 20 53 4e 49 20 65 78 74 65 6e en the SNI exten
6230: 73 69 6f 6e 0a 09 20 20 66 72 6f 6d 20 74 68 65 sion.. from the
6240: 20 63 6c 69 65 6e 74 20 69 73 20 72 65 63 65 69 client is recei
6250: 76 65 64 2e 20 57 68 65 72 65 20 3c 65 6d 3e 73 ved. Where <em>s
6260: 65 72 76 65 72 6e 61 6d 65 3c 2f 65 6d 3e 20 69 ervername</em> i
6270: 73 20 74 68 65 20 63 6c 69 65 6e 74 0a 09 20 20 s the client..
6280: 70 72 6f 76 69 64 65 64 20 73 65 72 76 65 72 20 provided server
6290: 6e 61 6d 65 20 66 72 6f 6d 20 74 68 65 20 3c 62 name from the <b
62a0: 3e 2d 73 65 72 76 65 72 6e 61 6d 65 3c 2f 62 3e >-servername</b>
62b0: 20 6f 70 74 69 6f 6e 2e 20 54 68 69 73 20 69 73 option. This is
62c0: 0a 09 20 20 75 73 65 64 20 77 68 65 6e 20 61 20 .. used when a
62d0: 73 65 72 76 65 72 20 73 75 70 70 6f 72 74 73 20 server supports
62e0: 6d 75 6c 74 69 70 6c 65 20 6e 61 6d 65 73 2c 20 multiple names,
62f0: 73 6f 20 74 68 65 20 72 69 67 68 74 20 63 65 72 so the right cer
6300: 74 69 66 69 63 61 74 65 0a 09 20 20 63 61 6e 20 tificate.. can
6310: 62 65 20 75 73 65 64 2e 20 43 61 6c 6c 65 64 20 be used. Called
6320: 61 66 74 65 72 20 68 65 6c 6c 6f 20 63 61 6c 6c after hello call
6330: 62 61 63 6b 20 62 75 74 20 62 65 66 6f 72 65 20 back but before
6340: 41 4c 50 4e 20 63 61 6c 6c 62 61 63 6b 2e 0a 09 ALPN callback...
6350: 3c 2f 64 64 3e 0a 0a 09 3c 62 72 3e 0a 0a 09 3c </dd>...<br>...<
6360: 64 74 3e 0a 09 20 20 3c 73 74 72 6f 6e 67 3e 76 dt>.. <strong>v
6370: 65 72 69 66 79 3c 2f 73 74 72 6f 6e 67 3e 20 3c erify</strong> <
6380: 65 6d 3e 63 68 61 6e 6e 65 6c 20 64 65 70 74 68 em>channel depth
6390: 20 63 65 72 74 20 73 74 61 74 75 73 20 65 72 72 cert status err
63a0: 6f 72 3c 2f 65 6d 3e 0a 09 3c 2f 64 74 3e 0a 09 or</em>..</dt>..
63b0: 3c 64 64 3e 0a 09 20 20 54 68 69 73 20 66 6f 72 <dd>.. This for
63c0: 6d 20 6f 66 20 63 61 6c 6c 62 61 63 6b 20 69 73 m of callback is
63d0: 20 69 6e 76 6f 6b 65 64 20 62 79 20 4f 70 65 6e invoked by Open
63e0: 53 53 4c 20 77 68 65 6e 20 61 20 6e 65 77 20 63 SSL when a new c
63f0: 65 72 74 69 66 69 63 61 74 65 0a 09 20 20 69 73 ertificate.. is
6400: 20 72 65 63 65 69 76 65 64 20 66 72 6f 6d 20 74 received from t
6410: 68 65 20 70 65 65 72 2e 20 49 74 20 61 6c 6c 6f he peer. It allo
6420: 77 73 20 74 68 65 20 63 6c 69 65 6e 74 20 74 6f ws the client to
6430: 20 63 68 65 63 6b 20 74 68 65 0a 09 20 20 63 65 check the.. ce
6440: 72 74 69 66 69 63 61 74 65 20 76 65 72 69 66 69 rtificate verifi
6450: 63 61 74 69 6f 6e 20 72 65 73 75 6c 74 73 20 61 cation results a
6460: 6e 64 20 63 68 6f 6f 73 65 20 77 68 65 74 68 65 nd choose whethe
6470: 72 20 74 6f 20 63 6f 6e 74 69 6e 75 65 0a 09 20 r to continue..
6480: 20 6f 72 20 6e 6f 74 2e 20 49 74 20 69 73 20 63 or not. It is c
6490: 61 6c 6c 65 64 20 66 6f 72 20 65 61 63 68 20 63 alled for each c
64a0: 65 72 74 69 66 69 63 61 74 65 20 69 6e 20 74 68 ertificate in th
64b0: 65 20 63 65 72 74 69 66 69 63 61 74 65 20 63 68 e certificate ch
64c0: 61 69 6e 2e 0a 09 20 20 3c 75 6c 3e 0a 09 20 20 ain... <ul>..
64d0: 3c 6c 69 3e 54 68 65 20 3c 65 6d 3e 64 65 70 74 <li>The <em>dept
64e0: 68 3c 2f 65 6d 3e 20 61 72 67 75 6d 65 6e 74 20 h</em> argument
64f0: 69 73 20 61 6e 20 69 6e 74 65 67 65 72 20 72 65 is an integer re
6500: 70 72 65 73 65 6e 74 69 6e 67 20 74 68 65 0a 09 presenting the..
6510: 20 20 63 75 72 72 65 6e 74 20 64 65 70 74 68 20 current depth
6520: 6f 6e 20 74 68 65 20 63 65 72 74 69 66 69 63 61 on the certifica
6530: 74 65 20 63 68 61 69 6e 2c 20 77 69 74 68 0a 09 te chain, with..
6540: 20 20 3c 63 6f 64 65 3e 30 3c 2f 63 6f 64 65 3e <code>0</code>
6550: 20 61 73 20 74 68 65 20 70 65 65 72 20 63 65 72 as the peer cer
6560: 74 69 66 69 63 61 74 65 20 61 6e 64 20 68 69 67 tificate and hig
6570: 68 65 72 20 76 61 6c 75 65 73 20 67 6f 69 6e 67 her values going
6580: 0a 09 20 20 75 70 20 74 6f 20 74 68 65 20 43 65 .. up to the Ce
6590: 72 74 69 66 69 63 61 74 65 20 41 75 74 68 6f 72 rtificate Author
65a0: 69 74 79 20 28 43 41 29 2e 3c 2f 6c 69 3e 0a 09 ity (CA).</li>..
65b0: 20 20 3c 6c 69 3e 54 68 65 20 3c 65 6d 3e 63 65 <li>The <em>ce
65c0: 72 74 3c 2f 65 6d 3e 20 61 72 67 75 6d 65 6e 74 rt</em> argument
65d0: 20 69 73 20 61 20 6c 69 73 74 20 6f 66 20 6b 65 is a list of ke
65e0: 79 2d 76 61 6c 75 65 20 70 61 69 72 73 20 73 69 y-value pairs si
65f0: 6d 69 6c 61 72 0a 09 20 20 74 6f 20 74 68 6f 73 milar.. to thos
6600: 65 20 72 65 74 75 72 6e 65 64 20 62 79 0a 09 20 e returned by..
6610: 20 3c 61 20 68 72 65 66 3d 22 23 74 6c 73 3a 3a <a href="#tls::
6620: 73 74 61 74 75 73 22 3e 3c 73 74 72 6f 6e 67 3e status"><strong>
6630: 74 6c 73 3a 3a 73 74 61 74 75 73 3c 2f 73 74 72 tls::status</str
6640: 6f 6e 67 3e 3c 2f 61 3e 2e 3c 2f 6c 69 3e 0a 09 ong></a>.</li>..
6650: 20 20 3c 6c 69 3e 54 68 65 20 3c 65 6d 3e 73 74 <li>The <em>st
6660: 61 74 75 73 3c 2f 65 6d 3e 20 61 72 67 75 6d 65 atus</em> argume
6670: 6e 74 20 69 73 20 61 6e 20 62 6f 6f 6c 65 61 6e nt is an boolean
6680: 20 72 65 70 72 65 73 65 6e 74 69 6e 67 20 74 68 representing th
6690: 65 0a 09 20 20 76 61 6c 69 64 69 74 79 20 6f 66 e.. validity of
66a0: 20 74 68 65 20 63 75 72 72 65 6e 74 20 63 65 72 the current cer
66b0: 74 69 66 69 63 61 74 65 2e 0a 09 20 20 41 20 76 tificate... A v
66c0: 61 6c 75 65 20 6f 66 20 3c 63 6f 64 65 3e 30 3c alue of <code>0<
66d0: 2f 63 6f 64 65 3e 20 6d 65 61 6e 73 20 74 68 65 /code> means the
66e0: 20 63 65 72 74 69 66 69 63 61 74 65 20 69 73 20 certificate is
66f0: 64 65 65 6d 65 64 20 69 6e 76 61 6c 69 64 2e 0a deemed invalid..
6700: 09 20 20 41 20 76 61 6c 75 65 20 6f 66 20 3c 63 . A value of <c
6710: 6f 64 65 3e 31 3c 2f 63 6f 64 65 3e 20 6d 65 61 ode>1</code> mea
6720: 6e 73 20 74 68 65 20 63 65 72 74 69 66 69 63 61 ns the certifica
6730: 74 65 20 69 73 20 64 65 65 6d 65 64 20 76 61 6c te is deemed val
6740: 69 64 2e 3c 2f 6c 69 3e 0a 09 20 20 3c 6c 69 3e id.</li>.. <li>
6750: 54 68 65 20 3c 65 6d 3e 65 72 72 6f 72 3c 2f 65 The <em>error</e
6760: 6d 3e 20 61 72 67 75 6d 65 6e 74 20 73 75 70 70 m> argument supp
6770: 6c 69 65 73 20 74 68 65 20 6d 65 73 73 61 67 65 lies the message
6780: 2c 20 69 66 20 61 6e 79 2c 20 67 65 6e 65 72 61 , if any, genera
6790: 74 65 64 0a 09 20 20 62 79 20 3c 63 6f 64 65 3e ted.. by <code>
67a0: 58 35 30 39 5f 53 54 4f 52 45 5f 43 54 58 5f 67 X509_STORE_CTX_g
67b0: 65 74 5f 65 72 72 6f 72 28 29 3c 2f 63 6f 64 65 et_error()</code
67c0: 3e 2e 3c 2f 6c 69 3e 0a 09 20 20 3c 2f 75 6c 3e >.</li>.. </ul>
67d0: 0a 09 3c 2f 64 64 3e 0a 09 3c 62 72 3e 0a 09 3c ..</dd>..<br>..<
67e0: 2f 64 6c 3e 0a 20 20 20 20 3c 2f 64 64 3e 0a 3c /dl>. </dd>.<
67f0: 2f 64 6c 3e 0a 3c 2f 62 6c 6f 63 6b 71 75 6f 74 /dl>.</blockquot
6800: 65 3e 0a 0a 3c 70 3e 0a 52 65 66 65 72 65 6e 63 e>..<p>.Referenc
6810: 65 20 69 6d 70 6c 65 6d 65 6e 74 61 74 69 6f 6e e implementation
6820: 73 20 6f 66 20 74 68 65 73 65 20 63 61 6c 6c 62 s of these callb
6830: 61 63 6b 73 20 61 72 65 20 70 72 6f 76 69 64 65 acks are provide
6840: 64 20 69 6e 20 74 68 65 0a 64 69 73 74 72 69 62 d in the.distrib
6850: 75 74 69 6f 6e 20 61 73 20 3c 73 74 72 6f 6e 67 ution as <strong
6860: 3e 74 6c 73 3a 3a 63 61 6c 6c 62 61 63 6b 3c 2f >tls::callback</
6870: 73 74 72 6f 6e 67 3e 2c 20 3c 73 74 72 6f 6e 67 strong>, <strong
6880: 3e 74 6c 73 3a 3a 70 61 73 73 77 6f 72 64 3c 2f >tls::password</
6890: 73 74 72 6f 6e 67 3e 2c 0a 61 6e 64 20 3c 73 74 strong>,.and <st
68a0: 72 6f 6e 67 3e 74 6c 73 3a 3a 76 61 6c 69 64 61 rong>tls::valida
68b0: 74 65 5f 63 6f 6d 6d 61 6e 64 3c 2f 73 74 72 6f te_command</stro
68c0: 6e 67 3e 20 72 65 73 70 65 63 74 69 76 65 6c 79 ng> respectively
68d0: 2e 20 20 4e 6f 74 65 20 74 68 61 74 20 74 68 65 . Note that the
68e0: 73 65 20 61 72 65 0a 3c 65 6d 3e 73 61 6d 70 6c se are.<em>sampl
68f0: 65 3c 2f 65 6d 3e 20 69 6d 70 6c 65 6d 65 6e 74 e</em> implement
6900: 61 74 69 6f 6e 73 20 6f 6e 6c 79 2e 20 20 49 6e ations only. In
6910: 20 61 20 6d 6f 72 65 20 72 65 61 6c 69 73 74 69 a more realisti
6920: 63 20 64 65 70 6c 6f 79 6d 65 6e 74 0a 79 6f 75 c deployment.you
6930: 20 77 6f 75 6c 64 20 73 70 65 63 69 66 79 20 79 would specify y
6940: 6f 75 72 20 6f 77 6e 20 63 61 6c 6c 62 61 63 6b our own callback
6950: 20 73 63 72 69 70 74 73 20 6f 6e 20 65 61 63 68 scripts on each
6960: 20 54 4c 53 20 63 68 61 6e 6e 65 6c 20 75 73 69 TLS channel usi
6970: 6e 67 20 74 68 65 0a 3c 73 74 72 6f 6e 67 3e 2d ng the.<strong>-
6980: 63 6f 6d 6d 61 6e 64 3c 2f 73 74 72 6f 6e 67 3e command</strong>
6990: 2c 20 3c 73 74 72 6f 6e 67 3e 2d 70 61 73 73 77 , <strong>-passw
69a0: 6f 72 64 3c 2f 73 74 72 6f 6e 67 3e 2c 20 61 6e ord</strong>, an
69b0: 64 20 3c 73 74 72 6f 6e 67 3e 2d 76 61 6c 69 64 d <strong>-valid
69c0: 61 74 65 5f 63 6f 6d 6d 61 6e 64 3c 2f 73 74 72 ate_command</str
69d0: 6f 6e 67 3e 20 6f 70 74 69 6f 6e 73 2e 0a 3c 2f ong> options..</
69e0: 70 3e 0a 0a 3c 70 3e 0a 54 68 65 20 64 65 66 61 p>..<p>.The defa
69f0: 75 6c 74 20 62 65 68 61 76 69 6f 72 20 77 68 65 ult behavior whe
6a00: 6e 20 74 68 65 20 3c 73 74 72 6f 6e 67 3e 2d 63 n the <strong>-c
6a10: 6f 6d 6d 61 6e 64 3c 2f 73 74 72 6f 6e 67 3e 20 ommand</strong>
6a20: 61 6e 64 20 3c 73 74 72 6f 6e 67 3e 2d 76 61 6c and <strong>-val
6a30: 69 64 61 74 65 5f 63 6f 6d 6d 61 6e 64 3c 2f 73 idate_command</s
6a40: 74 72 6f 6e 67 3e 0a 6f 70 74 69 6f 6e 73 20 61 trong>.options a
6a50: 72 65 20 6e 6f 74 20 73 70 65 63 69 66 69 65 64 re not specified
6a60: 20 69 73 20 66 6f 72 20 54 4c 53 20 74 6f 20 70 is for TLS to p
6a70: 72 6f 63 65 73 73 20 74 68 65 20 61 73 73 6f 63 rocess the assoc
6a80: 69 61 74 65 64 20 6c 69 62 72 61 72 79 20 63 61 iated library ca
6a90: 6c 6c 62 61 63 6b 73 0a 69 6e 74 65 72 6e 61 6c llbacks.internal
6aa0: 6c 79 2e 20 54 68 65 20 64 65 66 61 75 6c 74 20 ly. The default
6ab0: 62 65 68 61 76 69 6f 72 20 77 68 65 6e 20 74 68 behavior when th
6ac0: 65 20 3c 73 74 72 6f 6e 67 3e 2d 70 61 73 73 77 e <strong>-passw
6ad0: 6f 72 64 3c 2f 73 74 72 6f 6e 67 3e 20 6f 70 74 ord</strong> opt
6ae0: 69 6f 6e 20 69 73 20 6e 6f 74 0a 73 70 65 63 69 ion is not.speci
6af0: 66 69 65 64 20 69 73 20 66 6f 72 20 54 4c 53 20 fied is for TLS
6b00: 74 6f 20 70 72 6f 63 65 73 73 20 74 68 65 20 61 to process the a
6b10: 73 73 6f 63 69 61 74 65 64 20 6c 69 62 72 61 72 ssociated librar
6b20: 79 20 63 61 6c 6c 62 61 63 6b 73 20 62 79 20 61 y callbacks by a
6b30: 74 74 65 6d 70 74 69 6e 67 0a 74 6f 20 63 61 6c ttempting.to cal
6b40: 6c 20 3c 73 74 72 6f 6e 67 3e 74 6c 73 3a 3a 70 l <strong>tls::p
6b50: 61 73 73 77 6f 72 64 3c 2f 73 74 72 6f 6e 67 3e assword</strong>
6b60: 2e 0a 54 68 65 20 64 69 66 66 65 72 65 6e 63 65 ..The difference
6b70: 20 62 65 74 77 65 65 6e 20 74 68 65 73 65 20 74 between these t
6b80: 77 6f 20 62 65 68 61 76 69 6f 72 73 20 69 73 20 wo behaviors is
6b90: 61 20 63 6f 6e 73 65 71 75 65 6e 63 65 20 6f 66 a consequence of
6ba0: 20 6d 61 69 6e 74 61 69 6e 69 6e 67 0a 63 6f 6d maintaining.com
6bb0: 70 61 74 69 62 69 6c 69 74 79 20 77 69 74 68 20 patibility with
6bc0: 65 61 72 6c 69 65 72 20 69 6d 70 6c 65 6d 65 6e earlier implemen
6bd0: 74 61 74 69 6f 6e 73 2e 0a 3c 2f 70 3e 0a 0a 3c tations..</p>..<
6be0: 70 3e 0a 54 68 65 20 3c 73 74 72 6f 6e 67 3e 74 p>.The <strong>t
6bf0: 6c 73 3a 3a 64 65 62 75 67 3c 2f 73 74 72 6f 6e ls::debug</stron
6c00: 67 3e 20 76 61 72 69 61 62 6c 65 20 70 72 6f 76 g> variable prov
6c10: 69 64 65 73 20 73 6f 6d 65 20 61 64 64 69 74 69 ides some additi
6c20: 6f 6e 61 6c 0a 63 6f 6e 74 72 6f 6c 20 6f 76 65 onal.control ove
6c30: 72 20 74 68 65 73 65 20 72 65 66 65 72 65 6e 63 r these referenc
6c40: 65 20 63 61 6c 6c 62 61 63 6b 73 2e 20 20 49 74 e callbacks. It
6c50: 73 20 76 61 6c 75 65 20 69 73 20 7a 65 72 6f 20 s value is zero
6c60: 62 79 20 64 65 66 61 75 6c 74 2e 0a 48 69 67 68 by default..High
6c70: 65 72 20 76 61 6c 75 65 73 20 70 72 6f 64 75 63 er values produc
6c80: 65 20 6d 6f 72 65 20 64 69 61 67 6e 6f 73 74 69 e more diagnosti
6c90: 63 20 6f 75 74 70 75 74 2c 20 61 6e 64 20 77 69 c output, and wi
6ca0: 6c 6c 20 61 6c 73 6f 20 66 6f 72 63 65 20 74 68 ll also force th
6cb0: 65 0a 76 65 72 69 66 79 20 6d 65 74 68 6f 64 20 e.verify method
6cc0: 69 6e 20 3c 73 74 72 6f 6e 67 3e 74 6c 73 3a 3a in <strong>tls::
6cd0: 63 61 6c 6c 62 61 63 6b 3c 2f 73 74 72 6f 6e 67 callback</strong
6ce0: 3e 20 74 6f 20 61 63 63 65 70 74 20 74 68 65 0a > to accept the.
6cf0: 63 65 72 74 69 66 69 63 61 74 65 2c 20 65 76 65 certificate, eve
6d00: 6e 20 77 68 65 6e 20 69 74 20 69 73 20 69 6e 76 n when it is inv
6d10: 61 6c 69 64 2e 0a 3c 2f 70 3e 0a 0a 3c 70 3e 0a alid..</p>..<p>.
6d20: 3c 65 6d 3e 0a 54 68 65 20 75 73 65 20 6f 66 20 <em>.The use of
6d30: 74 68 65 20 72 65 66 65 72 65 6e 63 65 20 63 61 the reference ca
6d40: 6c 6c 62 61 63 6b 73 20 3c 73 74 72 6f 6e 67 3e llbacks <strong>
6d50: 74 6c 73 3a 3a 63 61 6c 6c 62 61 63 6b 3c 2f 73 tls::callback</s
6d60: 74 72 6f 6e 67 3e 2c 0a 3c 73 74 72 6f 6e 67 3e trong>,.<strong>
6d70: 74 6c 73 3a 3a 70 61 73 73 77 6f 72 64 3c 2f 73 tls::password</s
6d80: 74 72 6f 6e 67 3e 2c 20 61 6e 64 20 3c 73 74 72 trong>, and <str
6d90: 6f 6e 67 3e 74 6c 73 3a 3a 76 61 6c 69 64 61 74 ong>tls::validat
6da0: 65 5f 63 6f 6d 6d 61 6e 64 3c 2f 73 74 72 6f 6e e_command</stron
6db0: 67 3e 0a 69 73 20 6e 6f 74 20 72 65 63 6f 6d 6d g>.is not recomm
6dc0: 65 6e 64 65 64 2e 20 20 54 68 65 79 20 6d 61 79 ended. They may
6dd0: 20 62 65 20 72 65 6d 6f 76 65 64 20 66 72 6f 6d be removed from
6de0: 20 66 75 74 75 72 65 20 72 65 6c 65 61 73 65 73 future releases
6df0: 2e 0a 3c 2f 65 6d 3e 0a 3c 2f 70 3e 0a 0a 3c 70 ..</em>.</p>..<p
6e00: 3e 0a 3c 65 6d 3e 0a 54 68 65 20 75 73 65 20 6f >.<em>.The use o
6e10: 66 20 74 68 65 20 76 61 72 69 61 62 6c 65 20 3c f the variable <
6e20: 73 74 72 6f 6e 67 3e 74 6c 73 3a 3a 64 65 62 75 strong>tls::debu
6e30: 67 3c 2f 73 74 72 6f 6e 67 3e 20 69 73 20 6e 6f g</strong> is no
6e40: 74 20 72 65 63 6f 6d 6d 65 6e 64 65 64 2e 0a 49 t recommended..I
6e50: 74 20 6d 61 79 20 62 65 20 72 65 6d 6f 76 65 64 t may be removed
6e60: 20 66 72 6f 6d 20 66 75 74 75 72 65 20 72 65 6c from future rel
6e70: 65 61 73 65 73 2e 0a 3c 2f 65 6d 3e 0a 3c 2f 70 eases..</em>.</p
6e80: 3e 0a 0a 3c 68 33 3e 3c 61 20 6e 61 6d 65 3d 22 >..<h3><a name="
6e90: 44 45 42 55 47 22 3e 44 45 42 55 47 3c 2f 61 3e DEBUG">DEBUG</a>
6ea0: 3c 2f 68 33 3e 0a 0a 54 4c 53 20 6b 65 79 20 6c </h3>..TLS key l
6eb0: 6f 67 67 69 6e 67 20 63 61 6e 20 62 65 20 65 6e ogging can be en
6ec0: 61 62 6c 65 64 20 62 79 20 73 65 74 74 69 6e 67 abled by setting
6ed0: 20 74 68 65 20 65 6e 76 69 72 6f 6e 6d 65 6e 74 the environment
6ee0: 20 76 61 72 69 61 62 6c 65 0a 3c 62 3e 53 53 4c variable.<b>SSL
6ef0: 4b 45 59 4c 4f 47 46 49 4c 45 3c 2f 62 3e 20 74 KEYLOGFILE</b> t
6f00: 6f 20 74 68 65 20 6e 61 6d 65 20 6f 66 20 74 68 o the name of th
6f10: 65 20 66 69 6c 65 20 74 6f 20 6c 6f 67 20 74 6f e file to log to
6f20: 2e 20 54 68 65 6e 20 77 68 65 6e 65 76 65 72 20 . Then whenever
6f30: 54 4c 53 0a 6b 65 79 20 6d 61 74 65 72 69 61 6c TLS.key material
6f40: 20 69 73 20 67 65 6e 65 72 61 74 65 64 20 6f 72 is generated or
6f50: 20 72 65 63 65 69 76 65 64 20 69 74 20 77 69 6c received it wil
6f60: 6c 20 62 65 20 6c 6f 67 67 65 64 20 74 6f 20 74 l be logged to t
6f70: 68 65 20 66 69 6c 65 2e 20 54 68 69 73 0a 69 73 he file. This.is
6f80: 20 75 73 65 66 75 6c 20 66 6f 72 20 6c 6f 67 67 useful for logg
6f90: 69 6e 67 20 6b 65 79 20 64 61 74 61 20 66 6f 72 ing key data for
6fa0: 20 6e 65 74 77 6f 72 6b 20 6c 6f 67 67 69 6e 67 network logging
6fb0: 20 74 6f 6f 6c 73 20 74 6f 20 75 73 65 20 74 6f tools to use to
6fc0: 0a 64 65 63 72 79 70 74 20 74 68 65 20 64 61 74 .decrypt the dat
6fd0: 61 2e 0a 0a 3c 68 33 3e 3c 61 20 6e 61 6d 65 3d a...<h3><a name=
6fe0: 22 48 54 54 50 53 20 45 58 41 4d 50 4c 45 22 3e "HTTPS EXAMPLE">
6ff0: 48 54 54 50 53 20 45 58 41 4d 50 4c 45 3c 2f 61 HTTPS EXAMPLE</a
7000: 3e 3c 2f 68 33 3e 0a 0a 3c 70 3e 54 68 69 73 20 ></h3>..<p>This
7010: 65 78 61 6d 70 6c 65 20 75 73 65 73 20 61 20 73 example uses a s
7020: 61 6d 70 6c 65 20 73 65 72 76 65 72 2e 70 65 6d ample server.pem
7030: 20 70 72 6f 76 69 64 65 64 20 77 69 74 68 20 74 provided with t
7040: 68 65 20 54 4c 53 20 72 65 6c 65 61 73 65 2c 0a he TLS release,.
7050: 63 6f 75 72 74 65 73 79 20 6f 66 20 74 68 65 20 courtesy of the
7060: 3c 73 74 72 6f 6e 67 3e 4f 70 65 6e 53 53 4c 3c <strong>OpenSSL<
7070: 2f 73 74 72 6f 6e 67 3e 20 70 72 6f 6a 65 63 74 /strong> project
7080: 2e 3c 2f 70 3e 0a 0a 3c 70 72 65 3e 3c 63 6f 64 .</p>..<pre><cod
7090: 65 3e 0a 70 61 63 6b 61 67 65 20 72 65 71 75 69 e>.package requi
70a0: 72 65 20 68 74 74 70 0a 70 61 63 6b 61 67 65 20 re http.package
70b0: 72 65 71 75 69 72 65 20 74 6c 73 0a 0a 68 74 74 require tls..htt
70c0: 70 3a 3a 72 65 67 69 73 74 65 72 20 68 74 74 70 p::register http
70d0: 73 20 34 34 33 20 5b 6c 69 73 74 20 3a 3a 74 6c s 443 [list ::tl
70e0: 73 3a 3a 73 6f 63 6b 65 74 20 2d 61 75 74 6f 73 s::socket -autos
70f0: 65 72 76 65 72 6e 61 6d 65 20 74 72 75 65 20 2d ervername true -
7100: 72 65 71 75 69 72 65 20 74 72 75 65 20 2d 63 61 require true -ca
7110: 64 69 72 20 2f 65 74 63 2f 73 73 6c 2f 63 65 72 dir /etc/ssl/cer
7120: 74 73 5d 0a 0a 73 65 74 20 74 6f 6b 20 5b 68 74 ts]..set tok [ht
7130: 74 70 3a 3a 67 65 74 75 72 6c 20 68 74 74 70 73 tp::geturl https
7140: 3a 2f 2f 77 77 77 2e 74 63 6c 2e 74 6b 2f 5d 0a ://www.tcl.tk/].
7150: 3c 2f 63 6f 64 65 3e 3c 2f 70 72 65 3e 0a 0a 3c </code></pre>..<
7160: 68 33 3e 3c 61 20 6e 61 6d 65 3d 22 53 50 45 43 h3><a name="SPEC
7170: 49 41 4c 20 43 4f 4e 53 49 44 45 52 41 54 49 4f IAL CONSIDERATIO
7180: 4e 53 22 3e 53 50 45 43 49 41 4c 20 43 4f 4e 53 NS">SPECIAL CONS
7190: 49 44 45 52 41 54 49 4f 4e 53 3c 2f 61 3e 3c 2f IDERATIONS</a></
71a0: 68 33 3e 0a 0a 3c 70 3e 54 68 65 20 63 61 70 61 h3>..<p>The capa
71b0: 62 69 6c 69 74 69 65 73 20 6f 66 20 74 68 69 73 bilities of this
71c0: 20 70 61 63 6b 61 67 65 20 63 61 6e 20 76 61 72 package can var
71d0: 79 20 65 6e 6f 72 6d 6f 75 73 6c 79 20 62 61 73 y enormously bas
71e0: 65 64 20 75 70 6f 6e 20 68 6f 77 20 79 6f 75 72 ed upon how your
71f0: 0a 4f 70 65 6e 53 53 4c 20 6c 69 62 72 61 72 79 .OpenSSL library
7200: 20 77 61 73 20 63 6f 6e 66 69 67 75 72 65 64 20 was configured
7210: 61 6e 64 20 62 75 69 6c 74 2e 20 4e 65 77 20 76 and built. New v
7220: 65 72 73 69 6f 6e 73 20 6d 61 79 20 6f 62 73 6f ersions may obso
7230: 6c 65 74 65 20 6f 6c 64 65 72 0a 70 72 6f 74 6f lete older.proto
7240: 63 6f 6c 20 76 65 72 73 69 6f 6e 73 2c 20 61 64 col versions, ad
7250: 64 20 6f 72 20 72 65 6d 6f 76 65 20 63 69 70 68 d or remove ciph
7260: 65 72 73 2c 20 63 68 61 6e 67 65 20 64 65 66 61 ers, change defa
7270: 75 6c 74 20 76 61 6c 75 65 73 2c 20 65 74 63 2e ult values, etc.
7280: 20 55 73 65 20 74 68 65 0a 3c 73 74 72 6f 6e 67 Use the.<strong
7290: 3e 74 6c 73 3a 3a 63 69 70 68 65 72 73 3c 2f 73 >tls::ciphers</s
72a0: 74 72 6f 6e 67 3e 20 61 6e 64 20 3c 73 74 72 6f trong> and <stro
72b0: 6e 67 3e 74 6c 73 3a 3a 70 72 6f 74 6f 63 6f 6c ng>tls::protocol
72c0: 73 3c 2f 73 74 72 6f 6e 67 3e 20 63 6f 6d 6d 61 s</strong> comma
72d0: 6e 64 73 20 74 6f 0a 6f 62 74 61 69 6e 20 74 68 nds to.obtain th
72e0: 65 20 73 75 70 70 6f 72 74 65 64 20 76 65 72 73 e supported vers
72f0: 69 6f 6e 73 2e 3c 2f 70 3e 0a 0a 3c 68 33 3e 3c ions.</p>..<h3><
7300: 61 20 6e 61 6d 65 3d 22 53 45 45 20 41 4c 53 4f a name="SEE ALSO
7310: 22 3e 53 45 45 20 41 4c 53 4f 3c 2f 61 3e 3c 2f ">SEE ALSO</a></
7320: 68 33 3e 0a 0a 3c 70 3e 3c 73 74 72 6f 6e 67 3e h3>..<p><strong>
7330: 73 6f 63 6b 65 74 3c 2f 73 74 72 6f 6e 67 3e 2c socket</strong>,
7340: 20 3c 73 74 72 6f 6e 67 3e 66 69 6c 65 65 76 65 <strong>fileeve
7350: 6e 74 2c 20 3c 2f 73 74 72 6f 6e 67 3e 3c 61 0a nt, </strong><a.
7360: 68 72 65 66 3d 22 68 74 74 70 3a 2f 2f 77 77 77 href="http://www
7370: 2e 6f 70 65 6e 73 73 6c 2e 6f 72 67 2f 22 3e 3c .openssl.org/"><
7380: 73 74 72 6f 6e 67 3e 4f 70 65 6e 53 53 4c 3c 2f strong>OpenSSL</
7390: 73 74 72 6f 6e 67 3e 3c 2f 61 3e 3c 2f 70 3e 0a strong></a></p>.
73a0: 0a 3c 68 72 3e 0a 0a 3c 70 72 65 3e 0a 43 6f 70 .<hr>..<pre>.Cop
73b0: 79 72 69 67 68 74 20 26 63 6f 70 79 3b 20 31 39 yright © 19
73c0: 39 39 20 4d 61 74 74 20 4e 65 77 6d 61 6e 2e 0a 99 Matt Newman..
73d0: 43 6f 70 79 72 69 67 68 74 20 26 63 6f 70 79 3b Copyright ©
73e0: 20 32 30 30 34 20 53 74 61 72 66 69 73 68 20 53 2004 Starfish S
73f0: 79 73 74 65 6d 73 2e 0a 3c 2f 70 72 65 3e 0a 3c ystems..</pre>.<
7400: 2f 62 6f 64 79 3e 0a 3c 2f 68 74 6d 6c 3e 0a /body>.</html>.