2003-07-24 18:16:30 +04:00
|
|
|
.\" $NetBSD: openssl_s_server.1,v 1.10 2003/07/24 14:16:52 itojun Exp $
|
2001-04-12 14:45:33 +04:00
|
|
|
.\"
|
2001-04-09 16:29:33 +04:00
|
|
|
.\" Automatically generated by Pod::Man version 1.02
|
2003-07-24 18:16:30 +04:00
|
|
|
.\" Thu Jul 24 13:07:45 2003
|
2001-04-09 16:29:33 +04:00
|
|
|
.\"
|
|
|
|
.\" Standard preamble:
|
|
|
|
.\" ======================================================================
|
|
|
|
.de Sh \" Subsection heading
|
2000-10-04 09:41:25 +04:00
|
|
|
.br
|
|
|
|
.if t .Sp
|
|
|
|
.ne 5
|
|
|
|
.PP
|
|
|
|
\fB\\$1\fR
|
|
|
|
.PP
|
|
|
|
..
|
2001-04-09 16:29:33 +04:00
|
|
|
.de Sp \" Vertical space (when we can't use .PP)
|
2000-10-04 09:41:25 +04:00
|
|
|
.if t .sp .5v
|
|
|
|
.if n .sp
|
|
|
|
..
|
2001-04-09 16:29:33 +04:00
|
|
|
.de Ip \" List item
|
2000-10-04 09:41:25 +04:00
|
|
|
.br
|
|
|
|
.ie \\n(.$>=3 .ne \\$3
|
|
|
|
.el .ne 3
|
|
|
|
.IP "\\$1" \\$2
|
|
|
|
..
|
2001-04-09 16:29:33 +04:00
|
|
|
.de Vb \" Begin verbatim text
|
2000-10-04 09:41:25 +04:00
|
|
|
.ft CW
|
|
|
|
.nf
|
|
|
|
.ne \\$1
|
|
|
|
..
|
2001-04-09 16:29:33 +04:00
|
|
|
.de Ve \" End verbatim text
|
2000-10-04 09:41:25 +04:00
|
|
|
.ft R
|
|
|
|
|
|
|
|
.fi
|
|
|
|
..
|
2001-04-09 16:29:33 +04:00
|
|
|
.\" Set up some character translations and predefined strings. \*(-- will
|
|
|
|
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
|
|
|
.\" double quote, and \*(R" will give a right double quote. | will give a
|
|
|
|
.\" real vertical bar. \*(C+ will give a nicer C++. Capital omega is used
|
|
|
|
.\" to do unbreakable dashes and therefore won't be available. \*(C` and
|
|
|
|
.\" \*(C' expand to `' in nroff, nothing in troff, for use with C<>
|
2000-10-04 09:41:25 +04:00
|
|
|
.tr \(*W-|\(bv\*(Tr
|
2001-04-09 16:29:33 +04:00
|
|
|
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
2000-10-04 09:41:25 +04:00
|
|
|
.ie n \{\
|
2001-04-09 16:29:33 +04:00
|
|
|
. ds -- \(*W-
|
|
|
|
. ds PI pi
|
|
|
|
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
|
|
|
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
|
|
|
. ds L" ""
|
|
|
|
. ds R" ""
|
|
|
|
. ds C` `
|
|
|
|
. ds C' '
|
2000-10-04 09:41:25 +04:00
|
|
|
'br\}
|
|
|
|
.el\{\
|
2001-04-09 16:29:33 +04:00
|
|
|
. ds -- \|\(em\|
|
|
|
|
. ds PI \(*p
|
|
|
|
. ds L" ``
|
|
|
|
. ds R" ''
|
2000-10-04 09:41:25 +04:00
|
|
|
'br\}
|
2001-04-09 16:29:33 +04:00
|
|
|
.\"
|
|
|
|
.\" If the F register is turned on, we'll generate index entries on stderr
|
|
|
|
.\" for titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and
|
|
|
|
.\" index entries marked with X<> in POD. Of course, you'll have to process
|
|
|
|
.\" the output yourself in some meaningful fashion.
|
|
|
|
.if \nF \{\
|
|
|
|
. de IX
|
|
|
|
. tm Index:\\$1\t\\n%\t"\\$2"
|
|
|
|
. .
|
|
|
|
. nr % 0
|
|
|
|
. rr F
|
2000-10-04 09:41:25 +04:00
|
|
|
.\}
|
2001-04-09 16:29:33 +04:00
|
|
|
.\"
|
|
|
|
.\" For nroff, turn off justification. Always turn off hyphenation; it
|
|
|
|
.\" makes way too many mistakes in technical documents.
|
|
|
|
.hy 0
|
2000-10-04 09:41:25 +04:00
|
|
|
.if n .na
|
2001-04-09 16:29:33 +04:00
|
|
|
.\"
|
|
|
|
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
|
|
|
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
2000-10-04 09:41:25 +04:00
|
|
|
.bd B 3
|
2001-04-09 16:29:33 +04:00
|
|
|
. \" fudge factors for nroff and troff
|
2000-10-04 09:41:25 +04:00
|
|
|
.if n \{\
|
2001-04-09 16:29:33 +04:00
|
|
|
. ds #H 0
|
|
|
|
. ds #V .8m
|
|
|
|
. ds #F .3m
|
|
|
|
. ds #[ \f1
|
|
|
|
. ds #] \fP
|
2000-10-04 09:41:25 +04:00
|
|
|
.\}
|
|
|
|
.if t \{\
|
2001-04-09 16:29:33 +04:00
|
|
|
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
|
|
|
. ds #V .6m
|
|
|
|
. ds #F 0
|
|
|
|
. ds #[ \&
|
|
|
|
. ds #] \&
|
2000-10-04 09:41:25 +04:00
|
|
|
.\}
|
2001-04-09 16:29:33 +04:00
|
|
|
. \" simple accents for nroff and troff
|
2000-10-04 09:41:25 +04:00
|
|
|
.if n \{\
|
2001-04-09 16:29:33 +04:00
|
|
|
. ds ' \&
|
|
|
|
. ds ` \&
|
|
|
|
. ds ^ \&
|
|
|
|
. ds , \&
|
|
|
|
. ds ~ ~
|
|
|
|
. ds /
|
2000-10-04 09:41:25 +04:00
|
|
|
.\}
|
|
|
|
.if t \{\
|
2001-04-09 16:29:33 +04:00
|
|
|
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
|
|
|
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
|
|
|
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
|
|
|
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
|
|
|
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
|
|
|
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
2000-10-04 09:41:25 +04:00
|
|
|
.\}
|
2001-04-09 16:29:33 +04:00
|
|
|
. \" troff and (daisy-wheel) nroff accents
|
2000-10-04 09:41:25 +04:00
|
|
|
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
|
|
|
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
|
|
|
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
|
|
|
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
|
|
|
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
|
|
|
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
|
|
|
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
|
|
|
.ds ae a\h'-(\w'a'u*4/10)'e
|
|
|
|
.ds Ae A\h'-(\w'A'u*4/10)'E
|
2001-04-09 16:29:33 +04:00
|
|
|
. \" corrections for vroff
|
2000-10-04 09:41:25 +04:00
|
|
|
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
|
|
|
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
2001-04-09 16:29:33 +04:00
|
|
|
. \" for low resolution devices (crt and lpr)
|
2000-10-04 09:41:25 +04:00
|
|
|
.if \n(.H>23 .if \n(.V>19 \
|
|
|
|
\{\
|
2001-04-09 16:29:33 +04:00
|
|
|
. ds : e
|
|
|
|
. ds 8 ss
|
|
|
|
. ds o a
|
|
|
|
. ds d- d\h'-1'\(ga
|
|
|
|
. ds D- D\h'-1'\(hy
|
|
|
|
. ds th \o'bp'
|
|
|
|
. ds Th \o'LP'
|
|
|
|
. ds ae ae
|
|
|
|
. ds Ae AE
|
2000-10-04 09:41:25 +04:00
|
|
|
.\}
|
|
|
|
.rm #[ #] #H #V #F C
|
2001-04-09 16:29:33 +04:00
|
|
|
.\" ======================================================================
|
|
|
|
.\"
|
|
|
|
.IX Title "S_SERVER 1"
|
2003-07-24 18:16:30 +04:00
|
|
|
.TH S_SERVER 1 "0.9.7b" "2003-03-21" "OpenSSL"
|
|
|
|
.UC
|
2000-10-04 09:41:25 +04:00
|
|
|
.SH "NAME"
|
2001-04-09 16:29:33 +04:00
|
|
|
s_server \- \s-1SSL/TLS\s0 server program
|
2001-04-12 14:45:33 +04:00
|
|
|
.SH "LIBRARY"
|
|
|
|
libcrypto, -lcrypto
|
2000-10-04 09:41:25 +04:00
|
|
|
.SH "SYNOPSIS"
|
2001-04-09 16:29:33 +04:00
|
|
|
.IX Header "SYNOPSIS"
|
2002-06-09 20:12:52 +04:00
|
|
|
\&\fBopenssl\fR \fBs_server\fR
|
2000-10-04 09:41:25 +04:00
|
|
|
[\fB\-accept port\fR]
|
|
|
|
[\fB\-context id\fR]
|
|
|
|
[\fB\-verify depth\fR]
|
|
|
|
[\fB\-Verify depth\fR]
|
|
|
|
[\fB\-cert filename\fR]
|
|
|
|
[\fB\-key keyfile\fR]
|
|
|
|
[\fB\-dcert filename\fR]
|
|
|
|
[\fB\-dkey keyfile\fR]
|
|
|
|
[\fB\-dhparam filename\fR]
|
|
|
|
[\fB\-nbio\fR]
|
|
|
|
[\fB\-nbio_test\fR]
|
|
|
|
[\fB\-crlf\fR]
|
|
|
|
[\fB\-debug\fR]
|
2003-07-24 18:16:30 +04:00
|
|
|
[\fB\-msg\fR]
|
2000-10-04 09:41:25 +04:00
|
|
|
[\fB\-state\fR]
|
|
|
|
[\fB\-CApath directory\fR]
|
|
|
|
[\fB\-CAfile filename\fR]
|
|
|
|
[\fB\-nocert\fR]
|
|
|
|
[\fB\-cipher cipherlist\fR]
|
|
|
|
[\fB\-quiet\fR]
|
|
|
|
[\fB\-no_tmp_rsa\fR]
|
|
|
|
[\fB\-ssl2\fR]
|
|
|
|
[\fB\-ssl3\fR]
|
|
|
|
[\fB\-tls1\fR]
|
|
|
|
[\fB\-no_ssl2\fR]
|
|
|
|
[\fB\-no_ssl3\fR]
|
|
|
|
[\fB\-no_tls1\fR]
|
|
|
|
[\fB\-no_dhe\fR]
|
|
|
|
[\fB\-bugs\fR]
|
|
|
|
[\fB\-hack\fR]
|
|
|
|
[\fB\-www\fR]
|
|
|
|
[\fB\-WWW\fR]
|
2003-07-24 18:16:30 +04:00
|
|
|
[\fB\-HTTP\fR]
|
|
|
|
[\fB\-engine id\fR]
|
|
|
|
[\fB\-id_prefix arg\fR]
|
2001-04-12 14:45:33 +04:00
|
|
|
[\fB\-rand \f(BIfile\fB\|(s)\fR]
|
2000-10-04 09:41:25 +04:00
|
|
|
.SH "DESCRIPTION"
|
2001-04-09 16:29:33 +04:00
|
|
|
.IX Header "DESCRIPTION"
|
|
|
|
The \fBs_server\fR command implements a generic \s-1SSL/TLS\s0 server which listens
|
|
|
|
for connections on a given port using \s-1SSL/TLS\s0.
|
2000-10-04 09:41:25 +04:00
|
|
|
.SH "OPTIONS"
|
2001-04-09 16:29:33 +04:00
|
|
|
.IX Header "OPTIONS"
|
2000-10-04 09:41:25 +04:00
|
|
|
.Ip "\fB\-accept port\fR" 4
|
2001-04-09 16:29:33 +04:00
|
|
|
.IX Item "-accept port"
|
2000-10-04 09:41:25 +04:00
|
|
|
the \s-1TCP\s0 port to listen on for connections. If not specified 4433 is used.
|
|
|
|
.Ip "\fB\-context id\fR" 4
|
2001-04-09 16:29:33 +04:00
|
|
|
.IX Item "-context id"
|
2000-10-04 09:41:25 +04:00
|
|
|
sets the \s-1SSL\s0 context id. It can be given any string value. If this option
|
|
|
|
is not present a default value will be used.
|
|
|
|
.Ip "\fB\-cert certname\fR" 4
|
2001-04-09 16:29:33 +04:00
|
|
|
.IX Item "-cert certname"
|
2000-10-04 09:41:25 +04:00
|
|
|
The certificate to use, most servers cipher suites require the use of a
|
|
|
|
certificate and some require a certificate with a certain public key type:
|
|
|
|
for example the \s-1DSS\s0 cipher suites require a certificate containing a \s-1DSS\s0
|
|
|
|
(\s-1DSA\s0) key. If not specified then the filename \*(L"server.pem\*(R" will be used.
|
|
|
|
.Ip "\fB\-key keyfile\fR" 4
|
2001-04-09 16:29:33 +04:00
|
|
|
.IX Item "-key keyfile"
|
2000-10-04 09:41:25 +04:00
|
|
|
The private key to use. If not specified then the certificate file will
|
|
|
|
be used.
|
|
|
|
.Ip "\fB\-dcert filename\fR, \fB\-dkey keyname\fR" 4
|
2001-04-09 16:29:33 +04:00
|
|
|
.IX Item "-dcert filename, -dkey keyname"
|
2000-10-04 09:41:25 +04:00
|
|
|
specify an additional certificate and private key, these behave in the
|
|
|
|
same manner as the \fB\-cert\fR and \fB\-key\fR options except there is no default
|
|
|
|
if they are not specified (no additional certificate and key is used). As
|
|
|
|
noted above some cipher suites require a certificate containing a key of
|
|
|
|
a certain type. Some cipher suites need a certificate carrying an \s-1RSA\s0 key
|
|
|
|
and some a \s-1DSS\s0 (\s-1DSA\s0) key. By using \s-1RSA\s0 and \s-1DSS\s0 certificates and keys
|
|
|
|
a server can support clients which only support \s-1RSA\s0 or \s-1DSS\s0 cipher suites
|
|
|
|
by using an appropriate certificate.
|
|
|
|
.Ip "\fB\-nocert\fR" 4
|
2001-04-09 16:29:33 +04:00
|
|
|
.IX Item "-nocert"
|
2000-10-04 09:41:25 +04:00
|
|
|
if this option is set then no certificate is used. This restricts the
|
|
|
|
cipher suites available to the anonymous ones (currently just anonymous
|
2001-04-09 16:29:33 +04:00
|
|
|
\&\s-1DH\s0).
|
2000-10-04 09:41:25 +04:00
|
|
|
.Ip "\fB\-dhparam filename\fR" 4
|
2001-04-09 16:29:33 +04:00
|
|
|
.IX Item "-dhparam filename"
|
2000-10-04 09:41:25 +04:00
|
|
|
the \s-1DH\s0 parameter file to use. The ephemeral \s-1DH\s0 cipher suites generate keys
|
|
|
|
using a set of \s-1DH\s0 parameters. If not specified then an attempt is made to
|
|
|
|
load the parameters from the server certificate file. If this fails then
|
|
|
|
a static set of parameters hard coded into the s_server program will be used.
|
2001-04-12 14:45:33 +04:00
|
|
|
.Ip "\fB\-no_dhe\fR" 4
|
|
|
|
.IX Item "-no_dhe"
|
2000-10-04 09:41:25 +04:00
|
|
|
if this option is set then no \s-1DH\s0 parameters will be loaded effectively
|
|
|
|
disabling the ephemeral \s-1DH\s0 cipher suites.
|
|
|
|
.Ip "\fB\-no_tmp_rsa\fR" 4
|
2001-04-09 16:29:33 +04:00
|
|
|
.IX Item "-no_tmp_rsa"
|
2000-10-04 09:41:25 +04:00
|
|
|
certain export cipher suites sometimes use a temporary \s-1RSA\s0 key, this option
|
|
|
|
disables temporary \s-1RSA\s0 key generation.
|
|
|
|
.Ip "\fB\-verify depth\fR, \fB\-Verify depth\fR" 4
|
2001-04-09 16:29:33 +04:00
|
|
|
.IX Item "-verify depth, -Verify depth"
|
2000-10-04 09:41:25 +04:00
|
|
|
The verify depth to use. This specifies the maximum length of the
|
|
|
|
client certificate chain and makes the server request a certificate from
|
|
|
|
the client. With the \fB\-verify\fR option a certificate is requested but the
|
|
|
|
client does not have to send one, with the \fB\-Verify\fR option the client
|
|
|
|
must supply a certificate or an error occurs.
|
|
|
|
.Ip "\fB\-CApath directory\fR" 4
|
2001-04-09 16:29:33 +04:00
|
|
|
.IX Item "-CApath directory"
|
2000-10-04 09:41:25 +04:00
|
|
|
The directory to use for client certificate verification. This directory
|
|
|
|
must be in \*(L"hash format\*(R", see \fBverify\fR for more information. These are
|
|
|
|
also used when building the server certificate chain.
|
|
|
|
.Ip "\fB\-CAfile file\fR" 4
|
2001-04-09 16:29:33 +04:00
|
|
|
.IX Item "-CAfile file"
|
2000-10-04 09:41:25 +04:00
|
|
|
A file containing trusted certificates to use during client authentication
|
|
|
|
and to use when attempting to build the server certificate chain. The list
|
|
|
|
is also used in the list of acceptable client CAs passed to the client when
|
|
|
|
a certificate is requested.
|
|
|
|
.Ip "\fB\-state\fR" 4
|
2001-04-09 16:29:33 +04:00
|
|
|
.IX Item "-state"
|
2000-10-04 09:41:25 +04:00
|
|
|
prints out the \s-1SSL\s0 session states.
|
|
|
|
.Ip "\fB\-debug\fR" 4
|
2001-04-09 16:29:33 +04:00
|
|
|
.IX Item "-debug"
|
2000-10-04 09:41:25 +04:00
|
|
|
print extensive debugging information including a hex dump of all traffic.
|
2003-07-24 18:16:30 +04:00
|
|
|
.Ip "\fB\-msg\fR" 4
|
|
|
|
.IX Item "-msg"
|
|
|
|
show all protocol messages with hex dump.
|
2000-10-04 09:41:25 +04:00
|
|
|
.Ip "\fB\-nbio_test\fR" 4
|
2001-04-09 16:29:33 +04:00
|
|
|
.IX Item "-nbio_test"
|
2000-10-04 09:41:25 +04:00
|
|
|
tests non blocking I/O
|
|
|
|
.Ip "\fB\-nbio\fR" 4
|
2001-04-09 16:29:33 +04:00
|
|
|
.IX Item "-nbio"
|
2000-10-04 09:41:25 +04:00
|
|
|
turns on non blocking I/O
|
|
|
|
.Ip "\fB\-crlf\fR" 4
|
2001-04-09 16:29:33 +04:00
|
|
|
.IX Item "-crlf"
|
2000-10-04 09:41:25 +04:00
|
|
|
this option translated a line feed from the terminal into \s-1CR+LF\s0.
|
|
|
|
.Ip "\fB\-quiet\fR" 4
|
2001-04-09 16:29:33 +04:00
|
|
|
.IX Item "-quiet"
|
2000-10-04 09:41:25 +04:00
|
|
|
inhibit printing of session and certificate information.
|
|
|
|
.Ip "\fB\-ssl2\fR, \fB\-ssl3\fR, \fB\-tls1\fR, \fB\-no_ssl2\fR, \fB\-no_ssl3\fR, \fB\-no_tls1\fR" 4
|
2001-04-09 16:29:33 +04:00
|
|
|
.IX Item "-ssl2, -ssl3, -tls1, -no_ssl2, -no_ssl3, -no_tls1"
|
2000-10-04 09:41:25 +04:00
|
|
|
these options disable the use of certain \s-1SSL\s0 or \s-1TLS\s0 protocols. By default
|
|
|
|
the initial handshake uses a method which should be compatible with all
|
|
|
|
servers and permit them to use \s-1SSL\s0 v3, \s-1SSL\s0 v2 or \s-1TLS\s0 as appropriate.
|
|
|
|
.Ip "\fB\-bugs\fR" 4
|
2001-04-09 16:29:33 +04:00
|
|
|
.IX Item "-bugs"
|
2000-10-04 09:41:25 +04:00
|
|
|
there are several known bug in \s-1SSL\s0 and \s-1TLS\s0 implementations. Adding this
|
|
|
|
option enables various workarounds.
|
|
|
|
.Ip "\fB\-hack\fR" 4
|
2001-04-09 16:29:33 +04:00
|
|
|
.IX Item "-hack"
|
2000-10-04 09:41:25 +04:00
|
|
|
this option enables a further workaround for some some early Netscape
|
2001-04-09 16:29:33 +04:00
|
|
|
\&\s-1SSL\s0 code (?).
|
2000-10-04 09:41:25 +04:00
|
|
|
.Ip "\fB\-cipher cipherlist\fR" 4
|
2001-04-09 16:29:33 +04:00
|
|
|
.IX Item "-cipher cipherlist"
|
2000-10-04 09:41:25 +04:00
|
|
|
this allows the cipher list used by the server to be modified. When
|
|
|
|
the client sends a list of supported ciphers the first client cipher
|
|
|
|
also included in the server list is used. Because the client specifies
|
|
|
|
the preference order, the order of the server cipherlist irrelevant. See
|
|
|
|
the \fBciphers\fR command for more information.
|
|
|
|
.Ip "\fB\-www\fR" 4
|
2001-04-09 16:29:33 +04:00
|
|
|
.IX Item "-www"
|
2000-10-04 09:41:25 +04:00
|
|
|
sends a status message back to the client when it connects. This includes
|
|
|
|
lots of information about the ciphers used and various session parameters.
|
|
|
|
The output is in \s-1HTML\s0 format so this option will normally be used with a
|
|
|
|
web browser.
|
2001-04-09 16:29:33 +04:00
|
|
|
.Ip "\fB\-WWW\fR" 4
|
|
|
|
.IX Item "-WWW"
|
2000-10-04 09:41:25 +04:00
|
|
|
emulates a simple web server. Pages will be resolved relative to the
|
|
|
|
current directory, for example if the \s-1URL\s0 https://myhost/page.html is
|
|
|
|
requested the file ./page.html will be loaded.
|
2003-07-24 18:16:30 +04:00
|
|
|
.Ip "\fB\-HTTP\fR" 4
|
|
|
|
.IX Item "-HTTP"
|
|
|
|
emulates a simple web server. Pages will be resolved relative to the
|
|
|
|
current directory, for example if the \s-1URL\s0 https://myhost/page.html is
|
|
|
|
requested the file ./page.html will be loaded. The files loaded are
|
|
|
|
assumed to contain a complete and correct \s-1HTTP\s0 response (lines that
|
|
|
|
are part of the \s-1HTTP\s0 response line and headers must end with \s-1CRLF\s0).
|
|
|
|
.Ip "\fB\-engine id\fR" 4
|
|
|
|
.IX Item "-engine id"
|
|
|
|
specifying an engine (by it's unique \fBid\fR string) will cause \fBs_server\fR
|
|
|
|
to attempt to obtain a functional reference to the specified engine,
|
|
|
|
thus initialising it if needed. The engine will then be set as the default
|
|
|
|
for all available algorithms.
|
|
|
|
.Ip "\fB\-id_prefix arg\fR" 4
|
|
|
|
.IX Item "-id_prefix arg"
|
|
|
|
generate \s-1SSL/TLS\s0 session IDs prefixed by \fBarg\fR. This is mostly useful
|
|
|
|
for testing any \s-1SSL/TLS\s0 code (eg. proxies) that wish to deal with multiple
|
|
|
|
servers, when each of which might be generating a unique range of session
|
|
|
|
IDs (eg. with a certain prefix).
|
2001-04-12 14:45:33 +04:00
|
|
|
.Ip "\fB\-rand \f(BIfile\fB\|(s)\fR" 4
|
|
|
|
.IX Item "-rand file"
|
|
|
|
a file or files containing random data used to seed the random number
|
|
|
|
generator, or an \s-1EGD\s0 socket (see RAND_egd(3)).
|
|
|
|
Multiple files can be specified separated by a OS-dependent character.
|
|
|
|
The separator is \fB;\fR for MS-Windows, \fB,\fR for OpenVMS, and \fB:\fR for
|
|
|
|
all others.
|
2000-10-04 09:41:25 +04:00
|
|
|
.SH "CONNECTED COMMANDS"
|
2001-04-09 16:29:33 +04:00
|
|
|
.IX Header "CONNECTED COMMANDS"
|
|
|
|
If a connection request is established with an \s-1SSL\s0 client and neither the
|
|
|
|
\&\fB\-www\fR nor the \fB\-WWW\fR option has been used then normally any data received
|
2000-10-04 09:41:25 +04:00
|
|
|
from the client is displayed and any key presses will be sent to the client.
|
|
|
|
.PP
|
|
|
|
Certain single letter commands are also recognized which perform special
|
|
|
|
operations: these are listed below.
|
|
|
|
.Ip "\fBq\fR" 4
|
2001-04-09 16:29:33 +04:00
|
|
|
.IX Item "q"
|
2000-10-04 09:41:25 +04:00
|
|
|
end the current \s-1SSL\s0 connection but still accept new connections.
|
|
|
|
.Ip "\fBQ\fR" 4
|
2001-04-09 16:29:33 +04:00
|
|
|
.IX Item "Q"
|
2000-10-04 09:41:25 +04:00
|
|
|
end the current \s-1SSL\s0 connection and exit.
|
|
|
|
.Ip "\fBr\fR" 4
|
2001-04-09 16:29:33 +04:00
|
|
|
.IX Item "r"
|
2000-10-04 09:41:25 +04:00
|
|
|
renegotiate the \s-1SSL\s0 session.
|
|
|
|
.Ip "\fBR\fR" 4
|
2001-04-09 16:29:33 +04:00
|
|
|
.IX Item "R"
|
2000-10-04 09:41:25 +04:00
|
|
|
renegotiate the \s-1SSL\s0 session and request a client certificate.
|
|
|
|
.Ip "\fBP\fR" 4
|
2001-04-09 16:29:33 +04:00
|
|
|
.IX Item "P"
|
2000-10-04 09:41:25 +04:00
|
|
|
send some plain text down the underlying \s-1TCP\s0 connection: this should
|
|
|
|
cause the client to disconnect due to a protocol violation.
|
|
|
|
.Ip "\fBS\fR" 4
|
2001-04-09 16:29:33 +04:00
|
|
|
.IX Item "S"
|
2000-10-04 09:41:25 +04:00
|
|
|
print out some session cache status information.
|
|
|
|
.SH "NOTES"
|
2001-04-09 16:29:33 +04:00
|
|
|
.IX Header "NOTES"
|
|
|
|
\&\fBs_server\fR can be used to debug \s-1SSL\s0 clients. To accept connections from
|
2000-10-04 09:41:25 +04:00
|
|
|
a web browser the command:
|
|
|
|
.PP
|
|
|
|
.Vb 1
|
|
|
|
\& openssl s_server -accept 443 -www
|
|
|
|
.Ve
|
|
|
|
can be used for example.
|
|
|
|
.PP
|
2001-04-09 16:29:33 +04:00
|
|
|
Most web browsers (in particular Netscape and \s-1MSIE\s0) only support \s-1RSA\s0 cipher
|
2000-10-04 09:41:25 +04:00
|
|
|
suites, so they cannot connect to servers which don't use a certificate
|
2001-04-09 16:29:33 +04:00
|
|
|
carrying an \s-1RSA\s0 key or a version of OpenSSL with \s-1RSA\s0 disabled.
|
2000-10-04 09:41:25 +04:00
|
|
|
.PP
|
|
|
|
Although specifying an empty list of CAs when requesting a client certificate
|
2001-04-09 16:29:33 +04:00
|
|
|
is strictly speaking a protocol violation, some \s-1SSL\s0 clients interpret this to
|
|
|
|
mean any \s-1CA\s0 is acceptable. This is useful for debugging purposes.
|
2000-10-04 09:41:25 +04:00
|
|
|
.PP
|
|
|
|
The session parameters can printed out using the \fBsess_id\fR program.
|
|
|
|
.SH "BUGS"
|
2001-04-09 16:29:33 +04:00
|
|
|
.IX Header "BUGS"
|
2000-10-04 09:41:25 +04:00
|
|
|
Because this program has a lot of options and also because some of
|
|
|
|
the techniques used are rather old, the C source of s_server is rather
|
|
|
|
hard to read and not a model of how things should be done. A typical
|
2001-04-09 16:29:33 +04:00
|
|
|
\&\s-1SSL\s0 server program would be much simpler.
|
2000-10-04 09:41:25 +04:00
|
|
|
.PP
|
|
|
|
The output of common ciphers is wrong: it just gives the list of ciphers that
|
|
|
|
OpenSSL recognizes and the client supports.
|
|
|
|
.PP
|
|
|
|
There should be a way for the \fBs_server\fR program to print out details of any
|
|
|
|
unknown cipher suites a client says it supports.
|
|
|
|
.SH "SEE ALSO"
|
|
|
|
.IX Header "SEE ALSO"
|
2001-04-12 14:45:33 +04:00
|
|
|
openssl_sess_id(1), openssl_s_client(1), openssl_ciphers(1)
|