s_server.1 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482
  1. .\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35)
  2. .\"
  3. .\" Standard preamble:
  4. .\" ========================================================================
  5. .de Sp \" Vertical space (when we can't use .PP)
  6. .if t .sp .5v
  7. .if n .sp
  8. ..
  9. .de Vb \" Begin verbatim text
  10. .ft CW
  11. .nf
  12. .ne \\$1
  13. ..
  14. .de Ve \" End verbatim text
  15. .ft R
  16. .fi
  17. ..
  18. .\" Set up some character translations and predefined strings. \*(-- will
  19. .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
  20. .\" double quote, and \*(R" will give a right double quote. \*(C+ will
  21. .\" give a nicer C++. Capital omega is used to do unbreakable dashes and
  22. .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
  23. .\" nothing in troff, for use with C<>.
  24. .tr \(*W-
  25. .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
  26. .ie n \{\
  27. . ds -- \(*W-
  28. . ds PI pi
  29. . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
  30. . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
  31. . ds L" ""
  32. . ds R" ""
  33. . ds C` ""
  34. . ds C' ""
  35. 'br\}
  36. .el\{\
  37. . ds -- \|\(em\|
  38. . ds PI \(*p
  39. . ds L" ``
  40. . ds R" ''
  41. . ds C`
  42. . ds C'
  43. 'br\}
  44. .\"
  45. .\" Escape single quotes in literal strings from groff's Unicode transform.
  46. .ie \n(.g .ds Aq \(aq
  47. .el .ds Aq '
  48. .\"
  49. .\" If the F register is >0, we'll generate index entries on stderr for
  50. .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
  51. .\" entries marked with X<> in POD. Of course, you'll have to process the
  52. .\" output yourself in some meaningful fashion.
  53. .\"
  54. .\" Avoid warning from groff about undefined register 'F'.
  55. .de IX
  56. ..
  57. .if !\nF .nr F 0
  58. .if \nF>0 \{\
  59. . de IX
  60. . tm Index:\\$1\t\\n%\t"\\$2"
  61. ..
  62. . if !\nF==2 \{\
  63. . nr % 0
  64. . nr F 2
  65. . \}
  66. .\}
  67. .\"
  68. .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
  69. .\" Fear. Run. Save yourself. No user-serviceable parts.
  70. . \" fudge factors for nroff and troff
  71. .if n \{\
  72. . ds #H 0
  73. . ds #V .8m
  74. . ds #F .3m
  75. . ds #[ \f1
  76. . ds #] \fP
  77. .\}
  78. .if t \{\
  79. . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
  80. . ds #V .6m
  81. . ds #F 0
  82. . ds #[ \&
  83. . ds #] \&
  84. .\}
  85. . \" simple accents for nroff and troff
  86. .if n \{\
  87. . ds ' \&
  88. . ds ` \&
  89. . ds ^ \&
  90. . ds , \&
  91. . ds ~ ~
  92. . ds /
  93. .\}
  94. .if t \{\
  95. . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
  96. . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
  97. . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
  98. . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
  99. . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
  100. . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
  101. .\}
  102. . \" troff and (daisy-wheel) nroff accents
  103. .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
  104. .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
  105. .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
  106. .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
  107. .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
  108. .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
  109. .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
  110. .ds ae a\h'-(\w'a'u*4/10)'e
  111. .ds Ae A\h'-(\w'A'u*4/10)'E
  112. . \" corrections for vroff
  113. .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
  114. .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
  115. . \" for low resolution devices (crt and lpr)
  116. .if \n(.H>23 .if \n(.V>19 \
  117. \{\
  118. . ds : e
  119. . ds 8 ss
  120. . ds o a
  121. . ds d- d\h'-1'\(ga
  122. . ds D- D\h'-1'\(hy
  123. . ds th \o'bp'
  124. . ds Th \o'LP'
  125. . ds ae ae
  126. . ds Ae AE
  127. .\}
  128. .rm #[ #] #H #V #F C
  129. .\" ========================================================================
  130. .\"
  131. .IX Title "S_SERVER 1"
  132. .TH S_SERVER 1 "2019-09-12" "1.0.2g" "OpenSSL"
  133. .\" For nroff, turn off justification. Always turn off hyphenation; it makes
  134. .\" way too many mistakes in technical documents.
  135. .if n .ad l
  136. .nh
  137. .SH "NAME"
  138. s_server \- SSL/TLS server program
  139. .SH "SYNOPSIS"
  140. .IX Header "SYNOPSIS"
  141. \&\fBopenssl\fR \fBs_server\fR
  142. [\fB\-accept port\fR]
  143. [\fB\-context id\fR]
  144. [\fB\-verify depth\fR]
  145. [\fB\-Verify depth\fR]
  146. [\fB\-crl_check\fR]
  147. [\fB\-crl_check_all\fR]
  148. [\fB\-cert filename\fR]
  149. [\fB\-certform DER|PEM\fR]
  150. [\fB\-key keyfile\fR]
  151. [\fB\-keyform DER|PEM\fR]
  152. [\fB\-pass arg\fR]
  153. [\fB\-dcert filename\fR]
  154. [\fB\-dcertform DER|PEM\fR]
  155. [\fB\-dkey keyfile\fR]
  156. [\fB\-dkeyform DER|PEM\fR]
  157. [\fB\-dpass arg\fR]
  158. [\fB\-dhparam filename\fR]
  159. [\fB\-nbio\fR]
  160. [\fB\-nbio_test\fR]
  161. [\fB\-crlf\fR]
  162. [\fB\-debug\fR]
  163. [\fB\-msg\fR]
  164. [\fB\-state\fR]
  165. [\fB\-CApath directory\fR]
  166. [\fB\-CAfile filename\fR]
  167. [\fB\-no_alt_chains\fR]
  168. [\fB\-nocert\fR]
  169. [\fB\-cipher cipherlist\fR]
  170. [\fB\-serverpref\fR]
  171. [\fB\-quiet\fR]
  172. [\fB\-no_tmp_rsa\fR]
  173. [\fB\-ssl2\fR]
  174. [\fB\-ssl3\fR]
  175. [\fB\-tls1\fR]
  176. [\fB\-no_ssl2\fR]
  177. [\fB\-no_ssl3\fR]
  178. [\fB\-no_tls1\fR]
  179. [\fB\-no_dhe\fR]
  180. [\fB\-bugs\fR]
  181. [\fB\-hack\fR]
  182. [\fB\-www\fR]
  183. [\fB\-WWW\fR]
  184. [\fB\-HTTP\fR]
  185. [\fB\-engine id\fR]
  186. [\fB\-tlsextdebug\fR]
  187. [\fB\-no_ticket\fR]
  188. [\fB\-id_prefix arg\fR]
  189. [\fB\-rand file(s)\fR]
  190. [\fB\-serverinfo file\fR]
  191. [\fB\-no_resumption_on_reneg\fR]
  192. [\fB\-status\fR]
  193. [\fB\-status_verbose\fR]
  194. [\fB\-status_timeout nsec\fR]
  195. [\fB\-status_url url\fR]
  196. [\fB\-nextprotoneg protocols\fR]
  197. .SH "DESCRIPTION"
  198. .IX Header "DESCRIPTION"
  199. The \fBs_server\fR command implements a generic \s-1SSL/TLS\s0 server which listens
  200. for connections on a given port using \s-1SSL/TLS.\s0
  201. .SH "OPTIONS"
  202. .IX Header "OPTIONS"
  203. .IP "\fB\-accept port\fR" 4
  204. .IX Item "-accept port"
  205. the \s-1TCP\s0 port to listen on for connections. If not specified 4433 is used.
  206. .IP "\fB\-context id\fR" 4
  207. .IX Item "-context id"
  208. sets the \s-1SSL\s0 context id. It can be given any string value. If this option
  209. is not present a default value will be used.
  210. .IP "\fB\-cert certname\fR" 4
  211. .IX Item "-cert certname"
  212. The certificate to use, most servers cipher suites require the use of a
  213. certificate and some require a certificate with a certain public key type:
  214. for example the \s-1DSS\s0 cipher suites require a certificate containing a \s-1DSS\s0
  215. (\s-1DSA\s0) key. If not specified then the filename \*(L"server.pem\*(R" will be used.
  216. .IP "\fB\-certform format\fR" 4
  217. .IX Item "-certform format"
  218. The certificate format to use: \s-1DER\s0 or \s-1PEM. PEM\s0 is the default.
  219. .IP "\fB\-key keyfile\fR" 4
  220. .IX Item "-key keyfile"
  221. The private key to use. If not specified then the certificate file will
  222. be used.
  223. .IP "\fB\-keyform format\fR" 4
  224. .IX Item "-keyform format"
  225. The private format to use: \s-1DER\s0 or \s-1PEM. PEM\s0 is the default.
  226. .IP "\fB\-pass arg\fR" 4
  227. .IX Item "-pass arg"
  228. the private key password source. For more information about the format of \fBarg\fR
  229. see the \fB\s-1PASS PHRASE ARGUMENTS\s0\fR section in \fIopenssl\fR\|(1).
  230. .IP "\fB\-dcert filename\fR, \fB\-dkey keyname\fR" 4
  231. .IX Item "-dcert filename, -dkey keyname"
  232. specify an additional certificate and private key, these behave in the
  233. same manner as the \fB\-cert\fR and \fB\-key\fR options except there is no default
  234. if they are not specified (no additional certificate and key is used). As
  235. noted above some cipher suites require a certificate containing a key of
  236. a certain type. Some cipher suites need a certificate carrying an \s-1RSA\s0 key
  237. and some a \s-1DSS\s0 (\s-1DSA\s0) key. By using \s-1RSA\s0 and \s-1DSS\s0 certificates and keys
  238. a server can support clients which only support \s-1RSA\s0 or \s-1DSS\s0 cipher suites
  239. by using an appropriate certificate.
  240. .IP "\fB\-dcertform format\fR, \fB\-dkeyform format\fR, \fB\-dpass arg\fR" 4
  241. .IX Item "-dcertform format, -dkeyform format, -dpass arg"
  242. additional certificate and private key format and passphrase respectively.
  243. .IP "\fB\-nocert\fR" 4
  244. .IX Item "-nocert"
  245. if this option is set then no certificate is used. This restricts the
  246. cipher suites available to the anonymous ones (currently just anonymous
  247. \&\s-1DH\s0).
  248. .IP "\fB\-dhparam filename\fR" 4
  249. .IX Item "-dhparam filename"
  250. the \s-1DH\s0 parameter file to use. The ephemeral \s-1DH\s0 cipher suites generate keys
  251. using a set of \s-1DH\s0 parameters. If not specified then an attempt is made to
  252. load the parameters from the server certificate file. If this fails then
  253. a static set of parameters hard coded into the s_server program will be used.
  254. .IP "\fB\-no_dhe\fR" 4
  255. .IX Item "-no_dhe"
  256. if this option is set then no \s-1DH\s0 parameters will be loaded effectively
  257. disabling the ephemeral \s-1DH\s0 cipher suites.
  258. .IP "\fB\-no_tmp_rsa\fR" 4
  259. .IX Item "-no_tmp_rsa"
  260. certain export cipher suites sometimes use a temporary \s-1RSA\s0 key, this option
  261. disables temporary \s-1RSA\s0 key generation.
  262. .IP "\fB\-verify depth\fR, \fB\-Verify depth\fR" 4
  263. .IX Item "-verify depth, -Verify depth"
  264. The verify depth to use. This specifies the maximum length of the
  265. client certificate chain and makes the server request a certificate from
  266. the client. With the \fB\-verify\fR option a certificate is requested but the
  267. client does not have to send one, with the \fB\-Verify\fR option the client
  268. must supply a certificate or an error occurs.
  269. .Sp
  270. If the ciphersuite cannot request a client certificate (for example an
  271. anonymous ciphersuite or \s-1PSK\s0) this option has no effect.
  272. .IP "\fB\-crl_check\fR, \fB\-crl_check_all\fR" 4
  273. .IX Item "-crl_check, -crl_check_all"
  274. Check the peer certificate has not been revoked by its \s-1CA.\s0
  275. The \s-1CRL\s0(s) are appended to the certificate file. With the \fB\-crl_check_all\fR
  276. option all CRLs of all CAs in the chain are checked.
  277. .IP "\fB\-CApath directory\fR" 4
  278. .IX Item "-CApath directory"
  279. The directory to use for client certificate verification. This directory
  280. must be in \*(L"hash format\*(R", see \fBverify\fR for more information. These are
  281. also used when building the server certificate chain.
  282. .IP "\fB\-CAfile file\fR" 4
  283. .IX Item "-CAfile file"
  284. A file containing trusted certificates to use during client authentication
  285. and to use when attempting to build the server certificate chain. The list
  286. is also used in the list of acceptable client CAs passed to the client when
  287. a certificate is requested.
  288. .IP "\fB\-no_alt_chains\fR" 4
  289. .IX Item "-no_alt_chains"
  290. See the \fBverify\fR manual page for details.
  291. .IP "\fB\-state\fR" 4
  292. .IX Item "-state"
  293. prints out the \s-1SSL\s0 session states.
  294. .IP "\fB\-debug\fR" 4
  295. .IX Item "-debug"
  296. print extensive debugging information including a hex dump of all traffic.
  297. .IP "\fB\-msg\fR" 4
  298. .IX Item "-msg"
  299. show all protocol messages with hex dump.
  300. .IP "\fB\-nbio_test\fR" 4
  301. .IX Item "-nbio_test"
  302. tests non blocking I/O
  303. .IP "\fB\-nbio\fR" 4
  304. .IX Item "-nbio"
  305. turns on non blocking I/O
  306. .IP "\fB\-crlf\fR" 4
  307. .IX Item "-crlf"
  308. this option translated a line feed from the terminal into \s-1CR+LF.\s0
  309. .IP "\fB\-quiet\fR" 4
  310. .IX Item "-quiet"
  311. inhibit printing of session and certificate information.
  312. .IP "\fB\-psk_hint hint\fR" 4
  313. .IX Item "-psk_hint hint"
  314. Use the \s-1PSK\s0 identity hint \fBhint\fR when using a \s-1PSK\s0 cipher suite.
  315. .IP "\fB\-psk key\fR" 4
  316. .IX Item "-psk key"
  317. Use the \s-1PSK\s0 key \fBkey\fR when using a \s-1PSK\s0 cipher suite. The key is
  318. given as a hexadecimal number without leading 0x, for example \-psk
  319. 1a2b3c4d.
  320. .IP "\fB\-ssl2\fR, \fB\-ssl3\fR, \fB\-tls1\fR, \fB\-tls1_1\fR, \fB\-tls1_2\fR, \fB\-no_ssl2\fR, \fB\-no_ssl3\fR, \fB\-no_tls1\fR, \fB\-no_tls1_1\fR, \fB\-no_tls1_2\fR" 4
  321. .IX Item "-ssl2, -ssl3, -tls1, -tls1_1, -tls1_2, -no_ssl2, -no_ssl3, -no_tls1, -no_tls1_1, -no_tls1_2"
  322. These options require or disable the use of the specified \s-1SSL\s0 or \s-1TLS\s0 protocols.
  323. By default the initial handshake uses a \fIversion-flexible\fR method which will
  324. negotiate the highest mutually supported protocol version.
  325. .IP "\fB\-bugs\fR" 4
  326. .IX Item "-bugs"
  327. there are several known bug in \s-1SSL\s0 and \s-1TLS\s0 implementations. Adding this
  328. option enables various workarounds.
  329. .IP "\fB\-hack\fR" 4
  330. .IX Item "-hack"
  331. this option enables a further workaround for some some early Netscape
  332. \&\s-1SSL\s0 code (?).
  333. .IP "\fB\-cipher cipherlist\fR" 4
  334. .IX Item "-cipher cipherlist"
  335. this allows the cipher list used by the server to be modified. When
  336. the client sends a list of supported ciphers the first client cipher
  337. also included in the server list is used. Because the client specifies
  338. the preference order, the order of the server cipherlist irrelevant. See
  339. the \fBciphers\fR command for more information.
  340. .IP "\fB\-serverpref\fR" 4
  341. .IX Item "-serverpref"
  342. use the server's cipher preferences, rather than the client's preferences.
  343. .IP "\fB\-tlsextdebug\fR" 4
  344. .IX Item "-tlsextdebug"
  345. print out a hex dump of any \s-1TLS\s0 extensions received from the server.
  346. .IP "\fB\-no_ticket\fR" 4
  347. .IX Item "-no_ticket"
  348. disable RFC4507bis session ticket support.
  349. .IP "\fB\-www\fR" 4
  350. .IX Item "-www"
  351. sends a status message back to the client when it connects. This includes
  352. lots of information about the ciphers used and various session parameters.
  353. The output is in \s-1HTML\s0 format so this option will normally be used with a
  354. web browser.
  355. .IP "\fB\-WWW\fR" 4
  356. .IX Item "-WWW"
  357. emulates a simple web server. Pages will be resolved relative to the
  358. current directory, for example if the \s-1URL\s0 https://myhost/page.html is
  359. requested the file ./page.html will be loaded.
  360. .IP "\fB\-HTTP\fR" 4
  361. .IX Item "-HTTP"
  362. emulates a simple web server. Pages will be resolved relative to the
  363. current directory, for example if the \s-1URL\s0 https://myhost/page.html is
  364. requested the file ./page.html will be loaded. The files loaded are
  365. assumed to contain a complete and correct \s-1HTTP\s0 response (lines that
  366. are part of the \s-1HTTP\s0 response line and headers must end with \s-1CRLF\s0).
  367. .IP "\fB\-engine id\fR" 4
  368. .IX Item "-engine id"
  369. specifying an engine (by its unique \fBid\fR string) will cause \fBs_server\fR
  370. to attempt to obtain a functional reference to the specified engine,
  371. thus initialising it if needed. The engine will then be set as the default
  372. for all available algorithms.
  373. .IP "\fB\-id_prefix arg\fR" 4
  374. .IX Item "-id_prefix arg"
  375. generate \s-1SSL/TLS\s0 session IDs prefixed by \fBarg\fR. This is mostly useful
  376. for testing any \s-1SSL/TLS\s0 code (eg. proxies) that wish to deal with multiple
  377. servers, when each of which might be generating a unique range of session
  378. IDs (eg. with a certain prefix).
  379. .IP "\fB\-rand file(s)\fR" 4
  380. .IX Item "-rand file(s)"
  381. a file or files containing random data used to seed the random number
  382. generator, or an \s-1EGD\s0 socket (see \fIRAND_egd\fR\|(3)).
  383. Multiple files can be specified separated by a OS-dependent character.
  384. The separator is \fB;\fR for MS-Windows, \fB,\fR for OpenVMS, and \fB:\fR for
  385. all others.
  386. .IP "\fB\-serverinfo file\fR" 4
  387. .IX Item "-serverinfo file"
  388. a file containing one or more blocks of \s-1PEM\s0 data. Each \s-1PEM\s0 block
  389. must encode a \s-1TLS\s0 ServerHello extension (2 bytes type, 2 bytes length,
  390. followed by \*(L"length\*(R" bytes of extension data). If the client sends
  391. an empty \s-1TLS\s0 ClientHello extension matching the type, the corresponding
  392. ServerHello extension will be returned.
  393. .IP "\fB\-no_resumption_on_reneg\fR" 4
  394. .IX Item "-no_resumption_on_reneg"
  395. set \s-1SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION\s0 flag.
  396. .IP "\fB\-status\fR" 4
  397. .IX Item "-status"
  398. enables certificate status request support (aka \s-1OCSP\s0 stapling).
  399. .IP "\fB\-status_verbose\fR" 4
  400. .IX Item "-status_verbose"
  401. enables certificate status request support (aka \s-1OCSP\s0 stapling) and gives
  402. a verbose printout of the \s-1OCSP\s0 response.
  403. .IP "\fB\-status_timeout nsec\fR" 4
  404. .IX Item "-status_timeout nsec"
  405. sets the timeout for \s-1OCSP\s0 response to \fBnsec\fR seconds.
  406. .IP "\fB\-status_url url\fR" 4
  407. .IX Item "-status_url url"
  408. sets a fallback responder \s-1URL\s0 to use if no responder \s-1URL\s0 is present in the
  409. server certificate. Without this option an error is returned if the server
  410. certificate does not contain a responder address.
  411. .IP "\fB\-nextprotoneg protocols\fR" 4
  412. .IX Item "-nextprotoneg protocols"
  413. enable Next Protocol Negotiation \s-1TLS\s0 extension and provide a
  414. comma-separated list of supported protocol names.
  415. The list should contain most wanted protocols first.
  416. Protocol names are printable \s-1ASCII\s0 strings, for example \*(L"http/1.1\*(R" or
  417. \&\*(L"spdy/3\*(R".
  418. .SH "CONNECTED COMMANDS"
  419. .IX Header "CONNECTED COMMANDS"
  420. If a connection request is established with an \s-1SSL\s0 client and neither the
  421. \&\fB\-www\fR nor the \fB\-WWW\fR option has been used then normally any data received
  422. from the client is displayed and any key presses will be sent to the client.
  423. .PP
  424. Certain single letter commands are also recognized which perform special
  425. operations: these are listed below.
  426. .IP "\fBq\fR" 4
  427. .IX Item "q"
  428. end the current \s-1SSL\s0 connection but still accept new connections.
  429. .IP "\fBQ\fR" 4
  430. .IX Item "Q"
  431. end the current \s-1SSL\s0 connection and exit.
  432. .IP "\fBr\fR" 4
  433. .IX Item "r"
  434. renegotiate the \s-1SSL\s0 session.
  435. .IP "\fBR\fR" 4
  436. .IX Item "R"
  437. renegotiate the \s-1SSL\s0 session and request a client certificate.
  438. .IP "\fBP\fR" 4
  439. .IX Item "P"
  440. send some plain text down the underlying \s-1TCP\s0 connection: this should
  441. cause the client to disconnect due to a protocol violation.
  442. .IP "\fBS\fR" 4
  443. .IX Item "S"
  444. print out some session cache status information.
  445. .SH "NOTES"
  446. .IX Header "NOTES"
  447. \&\fBs_server\fR can be used to debug \s-1SSL\s0 clients. To accept connections from
  448. a web browser the command:
  449. .PP
  450. .Vb 1
  451. \& openssl s_server \-accept 443 \-www
  452. .Ve
  453. .PP
  454. can be used for example.
  455. .PP
  456. Most web browsers (in particular Netscape and \s-1MSIE\s0) only support \s-1RSA\s0 cipher
  457. suites, so they cannot connect to servers which don't use a certificate
  458. carrying an \s-1RSA\s0 key or a version of OpenSSL with \s-1RSA\s0 disabled.
  459. .PP
  460. Although specifying an empty list of CAs when requesting a client certificate
  461. is strictly speaking a protocol violation, some \s-1SSL\s0 clients interpret this to
  462. mean any \s-1CA\s0 is acceptable. This is useful for debugging purposes.
  463. .PP
  464. The session parameters can printed out using the \fBsess_id\fR program.
  465. .SH "BUGS"
  466. .IX Header "BUGS"
  467. Because this program has a lot of options and also because some of
  468. the techniques used are rather old, the C source of s_server is rather
  469. hard to read and not a model of how things should be done. A typical
  470. \&\s-1SSL\s0 server program would be much simpler.
  471. .PP
  472. The output of common ciphers is wrong: it just gives the list of ciphers that
  473. OpenSSL recognizes and the client supports.
  474. .PP
  475. There should be a way for the \fBs_server\fR program to print out details of any
  476. unknown cipher suites a client says it supports.
  477. .SH "SEE ALSO"
  478. .IX Header "SEE ALSO"
  479. \&\fIsess_id\fR\|(1), \fIs_client\fR\|(1), \fIciphers\fR\|(1)
  480. .SH "HISTORY"
  481. .IX Header "HISTORY"
  482. The \-no_alt_chains options was first added to OpenSSL 1.0.2b.