Debian Codegraph @

upstream/debian-trixie/man1/openssl-s_server.1ssl

raw
1 .\" -*- mode: troff; coding: utf-8 -*-
2 .\" Automatically generated by Pod::Man 5.0102 (Pod::Simple 3.45)
3 .\"
4 .\" Standard preamble:
5 .\" ========================================================================
6 .de Sp \" Vertical space (when we can't use .PP)
7 .if t .sp .5v
8 .if n .sp
9 ..
10 .de Vb \" Begin verbatim text
11 .ft CW
12 .nf
13 .ne \\$1
14 ..
15 .de Ve \" End verbatim text
16 .ft R
17 .fi
18 ..
19 .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>.
20 .ie n \{\
21 . ds C` ""
22 . ds C' ""
23 'br\}
24 .el\{\
25 . ds C`
26 . ds C'
27 'br\}
28 .\"
29 .\" Escape single quotes in literal strings from groff's Unicode transform.
30 .ie \n(.g .ds Aq \(aq
31 .el .ds Aq '
32 .\"
33 .\" If the F register is >0, we'll generate index entries on stderr for
34 .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
35 .\" entries marked with X<> in POD. Of course, you'll have to process the
36 .\" output yourself in some meaningful fashion.
37 .\"
38 .\" Avoid warning from groff about undefined register 'F'.
39 .de IX
40 ..
41 .nr rF 0
42 .if \n(.g .if rF .nr rF 1
43 .if (\n(rF:(\n(.g==0)) \{\
44 . if \nF \{\
45 . de IX
46 . tm Index:\\$1\t\\n%\t"\\$2"
47 ..
48 . if !\nF==2 \{\
49 . nr % 0
50 . nr F 2
51 . \}
52 . \}
53 .\}
54 .rr rF
55 .\" ========================================================================
56 .\"
57 .IX Title "OPENSSL-S_SERVER 1SSL"
58 .TH OPENSSL-S_SERVER 1SSL 2026-04-07 3.5.6 OpenSSL
59 .\" For nroff, turn off justification. Always turn off hyphenation; it makes
60 .\" way too many mistakes in technical documents.
61 .if n .ad l
62 .nh
63 .SH NAME
64 openssl\-s_server \- SSL/TLS server program
65 .SH SYNOPSIS
66 .IX Header "SYNOPSIS"
67 \&\fBopenssl\fR \fBs_server\fR
68 [\fB\-help\fR]
69 [\fB\-port\fR \fI+int\fR]
70 [\fB\-accept\fR \fIval\fR]
71 [\fB\-unix\fR \fIval\fR]
72 [\fB\-4\fR]
73 [\fB\-6\fR]
74 [\fB\-unlink\fR]
75 [\fB\-context\fR \fIval\fR]
76 [\fB\-verify\fR \fIint\fR]
77 [\fB\-Verify\fR \fIint\fR]
78 [\fB\-cert\fR \fIinfile\fR]
79 [\fB\-cert2\fR \fIinfile\fR]
80 [\fB\-certform\fR \fBDER\fR|\fBPEM\fR|\fBP12\fR]
81 [\fB\-cert_chain\fR \fIinfile\fR]
82 [\fB\-build_chain\fR]
83 [\fB\-serverinfo\fR \fIval\fR]
84 [\fB\-key\fR \fIfilename\fR|\fIuri\fR]
85 [\fB\-key2\fR \fIfilename\fR|\fIuri\fR]
86 [\fB\-keyform\fR \fBDER\fR|\fBPEM\fR|\fBP12\fR|\fBENGINE\fR]
87 [\fB\-pass\fR \fIval\fR]
88 [\fB\-dcert\fR \fIinfile\fR]
89 [\fB\-dcertform\fR \fBDER\fR|\fBPEM\fR|\fBP12\fR]
90 [\fB\-dcert_chain\fR \fIinfile\fR]
91 [\fB\-dkey\fR \fIfilename\fR|\fIuri\fR]
92 [\fB\-dkeyform\fR \fBDER\fR|\fBPEM\fR|\fBP12\fR|\fBENGINE\fR]
93 [\fB\-dpass\fR \fIval\fR]
94 [\fB\-nbio_test\fR]
95 [\fB\-crlf\fR]
96 [\fB\-debug\fR]
97 [\fB\-msg\fR]
98 [\fB\-msgfile\fR \fIoutfile\fR]
99 [\fB\-state\fR]
100 [\fB\-nocert\fR]
101 [\fB\-quiet\fR]
102 [\fB\-no_resume_ephemeral\fR]
103 [\fB\-www\fR]
104 [\fB\-WWW\fR]
105 [\fB\-http_server_binmode\fR]
106 [\fB\-no_ca_names\fR]
107 [\fB\-ignore_unexpected_eof\fR]
108 [\fB\-servername\fR]
109 [\fB\-servername_fatal\fR]
110 [\fB\-tlsextdebug\fR]
111 [\fB\-HTTP\fR]
112 [\fB\-id_prefix\fR \fIval\fR]
113 [\fB\-keymatexport\fR \fIval\fR]
114 [\fB\-keymatexportlen\fR \fI+int\fR]
115 [\fB\-CRL\fR \fIinfile\fR]
116 [\fB\-CRLform\fR \fBDER\fR|\fBPEM\fR]
117 [\fB\-crl_download\fR]
118 [\fB\-chainCAfile\fR \fIinfile\fR]
119 [\fB\-chainCApath\fR \fIdir\fR]
120 [\fB\-chainCAstore\fR \fIuri\fR]
121 [\fB\-verifyCAfile\fR \fIinfile\fR]
122 [\fB\-verifyCApath\fR \fIdir\fR]
123 [\fB\-verifyCAstore\fR \fIuri\fR]
124 [\fB\-no_cache\fR]
125 [\fB\-ext_cache\fR]
126 [\fB\-verify_return_error\fR]
127 [\fB\-verify_quiet\fR]
128 [\fB\-ign_eof\fR]
129 [\fB\-no_ign_eof\fR]
130 [\fB\-no_ems\fR]
131 [\fB\-status\fR]
132 [\fB\-status_verbose\fR]
133 [\fB\-status_timeout\fR \fIint\fR]
134 [\fB\-proxy\fR \fI[http[s]://][userinfo@]host[:port][/path][?query][#fragment]\fR]
135 [\fB\-no_proxy\fR \fIaddresses\fR]
136 [\fB\-status_url\fR \fIval\fR]
137 [\fB\-status_file\fR \fIinfile\fR]
138 [\fB\-ssl_config\fR \fIval\fR]
139 [\fB\-trace\fR]
140 [\fB\-security_debug\fR]
141 [\fB\-security_debug_verbose\fR]
142 [\fB\-brief\fR]
143 [\fB\-rev\fR]
144 [\fB\-async\fR]
145 [\fB\-max_send_frag\fR \fI+int\fR]
146 [\fB\-split_send_frag\fR \fI+int\fR]
147 [\fB\-max_pipelines\fR \fI+int\fR]
148 [\fB\-naccept\fR \fI+int\fR]
149 [\fB\-read_buf\fR \fI+int\fR]
150 [\fB\-no_tx_cert_comp\fR]
151 [\fB\-no_rx_cert_comp\fR]
152 [\fB\-dhparam\fR \fIinfile\fR]
153 [\fB\-nbio\fR]
154 [\fB\-psk_identity\fR \fIval\fR]
155 [\fB\-psk_hint\fR \fIval\fR]
156 [\fB\-psk\fR \fIval\fR]
157 [\fB\-psk_session\fR \fIfile\fR]
158 [\fB\-srpvfile\fR \fIinfile\fR]
159 [\fB\-srpuserseed\fR \fIval\fR]
160 [\fB\-timeout\fR]
161 [\fB\-mtu\fR \fI+int\fR]
162 [\fB\-listen\fR]
163 [\fB\-sctp\fR]
164 [\fB\-sctp_label_bug\fR]
165 [\fB\-use_srtp\fR \fIval\fR]
166 [\fB\-no_dhe\fR]
167 [\fB\-nextprotoneg\fR \fIval\fR]
168 [\fB\-alpn\fR \fIval\fR]
169 [\fB\-ktls\fR]
170 [\fB\-sendfile\fR]
171 [\fB\-zerocopy_sendfile\fR]
172 [\fB\-keylogfile\fR \fIoutfile\fR]
173 [\fB\-recv_max_early_data\fR \fIint\fR]
174 [\fB\-max_early_data\fR \fIint\fR]
175 [\fB\-early_data\fR]
176 [\fB\-stateless\fR]
177 [\fB\-anti_replay\fR]
178 [\fB\-no_anti_replay\fR]
179 [\fB\-num_tickets\fR]
180 [\fB\-tfo\fR]
181 [\fB\-cert_comp\fR]
182 [\fB\-nameopt\fR \fIoption\fR]
183 [\fB\-no_ssl3\fR]
184 [\fB\-no_tls1\fR]
185 [\fB\-no_tls1_1\fR]
186 [\fB\-no_tls1_2\fR]
187 [\fB\-no_tls1_3\fR]
188 [\fB\-ssl3\fR]
189 [\fB\-tls1\fR]
190 [\fB\-tls1_1\fR]
191 [\fB\-tls1_2\fR]
192 [\fB\-tls1_3\fR]
193 [\fB\-dtls\fR]
194 [\fB\-dtls1\fR]
195 [\fB\-dtls1_2\fR]
196 [\fB\-allow_proxy_certs\fR]
197 [\fB\-attime\fR \fItimestamp\fR]
198 [\fB\-no_check_time\fR]
199 [\fB\-check_ss_sig\fR]
200 [\fB\-crl_check\fR]
201 [\fB\-crl_check_all\fR]
202 [\fB\-explicit_policy\fR]
203 [\fB\-extended_crl\fR]
204 [\fB\-ignore_critical\fR]
205 [\fB\-inhibit_any\fR]
206 [\fB\-inhibit_map\fR]
207 [\fB\-partial_chain\fR]
208 [\fB\-policy\fR \fIarg\fR]
209 [\fB\-policy_check\fR]
210 [\fB\-policy_print\fR]
211 [\fB\-purpose\fR \fIpurpose\fR]
212 [\fB\-suiteB_128\fR]
213 [\fB\-suiteB_128_only\fR]
214 [\fB\-suiteB_192\fR]
215 [\fB\-trusted_first\fR]
216 [\fB\-no_alt_chains\fR]
217 [\fB\-use_deltas\fR]
218 [\fB\-auth_level\fR \fInum\fR]
219 [\fB\-verify_depth\fR \fInum\fR]
220 [\fB\-verify_email\fR \fIemail\fR]
221 [\fB\-verify_hostname\fR \fIhostname\fR]
222 [\fB\-verify_ip\fR \fIip\fR]
223 [\fB\-verify_name\fR \fIname\fR]
224 [\fB\-x509_strict\fR]
225 [\fB\-issuer_checks\fR]
226 [\fB\-bugs\fR]
227 [\fB\-no_comp\fR]
228 [\fB\-comp\fR]
229 [\fB\-no_ticket\fR]
230 [\fB\-serverpref\fR]
231 [\fB\-client_renegotiation\fR]
232 [\fB\-legacy_renegotiation\fR]
233 [\fB\-no_renegotiation\fR]
234 [\fB\-no_resumption_on_reneg\fR]
235 [\fB\-legacy_server_connect\fR]
236 [\fB\-no_legacy_server_connect\fR]
237 [\fB\-no_etm\fR]
238 [\fB\-allow_no_dhe_kex\fR]
239 [\fB\-prefer_no_dhe_kex\fR]
240 [\fB\-prioritize_chacha\fR]
241 [\fB\-strict\fR]
242 [\fB\-sigalgs\fR \fIalgs\fR]
243 [\fB\-client_sigalgs\fR \fIalgs\fR]
244 [\fB\-groups\fR \fIgroups\fR]
245 [\fB\-curves\fR \fIcurves\fR]
246 [\fB\-named_curve\fR \fIcurve\fR]
247 [\fB\-cipher\fR \fIciphers\fR]
248 [\fB\-ciphersuites\fR \fI1.3ciphers\fR]
249 [\fB\-min_protocol\fR \fIminprot\fR]
250 [\fB\-max_protocol\fR \fImaxprot\fR]
251 [\fB\-record_padding\fR \fIpadding\fR]
252 [\fB\-debug_broken_protocol\fR]
253 [\fB\-no_middlebox\fR]
254 [\fB\-xkey\fR \fIinfile\fR]
255 [\fB\-xcert\fR \fIfile\fR]
256 [\fB\-xchain\fR \fIfile\fR]
257 [\fB\-xchain_build\fR \fIfile\fR]
258 [\fB\-xcertform\fR \fBDER\fR|\fBPEM\fR]>
259 [\fB\-xkeyform\fR \fBDER\fR|\fBPEM\fR]>
260 [\fB\-CAfile\fR \fIfile\fR]
261 [\fB\-no\-CAfile\fR]
262 [\fB\-CApath\fR \fIdir\fR]
263 [\fB\-no\-CApath\fR]
264 [\fB\-CAstore\fR \fIuri\fR]
265 [\fB\-no\-CAstore\fR]
266 [\fB\-rand\fR \fIfiles\fR]
267 [\fB\-writerand\fR \fIfile\fR]
268 [\fB\-engine\fR \fIid\fR]
269 [\fB\-provider\fR \fIname\fR]
270 [\fB\-provider\-path\fR \fIpath\fR]
271 [\fB\-provparam\fR \fI[name:]key=value\fR]
272 [\fB\-propquery\fR \fIpropq\fR]
273 [\fB\-enable_server_rpk\fR]
274 [\fB\-enable_client_rpk\fR]
275 .SH DESCRIPTION
276 .IX Header "DESCRIPTION"
277 This command implements a generic SSL/TLS server which
278 listens for connections on a given port using SSL/TLS.
279 .SH OPTIONS
280 .IX Header "OPTIONS"
281 In addition to the options below, this command also supports
282 the common and server only options documented
283 "Supported Command Line Commands" in \fBSSL_CONF_cmd\fR\|(3)
284 .IP \fB\-help\fR 4
285 .IX Item "-help"
286 Print out a usage message.
287 .IP "\fB\-port\fR \fI+int\fR" 4
288 .IX Item "-port +int"
289 The TCP port to listen on for connections. If not specified 4433 is used.
290 .IP "\fB\-accept\fR \fIval\fR" 4
291 .IX Item "-accept val"
292 The optional TCP host and port to listen on for connections. If not specified, *:4433 is used.
293 .IP "\fB\-unix\fR \fIval\fR" 4
294 .IX Item "-unix val"
295 Unix domain socket to accept on.
296 .IP \fB\-4\fR 4
297 .IX Item "-4"
298 Use IPv4 only.
299 .IP \fB\-6\fR 4
300 .IX Item "-6"
301 Use IPv6 only.
302 .IP \fB\-unlink\fR 4
303 .IX Item "-unlink"
304 For \-unix, unlink any existing socket first.
305 .IP "\fB\-context\fR \fIval\fR" 4
306 .IX Item "-context val"
307 Sets the SSL context id. It can be given any string value. If this option
308 is not present a default value will be used.
309 .IP "\fB\-verify\fR \fIint\fR, \fB\-Verify\fR \fIint\fR" 4
310 .IX Item "-verify int, -Verify int"
311 The verify depth to use. This specifies the maximum length of the
312 client certificate chain and makes the server request a certificate from
313 the client. With the \fB\-verify\fR option a certificate is requested but the
314 client does not have to send one, with the \fB\-Verify\fR option the client
315 must supply a certificate or an error occurs.
316 .Sp
317 If the cipher suite cannot request a client certificate (for example an
318 anonymous cipher suite or PSK) this option has no effect.
319 .Sp
320 By default, validation of any supplied client certificate and its chain
321 is done w.r.t. the (D)TLS Client (\f(CW\*(C`sslclient\*(C'\fR) purpose.
322 For details see "Certificate Extensions" in \fBopenssl\-verification\-options\fR\|(1).
323 .IP "\fB\-cert\fR \fIinfile\fR" 4
324 .IX Item "-cert infile"
325 The certificate to use, most servers cipher suites require the use of a
326 certificate and some require a certificate with a certain public key type:
327 for example the DSS cipher suites require a certificate containing a DSS
328 (DSA) key. If not specified then the filename \fIserver.pem\fR will be used.
329 .IP "\fB\-cert2\fR \fIinfile\fR" 4
330 .IX Item "-cert2 infile"
331 The certificate file to use for servername; default is \f(CW\*(C`server2.pem\*(C'\fR.
332 .IP "\fB\-certform\fR \fBDER\fR|\fBPEM\fR|\fBP12\fR" 4
333 .IX Item "-certform DER|PEM|P12"
334 The server certificate file format; unspecified by default.
335 See \fBopenssl\-format\-options\fR\|(1) for details.
336 .IP \fB\-cert_chain\fR 4
337 .IX Item "-cert_chain"
338 A file or URI of untrusted certificates to use when attempting to build the
339 certificate chain related to the certificate specified via the \fB\-cert\fR option.
340 These untrusted certificates are sent to clients and used for generating
341 certificate status (aka OCSP stapling) requests.
342 The input can be in PEM, DER, or PKCS#12 format.
343 .IP \fB\-build_chain\fR 4
344 .IX Item "-build_chain"
345 Specify whether the application should build the server certificate chain to be
346 provided to the client.
347 .IP "\fB\-serverinfo\fR \fIval\fR" 4
348 .IX Item "-serverinfo val"
349 A file containing one or more blocks of PEM data. Each PEM block
350 must encode a TLS ServerHello extension (2 bytes type, 2 bytes length,
351 followed by "length" bytes of extension data). If the client sends
352 an empty TLS ClientHello extension matching the type, the corresponding
353 ServerHello extension will be returned.
354 .IP "\fB\-key\fR \fIfilename\fR|\fIuri\fR" 4
355 .IX Item "-key filename|uri"
356 The private key to use. If not specified then the certificate file will
357 be used.
358 .IP "\fB\-key2\fR \fIfilename\fR|\fIuri\fR" 4
359 .IX Item "-key2 filename|uri"
360 The private Key file to use for servername if not given via \fB\-cert2\fR.
361 .IP "\fB\-keyform\fR \fBDER\fR|\fBPEM\fR|\fBP12\fR|\fBENGINE\fR" 4
362 .IX Item "-keyform DER|PEM|P12|ENGINE"
363 The key format; unspecified by default.
364 See \fBopenssl\-format\-options\fR\|(1) for details.
365 .IP "\fB\-pass\fR \fIval\fR" 4
366 .IX Item "-pass val"
367 The private key and certificate file password source.
368 For more information about the format of \fIval\fR,
369 see \fBopenssl\-passphrase\-options\fR\|(1).
370 .IP "\fB\-dcert\fR \fIinfile\fR, \fB\-dkey\fR \fIfilename\fR|\fIuri\fR" 4
371 .IX Item "-dcert infile, -dkey filename|uri"
372 Specify an additional certificate and private key, these behave in the
373 same manner as the \fB\-cert\fR and \fB\-key\fR options except there is no default
374 if they are not specified (no additional certificate and key is used). As
375 noted above some cipher suites require a certificate containing a key of
376 a certain type. Some cipher suites need a certificate carrying an RSA key
377 and some a DSS (DSA) key. By using RSA and DSS certificates and keys
378 a server can support clients which only support RSA or DSS cipher suites
379 by using an appropriate certificate.
380 .IP \fB\-dcert_chain\fR 4
381 .IX Item "-dcert_chain"
382 A file or URI of untrusted certificates to use when attempting to build the
383 server certificate chain when a certificate specified via the \fB\-dcert\fR option
384 is in use.
385 The input can be in PEM, DER, or PKCS#12 format.
386 .IP "\fB\-dcertform\fR \fBDER\fR|\fBPEM\fR|\fBP12\fR" 4
387 .IX Item "-dcertform DER|PEM|P12"
388 The format of the additional certificate file; unspecified by default.
389 See \fBopenssl\-format\-options\fR\|(1) for details.
390 .IP "\fB\-dkeyform\fR \fBDER\fR|\fBPEM\fR|\fBP12\fR|\fBENGINE\fR" 4
391 .IX Item "-dkeyform DER|PEM|P12|ENGINE"
392 The format of the additional private key; unspecified by default.
393 See \fBopenssl\-format\-options\fR\|(1) for details.
394 .IP "\fB\-dpass\fR \fIval\fR" 4
395 .IX Item "-dpass val"
396 The passphrase for the additional private key and certificate.
397 For more information about the format of \fIval\fR,
398 see \fBopenssl\-passphrase\-options\fR\|(1).
399 .IP \fB\-nbio_test\fR 4
400 .IX Item "-nbio_test"
401 Tests non blocking I/O.
402 .IP \fB\-crlf\fR 4
403 .IX Item "-crlf"
404 This option translated a line feed from the terminal into CR+LF.
405 .IP \fB\-debug\fR 4
406 .IX Item "-debug"
407 Print extensive debugging information including a hex dump of all traffic.
408 .IP \fB\-security_debug\fR 4
409 .IX Item "-security_debug"
410 Print output from SSL/TLS security framework.
411 .IP \fB\-security_debug_verbose\fR 4
412 .IX Item "-security_debug_verbose"
413 Print more output from SSL/TLS security framework
414 .IP \fB\-msg\fR 4
415 .IX Item "-msg"
416 Show all protocol messages with hex dump.
417 .IP "\fB\-msgfile\fR \fIoutfile\fR" 4
418 .IX Item "-msgfile outfile"
419 File to send output of \fB\-msg\fR or \fB\-trace\fR to, default standard output.
420 .IP \fB\-state\fR 4
421 .IX Item "-state"
422 Prints the SSL session states.
423 .IP "\fB\-CRL\fR \fIinfile\fR" 4
424 .IX Item "-CRL infile"
425 The CRL file to use.
426 .IP "\fB\-CRLform\fR \fBDER\fR|\fBPEM\fR" 4
427 .IX Item "-CRLform DER|PEM"
428 The CRL file format; unspecified by default.
429 See \fBopenssl\-format\-options\fR\|(1) for details.
430 .IP \fB\-crl_download\fR 4
431 .IX Item "-crl_download"
432 Download CRLs from distribution points given in CDP extensions of certificates
433 .IP "\fB\-verifyCAfile\fR \fIfilename\fR" 4
434 .IX Item "-verifyCAfile filename"
435 A file in PEM format CA containing trusted certificates to use
436 for verifying client certificates.
437 .IP "\fB\-verifyCApath\fR \fIdir\fR" 4
438 .IX Item "-verifyCApath dir"
439 A directory containing trusted certificates to use
440 for verifying client certificates.
441 This directory must be in "hash format",
442 see \fBopenssl\-verify\fR\|(1) for more information.
443 .IP "\fB\-verifyCAstore\fR \fIuri\fR" 4
444 .IX Item "-verifyCAstore uri"
445 The URI of a store containing trusted certificates to use
446 for verifying client certificates.
447 .IP "\fB\-chainCAfile\fR \fIfile\fR" 4
448 .IX Item "-chainCAfile file"
449 A file in PEM format containing trusted certificates to use
450 when attempting to build the server certificate chain.
451 .IP "\fB\-chainCApath\fR \fIdir\fR" 4
452 .IX Item "-chainCApath dir"
453 A directory containing trusted certificates to use
454 for building the server certificate chain provided to the client.
455 This directory must be in "hash format",
456 see \fBopenssl\-verify\fR\|(1) for more information.
457 .IP "\fB\-chainCAstore\fR \fIuri\fR" 4
458 .IX Item "-chainCAstore uri"
459 The URI of a store containing trusted certificates to use
460 for building the server certificate chain provided to the client.
461 The URI may indicate a single certificate, as well as a collection of them.
462 With URIs in the \f(CW\*(C`file:\*(C'\fR scheme, this acts as \fB\-chainCAfile\fR or
463 \&\fB\-chainCApath\fR, depending on if the URI indicates a directory or a
464 single file.
465 See \fBossl_store\-file\fR\|(7) for more information on the \f(CW\*(C`file:\*(C'\fR scheme.
466 .IP \fB\-nocert\fR 4
467 .IX Item "-nocert"
468 If this option is set then no certificate is used. This restricts the
469 cipher suites available to the anonymous ones (currently just anonymous
470 DH).
471 .IP \fB\-quiet\fR 4
472 .IX Item "-quiet"
473 Inhibit printing of session and certificate information.
474 .IP \fB\-no_resume_ephemeral\fR 4
475 .IX Item "-no_resume_ephemeral"
476 Disable caching and tickets if ephemeral (EC)DH is used.
477 .IP \fB\-tlsextdebug\fR 4
478 .IX Item "-tlsextdebug"
479 Print a hex dump of any TLS extensions received from the server.
480 .IP \fB\-www\fR 4
481 .IX Item "-www"
482 Sends a status message back to the client when it connects. This includes
483 information about the ciphers used and various session parameters.
484 The output is in HTML format so this option can be used with a web browser.
485 The special URL \f(CW\*(C`/renegcert\*(C'\fR turns on client cert validation, and \f(CW\*(C`/reneg\*(C'\fR
486 tells the server to request renegotiation.
487 .IP "\fB\-WWW\fR, \fB\-HTTP\fR" 4
488 .IX Item "-WWW, -HTTP"
489 Emulates a simple web server. Pages will be resolved relative to the
490 current directory, for example if the URL \f(CW\*(C`https://myhost/page.html\*(C'\fR is
491 requested the file \fI./page.html\fR will be sent.
492 If the \fB\-HTTP\fR flag is used, the files are sent directly, and should contain
493 any HTTP response headers (including status response line).
494 If the \fB\-WWW\fR option is used,
495 the response headers are generated by the server, and the file extension is
496 examined to determine the \fBContent-Type\fR header.
497 Extensions of \f(CW\*(C`html\*(C'\fR, \f(CW\*(C`htm\*(C'\fR, and \f(CW\*(C`php\*(C'\fR are \f(CW\*(C`text/html\*(C'\fR and all others are
498 \&\f(CW\*(C`text/plain\*(C'\fR.
499 In addition, the special URL \f(CW\*(C`/stats\*(C'\fR will return status
500 information like the \fB\-www\fR option.
501 .IP \fB\-http_server_binmode\fR 4
502 .IX Item "-http_server_binmode"
503 When acting as web-server (using option \fB\-WWW\fR or \fB\-HTTP\fR) open files requested
504 by the client in binary mode.
505 .IP \fB\-no_ca_names\fR 4
506 .IX Item "-no_ca_names"
507 Disable TLS Extension CA Names. You may want to disable it for security reasons
508 or for compatibility with some Windows TLS implementations crashing when this
509 extension is larger than 1024 bytes.
510 .IP \fB\-ignore_unexpected_eof\fR 4
511 .IX Item "-ignore_unexpected_eof"
512 Some TLS implementations do not send the mandatory close_notify alert on
513 shutdown. If the application tries to wait for the close_notify alert but the
514 peer closes the connection without sending it, an error is generated. When this
515 option is enabled the peer does not need to send the close_notify alert and a
516 closed connection will be treated as if the close_notify alert was received.
517 For more information on shutting down a connection, see \fBSSL_shutdown\fR\|(3).
518 .IP \fB\-servername\fR 4
519 .IX Item "-servername"
520 Servername for HostName TLS extension.
521 .IP \fB\-servername_fatal\fR 4
522 .IX Item "-servername_fatal"
523 On servername mismatch send fatal alert (default: warning alert).
524 .IP "\fB\-id_prefix\fR \fIval\fR" 4
525 .IX Item "-id_prefix val"
526 Generate SSL/TLS session IDs prefixed by \fIval\fR. This is mostly useful
527 for testing any SSL/TLS code (e.g. proxies) that wish to deal with multiple
528 servers, when each of which might be generating a unique range of session
529 IDs (e.g. with a certain prefix).
530 .IP \fB\-keymatexport\fR 4
531 .IX Item "-keymatexport"
532 Export keying material using label.
533 .IP \fB\-keymatexportlen\fR 4
534 .IX Item "-keymatexportlen"
535 Export the given number of bytes of keying material; default 20.
536 .IP \fB\-no_cache\fR 4
537 .IX Item "-no_cache"
538 Disable session cache.
539 .IP \fB\-ext_cache\fR. 4
540 .IX Item "-ext_cache."
541 Disable internal cache, set up and use external cache.
542 .IP \fB\-verify_return_error\fR 4
543 .IX Item "-verify_return_error"
544 Verification errors normally just print a message but allow the
545 connection to continue, for debugging purposes.
546 If this option is used, then verification errors close the connection.
547 .IP \fB\-verify_quiet\fR 4
548 .IX Item "-verify_quiet"
549 No verify output except verify errors.
550 .IP \fB\-ign_eof\fR 4
551 .IX Item "-ign_eof"
552 Ignore input EOF (default: when \fB\-quiet\fR).
553 .IP \fB\-no_ign_eof\fR 4
554 .IX Item "-no_ign_eof"
555 Do not ignore input EOF.
556 .IP \fB\-no_ems\fR 4
557 .IX Item "-no_ems"
558 Disable Extended master secret negotiation.
559 .IP \fB\-status\fR 4
560 .IX Item "-status"
561 Enables certificate status request support (aka OCSP stapling).
562 .IP \fB\-status_verbose\fR 4
563 .IX Item "-status_verbose"
564 Enables certificate status request support (aka OCSP stapling) and gives
565 a verbose printout of the OCSP response.
566 Use the \fB\-cert_chain\fR option to specify the certificate of the server's
567 certificate signer that is required for certificate status requests.
568 .IP "\fB\-status_timeout\fR \fIint\fR" 4
569 .IX Item "-status_timeout int"
570 Sets the timeout for OCSP response to \fIint\fR seconds.
571 .IP "\fB\-proxy\fR \fI[http[s]://][userinfo@]host[:port][/path][?query][#fragment]\fR" 4
572 .IX Item "-proxy [http[s]://][userinfo@]host[:port][/path][?query][#fragment]"
573 The HTTP(S) proxy server to use for reaching the OCSP server unless \fB\-no_proxy\fR
574 applies, see below.
575 If the host string is an IPv6 address, it must be enclosed in \f(CW\*(C`[\*(C'\fR and \f(CW\*(C`]\*(C'\fR.
576 The proxy port defaults to 80 or 443 if the scheme is \f(CW\*(C`https\*(C'\fR; apart from that
577 the optional \f(CW\*(C`http://\*(C'\fR or \f(CW\*(C`https://\*(C'\fR prefix is ignored,
578 as well as any userinfo, path, query, and fragment components.
579 Defaults to the environment variable \f(CW\*(C`http_proxy\*(C'\fR if set, else \f(CW\*(C`HTTP_PROXY\*(C'\fR
580 in case no TLS is used, otherwise \f(CW\*(C`https_proxy\*(C'\fR if set, else \f(CW\*(C`HTTPS_PROXY\*(C'\fR.
581 .IP "\fB\-no_proxy\fR \fIaddresses\fR" 4
582 .IX Item "-no_proxy addresses"
583 List of IP addresses and/or DNS names of servers
584 not to use an HTTP(S) proxy for, separated by commas and/or whitespace
585 (where in the latter case the whole argument must be enclosed in "...").
586 Default is from the environment variable \f(CW\*(C`no_proxy\*(C'\fR if set, else \f(CW\*(C`NO_PROXY\*(C'\fR.
587 .IP "\fB\-status_url\fR \fIval\fR" 4
588 .IX Item "-status_url val"
589 Sets a fallback responder URL to use if no responder URL is present in the
590 server certificate. Without this option an error is returned if the server
591 certificate does not contain a responder address.
592 The optional userinfo and fragment URL components are ignored.
593 Any given query component is handled as part of the path component.
594 .IP "\fB\-status_file\fR \fIinfile\fR" 4
595 .IX Item "-status_file infile"
596 Overrides any OCSP responder URLs from the certificate and always provides the
597 OCSP Response stored in the file. The file must be in DER format.
598 .IP "\fB\-ssl_config\fR \fIval\fR" 4
599 .IX Item "-ssl_config val"
600 Configure SSL_CTX using the given configuration value.
601 .IP \fB\-trace\fR 4
602 .IX Item "-trace"
603 Show verbose trace output of protocol messages.
604 .IP \fB\-brief\fR 4
605 .IX Item "-brief"
606 Provide a brief summary of connection parameters instead of the normal verbose
607 output.
608 .IP \fB\-rev\fR 4
609 .IX Item "-rev"
610 Simple echo server that sends back received text reversed. Also sets \fB\-brief\fR.
611 Cannot be used in conjunction with \fB\-early_data\fR.
612 .IP \fB\-async\fR 4
613 .IX Item "-async"
614 Switch on asynchronous mode. Cryptographic operations will be performed
615 asynchronously. This will only have an effect if an asynchronous capable engine
616 is also used via the \fB\-engine\fR option. For test purposes the dummy async engine
617 (dasync) can be used (if available).
618 .IP "\fB\-max_send_frag\fR \fI+int\fR" 4
619 .IX Item "-max_send_frag +int"
620 The maximum size of data fragment to send.
621 See \fBSSL_CTX_set_max_send_fragment\fR\|(3) for further information.
622 .IP "\fB\-split_send_frag\fR \fI+int\fR" 4
623 .IX Item "-split_send_frag +int"
624 The size used to split data for encrypt pipelines. If more data is written in
625 one go than this value then it will be split into multiple pipelines, up to the
626 maximum number of pipelines defined by max_pipelines. This only has an effect if
627 a suitable cipher suite has been negotiated, an engine that supports pipelining
628 has been loaded, and max_pipelines is greater than 1. See
629 \&\fBSSL_CTX_set_split_send_fragment\fR\|(3) for further information.
630 .IP "\fB\-max_pipelines\fR \fI+int\fR" 4
631 .IX Item "-max_pipelines +int"
632 The maximum number of encrypt/decrypt pipelines to be used. This will only have
633 an effect if an engine has been loaded that supports pipelining (e.g. the dasync
634 engine) and a suitable cipher suite has been negotiated. The default value is 1.
635 See \fBSSL_CTX_set_max_pipelines\fR\|(3) for further information.
636 .IP "\fB\-naccept\fR \fI+int\fR" 4
637 .IX Item "-naccept +int"
638 The server will exit after receiving the specified number of connections,
639 default unlimited.
640 .IP "\fB\-read_buf\fR \fI+int\fR" 4
641 .IX Item "-read_buf +int"
642 The default read buffer size to be used for connections. This will only have an
643 effect if the buffer size is larger than the size that would otherwise be used
644 and pipelining is in use (see \fBSSL_CTX_set_default_read_buffer_len\fR\|(3) for
645 further information).
646 .IP \fB\-no_tx_cert_comp\fR 4
647 .IX Item "-no_tx_cert_comp"
648 Disables support for sending TLSv1.3 compressed certificates.
649 .IP \fB\-no_rx_cert_comp\fR 4
650 .IX Item "-no_rx_cert_comp"
651 Disables support for receiving TLSv1.3 compressed certificates.
652 .IP \fB\-no_comp\fR 4
653 .IX Item "-no_comp"
654 Disable negotiation of TLS compression.
655 TLS compression is not recommended and is off by default as of
656 OpenSSL 1.1.0.
657 .IP \fB\-num_tickets\fR 4
658 .IX Item "-num_tickets"
659 Control the number of tickets that will be sent to the client after a full
660 handshake in TLSv1.3. The default number of tickets is 2. This option does not
661 affect the number of tickets sent after a resumption handshake.
662 .IP "\fB\-dhparam\fR \fIinfile\fR" 4
663 .IX Item "-dhparam infile"
664 The DH parameter file to use. The ephemeral DH cipher suites generate keys
665 using a set of DH parameters. If not specified then an attempt is made to
666 load the parameters from the server certificate file.
667 If this fails then a static set of parameters hard coded into this command
668 will be used.
669 .IP \fB\-nbio\fR 4
670 .IX Item "-nbio"
671 Turns on non blocking I/O.
672 .IP \fB\-timeout\fR 4
673 .IX Item "-timeout"
674 Enable timeouts.
675 .IP \fB\-mtu\fR 4
676 .IX Item "-mtu"
677 Set link-layer MTU.
678 .IP "\fB\-psk_identity\fR \fIval\fR" 4
679 .IX Item "-psk_identity val"
680 Expect the client to send PSK identity \fIval\fR when using a PSK
681 cipher suite, and warn if they do not. By default, the expected PSK
682 identity is the string "Client_identity".
683 .IP "\fB\-psk_hint\fR \fIval\fR" 4
684 .IX Item "-psk_hint val"
685 Use the PSK identity hint \fIval\fR when using a PSK cipher suite.
686 .IP "\fB\-psk\fR \fIval\fR" 4
687 .IX Item "-psk val"
688 Use the PSK key \fIval\fR when using a PSK cipher suite. The key is
689 given as a hexadecimal number without leading 0x, for example \-psk
690 1a2b3c4d.
691 This option must be provided in order to use a PSK cipher.
692 .IP "\fB\-psk_session\fR \fIfile\fR" 4
693 .IX Item "-psk_session file"
694 Use the pem encoded SSL_SESSION data stored in \fIfile\fR as the basis of a PSK.
695 Note that this will only work if TLSv1.3 is negotiated.
696 .IP \fB\-srpvfile\fR 4
697 .IX Item "-srpvfile"
698 The verifier file for SRP.
699 This option is deprecated.
700 .IP \fB\-srpuserseed\fR 4
701 .IX Item "-srpuserseed"
702 A seed string for a default user salt.
703 This option is deprecated.
704 .IP \fB\-listen\fR 4
705 .IX Item "-listen"
706 This option can only be used in conjunction with one of the DTLS options above.
707 With this option, this command will listen on a UDP port for incoming
708 connections.
709 Any ClientHellos that arrive will be checked to see if they have a cookie in
710 them or not.
711 Any without a cookie will be responded to with a HelloVerifyRequest.
712 If a ClientHello with a cookie is received then this command will
713 connect to that peer and complete the handshake.
714 .IP \fB\-sctp\fR 4
715 .IX Item "-sctp"
716 Use SCTP for the transport protocol instead of UDP in DTLS. Must be used in
717 conjunction with \fB\-dtls\fR, \fB\-dtls1\fR or \fB\-dtls1_2\fR. This option is only
718 available where OpenSSL has support for SCTP enabled.
719 .IP \fB\-sctp_label_bug\fR 4
720 .IX Item "-sctp_label_bug"
721 Use the incorrect behaviour of older OpenSSL implementations when computing
722 endpoint-pair shared secrets for DTLS/SCTP. This allows communication with
723 older broken implementations but breaks interoperability with correct
724 implementations. Must be used in conjunction with \fB\-sctp\fR. This option is only
725 available where OpenSSL has support for SCTP enabled.
726 .IP \fB\-use_srtp\fR 4
727 .IX Item "-use_srtp"
728 Offer SRTP key management with a colon-separated profile list.
729 .IP \fB\-no_dhe\fR 4
730 .IX Item "-no_dhe"
731 If this option is set then no DH parameters will be loaded effectively
732 disabling the ephemeral DH cipher suites.
733 .IP "\fB\-alpn\fR \fIval\fR, \fB\-nextprotoneg\fR \fIval\fR" 4
734 .IX Item "-alpn val, -nextprotoneg val"
735 These flags enable the Application-Layer Protocol Negotiation
736 or Next Protocol Negotiation (NPN) extension, respectively. ALPN is the
737 IETF standard and replaces NPN.
738 The \fIval\fR list is a comma-separated list of supported protocol
739 names. The list should contain the most desirable protocols first.
740 Protocol names are printable ASCII strings, for example "http/1.1" or
741 "spdy/3".
742 The flag \fB\-nextprotoneg\fR cannot be specified if \fB\-tls1_3\fR is used.
743 .IP \fB\-ktls\fR 4
744 .IX Item "-ktls"
745 Enable Kernel TLS for sending and receiving.
746 This option was introduced in OpenSSL 3.2.0.
747 Kernel TLS is off by default as of OpenSSL 3.2.0.
748 .IP \fB\-sendfile\fR 4
749 .IX Item "-sendfile"
750 If this option is set and KTLS is enabled, \fBSSL_sendfile()\fR will be used
751 instead of \fBBIO_write()\fR to send the HTTP response requested by a client.
752 This option is only valid when \fB\-ktls\fR along with \fB\-WWW\fR or \fB\-HTTP\fR
753 are specified.
754 .IP \fB\-zerocopy_sendfile\fR 4
755 .IX Item "-zerocopy_sendfile"
756 If this option is set, \fBSSL_sendfile()\fR will use the zerocopy TX mode, which gives
757 a performance boost when used with KTLS hardware offload. Note that invalid
758 TLS records might be transmitted if the file is changed while being sent.
759 This option depends on \fB\-sendfile\fR; when used alone, \fB\-sendfile\fR is implied,
760 and a warning is shown. Note that KTLS sendfile on FreeBSD always runs in the
761 zerocopy mode.
762 .IP "\fB\-keylogfile\fR \fIoutfile\fR" 4
763 .IX Item "-keylogfile outfile"
764 Appends TLS secrets to the specified keylog file such that external programs
765 (like Wireshark) can decrypt TLS connections.
766 .IP "\fB\-max_early_data\fR \fIint\fR" 4
767 .IX Item "-max_early_data int"
768 Change the default maximum early data bytes that are specified for new sessions
769 and any incoming early data (when used in conjunction with the \fB\-early_data\fR
770 flag). The default value is approximately 16k. The argument must be an integer
771 greater than or equal to 0.
772 .IP "\fB\-recv_max_early_data\fR \fIint\fR" 4
773 .IX Item "-recv_max_early_data int"
774 Specify the hard limit on the maximum number of early data bytes that will
775 be accepted.
776 .IP \fB\-early_data\fR 4
777 .IX Item "-early_data"
778 Accept early data where possible. Cannot be used in conjunction with \fB\-www\fR,
779 \&\fB\-WWW\fR, \fB\-HTTP\fR or \fB\-rev\fR.
780 .IP \fB\-stateless\fR 4
781 .IX Item "-stateless"
782 Require TLSv1.3 cookies.
783 .IP "\fB\-anti_replay\fR, \fB\-no_anti_replay\fR" 4
784 .IX Item "-anti_replay, -no_anti_replay"
785 Switches replay protection on or off, respectively. Replay protection is on by
786 default unless overridden by a configuration file. When it is on, OpenSSL will
787 automatically detect if a session ticket has been used more than once, TLSv1.3
788 has been negotiated, and early data is enabled on the server. A full handshake
789 is forced if a session ticket is used a second or subsequent time. Any early
790 data that was sent will be rejected.
791 .IP \fB\-tfo\fR 4
792 .IX Item "-tfo"
793 Enable acceptance of TCP Fast Open (RFC7413) connections.
794 .IP \fB\-cert_comp\fR 4
795 .IX Item "-cert_comp"
796 Pre-compresses certificates (RFC8879) that will be sent during the handshake.
797 .IP "\fB\-nameopt\fR \fIoption\fR" 4
798 .IX Item "-nameopt option"
799 This specifies how the subject or issuer names are displayed.
800 See \fBopenssl\-namedisplay\-options\fR\|(1) for details.
801 .IP "\fB\-no_ssl3\fR, \fB\-no_tls1\fR, \fB\-no_tls1_1\fR, \fB\-no_tls1_2\fR, \fB\-no_tls1_3\fR, \fB\-ssl3\fR, \fB\-tls1\fR, \fB\-tls1_1\fR, \fB\-tls1_2\fR, \fB\-tls1_3\fR" 4
802 .IX Item "-no_ssl3, -no_tls1, -no_tls1_1, -no_tls1_2, -no_tls1_3, -ssl3, -tls1, -tls1_1, -tls1_2, -tls1_3"
803 See "TLS Version Options" in \fBopenssl\fR\|(1).
804 .IP "\fB\-dtls\fR, \fB\-dtls1\fR, \fB\-dtls1_2\fR" 4
805 .IX Item "-dtls, -dtls1, -dtls1_2"
806 These specify the use of DTLS instead of TLS.
807 See "TLS Version Options" in \fBopenssl\fR\|(1).
808 .IP "\fB\-bugs\fR, \fB\-comp\fR, \fB\-no_comp\fR, \fB\-no_ticket\fR, \fB\-serverpref\fR, \fB\-client_renegotiation\fR, \fB\-legacy_renegotiation\fR, \fB\-no_renegotiation\fR, \fB\-no_resumption_on_reneg\fR, \fB\-legacy_server_connect\fR, \fB\-no_legacy_server_connect\fR, \fB\-no_etm\fR \fB\-allow_no_dhe_kex\fR, \fB\-prefer_no_dhe_kex\fR, \fB\-prioritize_chacha\fR, \fB\-strict\fR, \fB\-sigalgs\fR \fIalgs\fR, \fB\-client_sigalgs\fR \fIalgs\fR, \fB\-groups\fR \fIgroups\fR, \fB\-curves\fR \fIcurves\fR, \fB\-named_curve\fR \fIcurve\fR, \fB\-cipher\fR \fIciphers\fR, \fB\-ciphersuites\fR \fI1.3ciphers\fR, \fB\-min_protocol\fR \fIminprot\fR, \fB\-max_protocol\fR \fImaxprot\fR, \fB\-record_padding\fR \fIpadding\fR, \fB\-debug_broken_protocol\fR, \fB\-no_middlebox\fR" 4
809 .IX Item "-bugs, -comp, -no_comp, -no_ticket, -serverpref, -client_renegotiation, -legacy_renegotiation, -no_renegotiation, -no_resumption_on_reneg, -legacy_server_connect, -no_legacy_server_connect, -no_etm -allow_no_dhe_kex, -prefer_no_dhe_kex, -prioritize_chacha, -strict, -sigalgs algs, -client_sigalgs algs, -groups groups, -curves curves, -named_curve curve, -cipher ciphers, -ciphersuites 1.3ciphers, -min_protocol minprot, -max_protocol maxprot, -record_padding padding, -debug_broken_protocol, -no_middlebox"
810 See "SUPPORTED COMMAND LINE COMMANDS" in \fBSSL_CONF_cmd\fR\|(3) for details.
811 .IP "\fB\-xkey\fR \fIinfile\fR, \fB\-xcert\fR \fIfile\fR, \fB\-xchain\fR \fIfile\fR, \fB\-xchain_build\fR \fIfile\fR, \fB\-xcertform\fR \fBDER\fR|\fBPEM\fR, \fB\-xkeyform\fR \fBDER\fR|\fBPEM\fR" 4
812 .IX Item "-xkey infile, -xcert file, -xchain file, -xchain_build file, -xcertform DER|PEM, -xkeyform DER|PEM"
813 Set extended certificate verification options.
814 See "Extended Verification Options" in \fBopenssl\-verification\-options\fR\|(1) for details.
815 .IP "\fB\-CAfile\fR \fIfile\fR, \fB\-no\-CAfile\fR, \fB\-CApath\fR \fIdir\fR, \fB\-no\-CApath\fR, \fB\-CAstore\fR \fIuri\fR, \fB\-no\-CAstore\fR" 4
816 .IX Item "-CAfile file, -no-CAfile, -CApath dir, -no-CApath, -CAstore uri, -no-CAstore"
817 See "Trusted Certificate Options" in \fBopenssl\-verification\-options\fR\|(1) for details.
818 .IP "\fB\-rand\fR \fIfiles\fR, \fB\-writerand\fR \fIfile\fR" 4
819 .IX Item "-rand files, -writerand file"
820 See "Random State Options" in \fBopenssl\fR\|(1) for details.
821 .IP "\fB\-engine\fR \fIid\fR" 4
822 .IX Item "-engine id"
823 See "Engine Options" in \fBopenssl\fR\|(1).
824 This option is deprecated.
825 .IP "\fB\-provider\fR \fIname\fR" 4
826 .IX Item "-provider name"
827 .PD 0
828 .IP "\fB\-provider\-path\fR \fIpath\fR" 4
829 .IX Item "-provider-path path"
830 .IP "\fB\-provparam\fR \fI[name:]key=value\fR" 4
831 .IX Item "-provparam [name:]key=value"
832 .IP "\fB\-propquery\fR \fIpropq\fR" 4
833 .IX Item "-propquery propq"
834 .PD
835 See "Provider Options" in \fBopenssl\fR\|(1), \fBprovider\fR\|(7), and \fBproperty\fR\|(7).
836 .IP "\fB\-allow_proxy_certs\fR, \fB\-attime\fR, \fB\-no_check_time\fR, \fB\-check_ss_sig\fR, \fB\-crl_check\fR, \fB\-crl_check_all\fR, \fB\-explicit_policy\fR, \fB\-extended_crl\fR, \fB\-ignore_critical\fR, \fB\-inhibit_any\fR, \fB\-inhibit_map\fR, \fB\-no_alt_chains\fR, \fB\-partial_chain\fR, \fB\-policy\fR, \fB\-policy_check\fR, \fB\-policy_print\fR, \fB\-purpose\fR, \fB\-suiteB_128\fR, \fB\-suiteB_128_only\fR, \fB\-suiteB_192\fR, \fB\-trusted_first\fR, \fB\-use_deltas\fR, \fB\-auth_level\fR, \fB\-verify_depth\fR, \fB\-verify_email\fR, \fB\-verify_hostname\fR, \fB\-verify_ip\fR, \fB\-verify_name\fR, \fB\-x509_strict\fR \fB\-issuer_checks\fR" 4
837 .IX Item "-allow_proxy_certs, -attime, -no_check_time, -check_ss_sig, -crl_check, -crl_check_all, -explicit_policy, -extended_crl, -ignore_critical, -inhibit_any, -inhibit_map, -no_alt_chains, -partial_chain, -policy, -policy_check, -policy_print, -purpose, -suiteB_128, -suiteB_128_only, -suiteB_192, -trusted_first, -use_deltas, -auth_level, -verify_depth, -verify_email, -verify_hostname, -verify_ip, -verify_name, -x509_strict -issuer_checks"
838 Set various options of certificate chain verification.
839 See "Verification Options" in \fBopenssl\-verification\-options\fR\|(1) for details.
840 .Sp
841 If the server requests a client certificate, then
842 verification errors are displayed, for debugging, but the command will
843 proceed unless the \fB\-verify_return_error\fR option is used.
844 .IP \fB\-enable_server_rpk\fR 4
845 .IX Item "-enable_server_rpk"
846 Enable support for sending raw public keys (RFC7250) to the client.
847 A raw public key will be sent by the server, if solicited by the client,
848 provided a suitable key and public certificate pair is configured.
849 Clients that don't support raw public keys or prefer to use X.509
850 certificates can still elect to receive X.509 certificates as usual.
851 .Sp
852 Raw public keys are extracted from the configured certificate/private key.
853 .IP \fB\-enable_client_rpk\fR 4
854 .IX Item "-enable_client_rpk"
855 Enable support for receiving raw public keys (RFC7250) from the client.
856 Use of X.509 certificates by the client becomes optional, and clients that
857 support raw public keys may elect to use them.
858 Clients that don't support raw public keys or prefer to use X.509
859 certificates can still elect to send X.509 certificates as usual.
860 .Sp
861 Raw public keys are extracted from the configured certificate/private key.
862 .SH "CONNECTED COMMANDS"
863 .IX Header "CONNECTED COMMANDS"
864 If a connection request is established with an SSL client and neither the
865 \&\fB\-www\fR nor the \fB\-WWW\fR option has been used then normally any data received
866 from the client is displayed and any key presses will be sent to the client.
867 .PP
868 Certain commands are also recognized which perform special operations. These
869 commands are a letter which must appear at the start of a line. They are listed
870 below.
871 .IP \fBq\fR 4
872 .IX Item "q"
873 End the current SSL connection but still accept new connections.
874 .IP \fBQ\fR 4
875 .IX Item "Q"
876 End the current SSL connection and exit.
877 .IP \fBr\fR 4
878 .IX Item "r"
879 Renegotiate the SSL session (TLSv1.2 and below only).
880 .IP \fBR\fR 4
881 .IX Item "R"
882 Renegotiate the SSL session and request a client certificate (TLSv1.2 and below
883 only).
884 .IP \fBP\fR 4
885 .IX Item "P"
886 Send some plain text down the underlying TCP connection: this should
887 cause the client to disconnect due to a protocol violation.
888 .IP \fBS\fR 4
889 .IX Item "S"
890 Print out some session cache status information.
891 .IP \fBk\fR 4
892 .IX Item "k"
893 Send a key update message to the client (TLSv1.3 only)
894 .IP \fBK\fR 4
895 .IX Item "K"
896 Send a key update message to the client and request one back (TLSv1.3 only)
897 .IP \fBc\fR 4
898 .IX Item "c"
899 Send a certificate request to the client (TLSv1.3 only)
900 .SH NOTES
901 .IX Header "NOTES"
902 This command can be used to debug SSL clients. To accept connections
903 from a web browser the command:
904 .PP
905 .Vb 1
906 \& openssl s_server \-accept 443 \-www
907 .Ve
908 .PP
909 can be used for example.
910 .PP
911 Although specifying an empty list of CAs when requesting a client certificate
912 is strictly speaking a protocol violation, some SSL clients interpret this to
913 mean any CA is acceptable. This is useful for debugging purposes.
914 .PP
915 The session parameters can printed out using the \fBopenssl\-sess_id\fR\|(1) command.
916 .SH BUGS
917 .IX Header "BUGS"
918 Because this program has a lot of options and also because some of the
919 techniques used are rather old, the C source for this command is rather
920 hard to read and not a model of how things should be done.
921 A typical SSL server program would be much simpler.
922 .PP
923 The output of common ciphers is wrong: it just gives the list of ciphers that
924 OpenSSL recognizes and the client supports.
925 .PP
926 There should be a way for this command to print out details
927 of any unknown cipher suites a client says it supports.
928 .SH "SEE ALSO"
929 .IX Header "SEE ALSO"
930 \&\fBopenssl\fR\|(1),
931 \&\fBopenssl\-sess_id\fR\|(1),
932 \&\fBopenssl\-s_client\fR\|(1),
933 \&\fBopenssl\-ciphers\fR\|(1),
934 \&\fBSSL_CONF_cmd\fR\|(3),
935 \&\fBSSL_CTX_set_max_send_fragment\fR\|(3),
936 \&\fBSSL_CTX_set_split_send_fragment\fR\|(3),
937 \&\fBSSL_CTX_set_max_pipelines\fR\|(3),
938 \&\fBossl_store\-file\fR\|(7)
939 .SH HISTORY
940 .IX Header "HISTORY"
941 The \-no_alt_chains option was added in OpenSSL 1.1.0.
942 .PP
943 The
944 \&\-allow\-no\-dhe\-kex and \-prioritize_chacha options were added in OpenSSL 1.1.1.
945 .PP
946 The \fB\-srpvfile\fR, \fB\-srpuserseed\fR, and \fB\-engine\fR
947 option were deprecated in OpenSSL 3.0.
948 .PP
949 The
950 \&\fB\-enable_client_rpk\fR,
951 \&\fB\-enable_server_rpk\fR,
952 \&\fB\-no_rx_cert_comp\fR,
953 \&\fB\-no_tx_cert_comp\fR,
954 and \fB\-tfo\fR
955 options were added in OpenSSL 3.2.
956 .SH COPYRIGHT
957 .IX Header "COPYRIGHT"
958 Copyright 2000\-2025 The OpenSSL Project Authors. All Rights Reserved.
959 .PP
960 Licensed under the Apache License 2.0 (the "License"). You may not use
961 this file except in compliance with the License. You can obtain a copy
962 in the file LICENSE in the source distribution or at
963 <https://www.openssl.org/source/license.html>.