2000-01-09 03:05:47 +08:00
|
|
|
=pod
|
2019-10-31 11:35:08 +08:00
|
|
|
{- OpenSSL::safe::output_do_not_edit_headers(); -}
|
2019-10-13 05:45:56 +08:00
|
|
|
|
2000-01-09 03:05:47 +08:00
|
|
|
=head1 NAME
|
|
|
|
|
2019-08-22 07:04:41 +08:00
|
|
|
openssl-s_client - SSL/TLS client program
|
2000-01-09 03:05:47 +08:00
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
|
|
|
B<openssl> B<s_client>
|
2016-02-06 00:58:45 +08:00
|
|
|
[B<-help>]
|
2020-02-04 05:06:42 +08:00
|
|
|
[B<-ssl_config> I<section>]
|
2019-09-26 03:20:11 +08:00
|
|
|
[B<-connect> I<host:port>]
|
2020-01-30 00:18:24 +08:00
|
|
|
[B<-host> I<hostname>]
|
|
|
|
[B<-port> I<port>]
|
2019-09-26 03:20:11 +08:00
|
|
|
[B<-bind> I<host:port>]
|
|
|
|
[B<-proxy> I<host:port>]
|
|
|
|
[B<-proxy_user> I<userid>]
|
|
|
|
[B<-proxy_pass> I<arg>]
|
|
|
|
[B<-unix> I<path>]
|
2016-11-13 04:08:32 +08:00
|
|
|
[B<-4>]
|
|
|
|
[B<-6>]
|
2019-09-26 03:20:11 +08:00
|
|
|
[B<-servername> I<name>]
|
2017-02-13 21:26:37 +08:00
|
|
|
[B<-noservername>]
|
2019-09-26 03:20:11 +08:00
|
|
|
[B<-verify> I<depth>]
|
2014-04-07 20:02:10 +08:00
|
|
|
[B<-verify_return_error>]
|
2020-01-30 00:18:24 +08:00
|
|
|
[B<-verify_quiet>]
|
|
|
|
[B<-verifyCAfile> I<filename>]
|
|
|
|
[B<-verifyCApath> I<dir>]
|
|
|
|
[B<-verifyCAstore> I<uri>]
|
2019-09-26 03:20:11 +08:00
|
|
|
[B<-cert> I<filename>]
|
2020-05-06 19:51:50 +08:00
|
|
|
[B<-certform> B<DER>|B<PEM>|B<P12>]
|
2020-03-07 04:46:33 +08:00
|
|
|
[B<-cert_chain> I<filename>]
|
|
|
|
[B<-build_chain>]
|
2020-01-30 00:18:24 +08:00
|
|
|
[B<-CRL> I<filename>]
|
2019-10-10 09:48:33 +08:00
|
|
|
[B<-CRLform> B<DER>|B<PEM>]
|
2020-01-30 00:18:24 +08:00
|
|
|
[B<-crl_download>]
|
2020-11-30 14:25:46 +08:00
|
|
|
[B<-key> I<filename>|I<uri>]
|
2020-05-06 19:51:50 +08:00
|
|
|
[B<-keyform> B<DER>|B<PEM>|B<P12>|B<ENGINE>]
|
2019-09-26 03:20:11 +08:00
|
|
|
[B<-pass> I<arg>]
|
|
|
|
[B<-chainCAfile> I<filename>]
|
2020-03-07 04:46:33 +08:00
|
|
|
[B<-chainCApath> I<directory>]
|
2019-03-07 22:26:34 +08:00
|
|
|
[B<-chainCAstore> I<uri>]
|
2019-09-26 03:20:11 +08:00
|
|
|
[B<-requestCAfile> I<filename>]
|
|
|
|
[B<-dane_tlsa_domain> I<domain>]
|
|
|
|
[B<-dane_tlsa_rrdata> I<rrdata>]
|
2016-08-19 23:59:47 +08:00
|
|
|
[B<-dane_ee_no_namechecks>]
|
2000-01-09 03:05:47 +08:00
|
|
|
[B<-reconnect>]
|
|
|
|
[B<-showcerts>]
|
2020-01-30 00:18:24 +08:00
|
|
|
[B<-prexit>]
|
2000-01-09 03:05:47 +08:00
|
|
|
[B<-debug>]
|
2020-01-30 00:18:24 +08:00
|
|
|
[B<-trace>]
|
|
|
|
[B<-nocommands>]
|
|
|
|
[B<-security_debug>]
|
|
|
|
[B<-security_debug_verbose>]
|
2001-11-10 10:12:09 +08:00
|
|
|
[B<-msg>]
|
2020-01-30 00:18:24 +08:00
|
|
|
[B<-timeout>]
|
|
|
|
[B<-mtu> I<size>]
|
2021-06-14 17:40:31 +08:00
|
|
|
[B<-no_etm>]
|
2020-01-30 00:18:24 +08:00
|
|
|
[B<-keymatexport> I<label>]
|
|
|
|
[B<-keymatexportlen> I<len>]
|
|
|
|
[B<-msgfile> I<filename>]
|
2000-01-09 03:05:47 +08:00
|
|
|
[B<-nbio_test>]
|
|
|
|
[B<-state>]
|
|
|
|
[B<-nbio>]
|
|
|
|
[B<-crlf>]
|
2000-03-10 20:18:28 +08:00
|
|
|
[B<-ign_eof>]
|
2014-07-03 10:42:40 +08:00
|
|
|
[B<-no_ign_eof>]
|
2019-09-26 03:20:11 +08:00
|
|
|
[B<-psk_identity> I<identity>]
|
|
|
|
[B<-psk> I<key>]
|
|
|
|
[B<-psk_session> I<file>]
|
2000-01-09 03:05:47 +08:00
|
|
|
[B<-quiet>]
|
2017-04-25 21:37:25 +08:00
|
|
|
[B<-sctp>]
|
2018-12-26 19:44:53 +08:00
|
|
|
[B<-sctp_label_bug>]
|
2014-10-15 16:43:50 +08:00
|
|
|
[B<-fallback_scsv>]
|
2015-10-06 20:48:43 +08:00
|
|
|
[B<-async>]
|
2020-01-30 00:18:24 +08:00
|
|
|
[B<-maxfraglen> I<len>]
|
2017-04-07 05:47:18 +08:00
|
|
|
[B<-max_send_frag>]
|
2016-02-16 19:13:33 +08:00
|
|
|
[B<-split_send_frag>]
|
|
|
|
[B<-max_pipelines>]
|
|
|
|
[B<-read_buf>]
|
2020-05-05 21:20:42 +08:00
|
|
|
[B<-ignore_unexpected_eof>]
|
2000-01-09 03:05:47 +08:00
|
|
|
[B<-bugs>]
|
2016-02-04 05:45:39 +08:00
|
|
|
[B<-comp>]
|
|
|
|
[B<-no_comp>]
|
2020-01-30 00:18:24 +08:00
|
|
|
[B<-brief>]
|
2021-05-04 04:43:55 +08:00
|
|
|
[B<-legacy_server_connect>]
|
2017-07-03 22:59:30 +08:00
|
|
|
[B<-allow_no_dhe_kex>]
|
2019-09-26 03:20:11 +08:00
|
|
|
[B<-sigalgs> I<sigalglist>]
|
|
|
|
[B<-curves> I<curvelist>]
|
|
|
|
[B<-cipher> I<cipherlist>]
|
|
|
|
[B<-ciphersuites> I<val>]
|
2014-07-03 10:42:40 +08:00
|
|
|
[B<-serverpref>]
|
2019-09-26 03:20:11 +08:00
|
|
|
[B<-starttls> I<protocol>]
|
2020-01-30 00:18:24 +08:00
|
|
|
[B<-name> I<hostname>]
|
2019-09-26 03:20:11 +08:00
|
|
|
[B<-xmpphost> I<hostname>]
|
|
|
|
[B<-name> I<hostname>]
|
2007-08-23 19:34:48 +08:00
|
|
|
[B<-tlsextdebug>]
|
|
|
|
[B<-no_ticket>]
|
2019-09-26 03:20:11 +08:00
|
|
|
[B<-sess_out> I<filename>]
|
2020-01-30 00:18:24 +08:00
|
|
|
[B<-serverinfo> I<types>]
|
2019-09-26 03:20:11 +08:00
|
|
|
[B<-sess_in> I<filename>]
|
|
|
|
[B<-serverinfo> I<types>]
|
2014-07-07 05:16:21 +08:00
|
|
|
[B<-status>]
|
2019-09-26 03:20:11 +08:00
|
|
|
[B<-alpn> I<protocols>]
|
|
|
|
[B<-nextprotoneg> I<protocols>]
|
2017-08-14 21:32:07 +08:00
|
|
|
[B<-ct>]
|
|
|
|
[B<-noct>]
|
2016-03-03 22:07:28 +08:00
|
|
|
[B<-ctlogfile>]
|
2019-09-26 03:20:11 +08:00
|
|
|
[B<-keylogfile> I<file>]
|
|
|
|
[B<-early_data> I<file>]
|
2018-08-13 22:23:27 +08:00
|
|
|
[B<-enable_pha>]
|
2020-01-30 00:18:24 +08:00
|
|
|
[B<-use_srtp> I<value>]
|
|
|
|
[B<-srpuser> I<value>]
|
|
|
|
[B<-srppass> I<value>]
|
|
|
|
[B<-srp_lateuser>]
|
|
|
|
[B<-srp_moregroups>]
|
|
|
|
[B<-srp_strength> I<number>]
|
2019-10-25 11:02:09 +08:00
|
|
|
{- $OpenSSL::safe::opt_name_synopsis -}
|
2019-10-13 05:45:56 +08:00
|
|
|
{- $OpenSSL::safe::opt_version_synopsis -}
|
2019-10-13 05:45:56 +08:00
|
|
|
{- $OpenSSL::safe::opt_x_synopsis -}
|
|
|
|
{- $OpenSSL::safe::opt_trust_synopsis -}
|
2020-01-30 00:18:24 +08:00
|
|
|
{- $OpenSSL::safe::opt_s_synopsis -}
|
2019-10-13 05:45:56 +08:00
|
|
|
{- $OpenSSL::safe::opt_r_synopsis -}
|
2020-02-25 12:29:30 +08:00
|
|
|
{- $OpenSSL::safe::opt_provider_synopsis -}
|
2020-09-21 17:56:01 +08:00
|
|
|
{- $OpenSSL::safe::opt_engine_synopsis -}[B<-ssl_client_engine> I<id>]
|
2019-10-13 05:45:56 +08:00
|
|
|
{- $OpenSSL::safe::opt_v_synopsis -}
|
2019-09-26 03:20:11 +08:00
|
|
|
[I<host>:I<port>]
|
2000-01-09 03:05:47 +08:00
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
|
Command docs: fix up command references
Almost all OpenSSL commands are in reality 'openssl cmd', so make sure
they are refered to like that and not just as the sub-command.
Self-references are avoided as much as is possible, and replaced with
"this command". In some cases, we even avoid that with a slight
rewrite of the sentence or paragrah they were in. However, in the few
cases where a self-reference is still admissible, they are done in
bold, i.e. openssl-speed.pod references itself like this:
B<openssl speed>
References to other commands are done as manual links, i.e. CA.pl.pod
references 'openssl req' like this: L<openssl-req(1)>
Some commands are examples rather than references; we enclose those in
C<>.
While we are it, we abolish "utility", replacing it with "command", or
remove it entirely in some cases.
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/10065)
2019-10-02 01:43:36 +08:00
|
|
|
This command implements a generic SSL/TLS client which
|
|
|
|
connects to a remote host using SSL/TLS. It is a I<very> useful diagnostic
|
|
|
|
tool for SSL servers.
|
2000-01-09 03:05:47 +08:00
|
|
|
|
|
|
|
=head1 OPTIONS
|
|
|
|
|
Command docs: fix up command references
Almost all OpenSSL commands are in reality 'openssl cmd', so make sure
they are refered to like that and not just as the sub-command.
Self-references are avoided as much as is possible, and replaced with
"this command". In some cases, we even avoid that with a slight
rewrite of the sentence or paragrah they were in. However, in the few
cases where a self-reference is still admissible, they are done in
bold, i.e. openssl-speed.pod references itself like this:
B<openssl speed>
References to other commands are done as manual links, i.e. CA.pl.pod
references 'openssl req' like this: L<openssl-req(1)>
Some commands are examples rather than references; we enclose those in
C<>.
While we are it, we abolish "utility", replacing it with "command", or
remove it entirely in some cases.
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/10065)
2019-10-02 01:43:36 +08:00
|
|
|
In addition to the options below, this command also supports the
|
2019-08-10 05:14:04 +08:00
|
|
|
common and client only options documented
|
2016-09-14 23:13:57 +08:00
|
|
|
in the "Supported Command Line Commands" section of the L<SSL_CONF_cmd(3)>
|
2012-11-20 09:01:33 +08:00
|
|
|
manual page.
|
2012-11-20 00:07:53 +08:00
|
|
|
|
2000-01-09 03:05:47 +08:00
|
|
|
=over 4
|
|
|
|
|
2016-02-06 00:58:45 +08:00
|
|
|
=item B<-help>
|
|
|
|
|
|
|
|
Print out a usage message.
|
|
|
|
|
2020-02-04 05:06:42 +08:00
|
|
|
=item B<-ssl_config> I<section>
|
2020-01-30 00:18:24 +08:00
|
|
|
|
2020-02-04 05:06:42 +08:00
|
|
|
Use the specified section of the configuration file to configure the B<SSL_CTX> object.
|
2020-01-30 00:18:24 +08:00
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-connect> I<host>:I<port>
|
2000-01-09 03:05:47 +08:00
|
|
|
|
2016-06-05 11:46:38 +08:00
|
|
|
This specifies the host and optional port to connect to. It is possible to
|
|
|
|
select the host and port using the optional target positional argument instead.
|
2018-03-07 02:07:33 +08:00
|
|
|
If neither this nor the target positional argument are specified then an attempt
|
2016-06-05 11:46:38 +08:00
|
|
|
is made to connect to the local host on port 4433.
|
2000-01-09 03:05:47 +08:00
|
|
|
|
2020-01-30 00:18:24 +08:00
|
|
|
=item B<-host> I<hostname>
|
|
|
|
|
|
|
|
Host to connect to; use B<-connect> instead.
|
|
|
|
|
|
|
|
=item B<-port> I<port>
|
|
|
|
|
|
|
|
Connect to the specified port; use B<-connect> instead.
|
|
|
|
|
2019-10-13 05:45:56 +08:00
|
|
|
=item B<-bind> I<host:port>
|
2018-02-08 17:49:02 +08:00
|
|
|
|
|
|
|
This specifies the host address and or port to bind as the source for the
|
|
|
|
connection. For Unix-domain sockets the port is ignored and the host is
|
|
|
|
used as the source socket address.
|
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-proxy> I<host:port>
|
2015-05-09 03:34:07 +08:00
|
|
|
|
|
|
|
When used with the B<-connect> flag, the program uses the host and port
|
|
|
|
specified with this flag and issues an HTTP CONNECT command to connect
|
|
|
|
to the desired server.
|
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-proxy_user> I<userid>
|
2019-01-03 08:32:00 +08:00
|
|
|
|
|
|
|
When used with the B<-proxy> flag, the program will attempt to authenticate
|
|
|
|
with the specified proxy using basic (base64) authentication.
|
|
|
|
NB: Basic authentication is insecure; the credentials are sent to the proxy
|
|
|
|
in easily reversible base64 encoding before any TLS/SSL session is established.
|
2020-06-30 03:13:07 +08:00
|
|
|
Therefore, these credentials are easily recovered by anyone able to sniff/trace
|
2019-01-03 08:32:00 +08:00
|
|
|
the network. Use with caution.
|
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-proxy_pass> I<arg>
|
2019-01-03 08:32:00 +08:00
|
|
|
|
|
|
|
The proxy password source, used with the B<-proxy_user> flag.
|
2019-09-26 03:20:11 +08:00
|
|
|
For more information about the format of B<arg>
|
2020-12-10 04:56:51 +08:00
|
|
|
see L<openssl-passphrase-options(1)>.
|
2019-01-03 08:32:00 +08:00
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-unix> I<path>
|
2016-11-13 04:08:32 +08:00
|
|
|
|
|
|
|
Connect over the specified Unix-domain socket.
|
|
|
|
|
|
|
|
=item B<-4>
|
|
|
|
|
|
|
|
Use IPv4 only.
|
|
|
|
|
|
|
|
=item B<-6>
|
|
|
|
|
|
|
|
Use IPv6 only.
|
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-servername> I<name>
|
2014-07-03 10:42:40 +08:00
|
|
|
|
2017-02-13 21:26:37 +08:00
|
|
|
Set the TLS SNI (Server Name Indication) extension in the ClientHello message to
|
2019-10-13 05:45:56 +08:00
|
|
|
the given value.
|
|
|
|
If B<-servername> is not provided, the TLS SNI extension will be populated with
|
|
|
|
the name given to B<-connect> if it follows a DNS name format. If B<-connect> is
|
2019-02-07 05:09:15 +08:00
|
|
|
not provided either, the SNI is set to "localhost".
|
|
|
|
This is the default since OpenSSL 1.1.1.
|
|
|
|
|
2019-10-13 05:45:56 +08:00
|
|
|
Even though SNI should normally be a DNS name and not an IP address, if
|
|
|
|
B<-servername> is provided then that name will be sent, regardless of whether
|
2019-02-07 05:09:15 +08:00
|
|
|
it is a DNS name or not.
|
|
|
|
|
2019-03-10 02:05:31 +08:00
|
|
|
This option cannot be used in conjunction with B<-noservername>.
|
2017-02-13 21:26:37 +08:00
|
|
|
|
|
|
|
=item B<-noservername>
|
|
|
|
|
|
|
|
Suppresses sending of the SNI (Server Name Indication) extension in the
|
|
|
|
ClientHello message. Cannot be used in conjunction with the B<-servername> or
|
2021-04-12 18:41:27 +08:00
|
|
|
B<-dane_tlsa_domain> options.
|
2014-07-03 10:42:40 +08:00
|
|
|
|
2020-08-16 21:25:27 +08:00
|
|
|
=item B<-cert> I<filename>
|
2000-01-09 03:05:47 +08:00
|
|
|
|
2020-03-07 04:46:33 +08:00
|
|
|
The client certificate to use, if one is requested by the server.
|
|
|
|
The default is not to use a certificate.
|
2000-01-09 03:05:47 +08:00
|
|
|
|
2020-03-07 04:46:33 +08:00
|
|
|
The chain for the client certificate may be specified using B<-cert_chain>.
|
2004-11-17 01:30:59 +08:00
|
|
|
|
2020-05-06 19:51:50 +08:00
|
|
|
=item B<-certform> B<DER>|B<PEM>|B<P12>
|
2020-03-07 04:46:33 +08:00
|
|
|
|
2021-05-03 20:15:26 +08:00
|
|
|
The client certificate file format to use; unspecified by default.
|
|
|
|
See L<openssl-format-options(1)> for details.
|
2020-03-07 04:46:33 +08:00
|
|
|
|
|
|
|
=item B<-cert_chain>
|
|
|
|
|
2020-08-15 03:58:34 +08:00
|
|
|
A file or URI of untrusted certificates to use when attempting to build the
|
2020-03-07 04:46:33 +08:00
|
|
|
certificate chain related to the certificate specified via the B<-cert> option.
|
2020-08-15 03:58:34 +08:00
|
|
|
The input can be in PEM, DER, or PKCS#12 format.
|
2020-03-07 04:46:33 +08:00
|
|
|
|
|
|
|
=item B<-build_chain>
|
|
|
|
|
|
|
|
Specify whether the application should build the client certificate chain to be
|
|
|
|
provided to the server.
|
2004-11-17 01:30:59 +08:00
|
|
|
|
2020-01-30 00:18:24 +08:00
|
|
|
=item B<-CRL> I<filename>
|
|
|
|
|
|
|
|
CRL file to use to check the server's certificate.
|
|
|
|
|
2019-10-10 09:48:33 +08:00
|
|
|
=item B<-CRLform> B<DER>|B<PEM>
|
|
|
|
|
2021-05-03 20:15:26 +08:00
|
|
|
The CRL file format; unspecified by default.
|
2020-12-10 04:56:51 +08:00
|
|
|
See L<openssl-format-options(1)> for details.
|
2019-10-10 09:48:33 +08:00
|
|
|
|
2020-01-30 00:18:24 +08:00
|
|
|
=item B<-crl_download>
|
|
|
|
|
|
|
|
Download CRL from distribution points in the certificate.
|
|
|
|
|
2020-11-30 14:25:46 +08:00
|
|
|
=item B<-key> I<filename>|I<uri>
|
2000-01-09 03:05:47 +08:00
|
|
|
|
2020-11-30 14:25:46 +08:00
|
|
|
The client private key to use.
|
2020-03-07 04:46:33 +08:00
|
|
|
If not specified then the certificate file will be used to read also the key.
|
2000-01-09 03:05:47 +08:00
|
|
|
|
2020-05-06 19:51:50 +08:00
|
|
|
=item B<-keyform> B<DER>|B<PEM>|B<P12>|B<ENGINE>
|
2004-11-17 01:30:59 +08:00
|
|
|
|
2021-05-03 20:15:26 +08:00
|
|
|
The key format; unspecified by default.
|
2020-12-10 04:56:51 +08:00
|
|
|
See L<openssl-format-options(1)> for details.
|
2004-11-17 01:30:59 +08:00
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-pass> I<arg>
|
2004-11-17 01:30:59 +08:00
|
|
|
|
2020-08-16 21:25:27 +08:00
|
|
|
the private key and certifiate file password source.
|
|
|
|
For more information about the format of I<arg>
|
2020-12-10 04:56:51 +08:00
|
|
|
see L<openssl-passphrase-options(1)>.
|
2004-11-17 01:30:59 +08:00
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-verify> I<depth>
|
2000-01-09 03:05:47 +08:00
|
|
|
|
|
|
|
The verify depth to use. This specifies the maximum length of the
|
|
|
|
server certificate chain and turns on server certificate verification.
|
|
|
|
Currently the verify operation continues after errors so all the problems
|
|
|
|
with a certificate chain can be seen. As a side effect the connection
|
|
|
|
will never fail due to a server certificate verify failure.
|
|
|
|
|
2014-04-07 20:02:10 +08:00
|
|
|
=item B<-verify_return_error>
|
|
|
|
|
|
|
|
Return verification errors instead of continuing. This will typically
|
|
|
|
abort the handshake with a fatal error.
|
|
|
|
|
2020-01-30 00:18:24 +08:00
|
|
|
=item B<-verify_quiet>
|
|
|
|
|
|
|
|
Limit verify output to only errors.
|
|
|
|
|
|
|
|
=item B<-verifyCAfile> I<filename>
|
|
|
|
|
2020-03-07 04:46:33 +08:00
|
|
|
A file in PEM format containing trusted certificates to use
|
|
|
|
for verifying the server's certificate.
|
2020-01-30 00:18:24 +08:00
|
|
|
|
|
|
|
=item B<-verifyCApath> I<dir>
|
|
|
|
|
2020-03-07 04:46:33 +08:00
|
|
|
A directory containing trusted certificates to use
|
|
|
|
for verifying the server's certificate.
|
|
|
|
This directory must be in "hash format",
|
|
|
|
see L<openssl-verify(1)> for more information.
|
2020-01-30 00:18:24 +08:00
|
|
|
|
|
|
|
=item B<-verifyCAstore> I<uri>
|
|
|
|
|
2020-03-07 04:46:33 +08:00
|
|
|
The URI of a store containing trusted certificates to use
|
|
|
|
for verifying the server's certificate.
|
2020-01-30 00:18:24 +08:00
|
|
|
|
2020-03-07 04:46:33 +08:00
|
|
|
=item B<-chainCAfile> I<file>
|
2018-05-09 23:30:41 +08:00
|
|
|
|
2020-03-07 04:46:33 +08:00
|
|
|
A file in PEM format containing trusted certificates to use
|
|
|
|
when attempting to build the client certificate chain.
|
2018-05-09 23:30:41 +08:00
|
|
|
|
2020-03-07 04:46:33 +08:00
|
|
|
=item B<-chainCApath> I<directory>
|
2018-05-09 23:30:41 +08:00
|
|
|
|
2020-03-07 04:46:33 +08:00
|
|
|
A directory containing trusted certificates to use
|
|
|
|
for building the client certificate chain provided to the server.
|
|
|
|
This directory must be in "hash format",
|
|
|
|
see L<openssl-verify(1)> for more information.
|
2018-05-09 23:30:41 +08:00
|
|
|
|
2019-03-07 22:26:34 +08:00
|
|
|
=item B<-chainCAstore> I<uri>
|
|
|
|
|
2020-03-07 04:46:33 +08:00
|
|
|
The URI of a store containing trusted certificates to use
|
|
|
|
when attempting to build the client certificate chain.
|
|
|
|
The URI may indicate a single certificate, as well as a collection of them.
|
|
|
|
With URIs in the C<file:> scheme, this acts as B<-chainCAfile> or
|
|
|
|
B<-chainCApath>, depending on if the URI indicates a directory or a
|
|
|
|
single file.
|
|
|
|
See L<ossl_store-file(7)> for more information on the C<file:> scheme.
|
2019-03-07 22:26:34 +08:00
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-requestCAfile> I<file>
|
2017-04-01 00:15:22 +08:00
|
|
|
|
|
|
|
A file containing a list of certificates whose subject names will be sent
|
|
|
|
to the server in the B<certificate_authorities> extension. Only supported
|
|
|
|
for TLS 1.3
|
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-dane_tlsa_domain> I<domain>
|
2015-12-30 03:25:50 +08:00
|
|
|
|
|
|
|
Enable RFC6698/RFC7671 DANE TLSA authentication and specify the
|
|
|
|
TLSA base domain which becomes the default SNI hint and the primary
|
|
|
|
reference identifier for hostname checks. This must be used in
|
|
|
|
combination with at least one instance of the B<-dane_tlsa_rrdata>
|
|
|
|
option below.
|
|
|
|
|
|
|
|
When DANE authentication succeeds, the diagnostic output will include
|
|
|
|
the lowest (closest to 0) depth at which a TLSA record authenticated
|
|
|
|
a chain certificate. When that TLSA record is a "2 1 0" trust
|
|
|
|
anchor public key that signed (rather than matched) the top-most
|
|
|
|
certificate of the chain, the result is reported as "TA public key
|
|
|
|
verified". Otherwise, either the TLSA record "matched TA certificate"
|
|
|
|
at a positive depth or else "matched EE certificate" at depth 0.
|
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-dane_tlsa_rrdata> I<rrdata>
|
2015-12-30 03:25:50 +08:00
|
|
|
|
|
|
|
Use one or more times to specify the RRDATA fields of the DANE TLSA
|
2019-10-02 00:16:29 +08:00
|
|
|
RRset associated with the target service. The I<rrdata> value is
|
2020-02-03 05:54:01 +08:00
|
|
|
specified in "presentation form", that is four whitespace separated
|
2015-12-30 03:25:50 +08:00
|
|
|
fields that specify the usage, selector, matching type and associated
|
|
|
|
data, with the last of these encoded in hexadecimal. Optional
|
|
|
|
whitespace is ignored in the associated data field. For example:
|
|
|
|
|
Suppress DANE TLSA reflection when verification fails
As documented both SSL_get0_dane_authority() and SSL_get0_dane_tlsa()
are expected to return a negative match depth and nothing else when
verification fails. However, this only happened when verification
failed during chain construction. Errors in verification of the
constructed chain did not have the intended effect on these functions.
This commit updates the functions to check for verify_result ==
X509_V_OK, and no longer erases any accumulated match information
when chain construction fails. Sophisticated developers can, with
care, use SSL_set_verify_result(ssl, X509_V_OK) to "peek" at TLSA
info even when verification fail. They must of course first check
and save the real error, and restore the original error as quickly
as possible. Hiding by default seems to be the safer interface.
Introduced X509_V_ERR_DANE_NO_MATCH code to signal failure to find
matching TLSA records. Previously reported via X509_V_ERR_CERT_UNTRUSTED.
This also changes the "-brief" output from s_client to include
verification results and TLSA match information.
Mentioned session resumption in code example in SSL_CTX_dane_enable(3).
Also mentioned that depths returned are relative to the verified chain
which is now available via SSL_get0_verified_chain(3).
Added a few more test-cases to danetest, that exercise the new
code.
Resolved thread safety issue in use of static buffer in
X509_verify_cert_error_string().
Fixed long-stating issue in apps/s_cb.c which always sets verify_error
to either X509_V_OK or "chain to long", code elsewhere (e.g.
s_time.c), seems to expect the actual error. [ The new chain
construction code is expected to correctly generate "chain
too long" errors, so at some point we need to drop the
work-arounds, once SSL_set_verify_depth() is also fixed to
propagate the depth to X509_STORE_CTX reliably. ]
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-08 08:07:57 +08:00
|
|
|
$ openssl s_client -brief -starttls smtp \
|
|
|
|
-connect smtp.example.com:25 \
|
2015-12-30 03:25:50 +08:00
|
|
|
-dane_tlsa_domain smtp.example.com \
|
|
|
|
-dane_tlsa_rrdata "2 1 1
|
|
|
|
B111DD8A1C2091A89BD4FD60C57F0716CCE50FEEFF8137CDBEE0326E 02CF362B" \
|
|
|
|
-dane_tlsa_rrdata "2 1 1
|
|
|
|
60B87575447DCBA2A36B7D11AC09FB24A9DB406FEE12D2CC90180517 616E8A18"
|
|
|
|
...
|
Suppress DANE TLSA reflection when verification fails
As documented both SSL_get0_dane_authority() and SSL_get0_dane_tlsa()
are expected to return a negative match depth and nothing else when
verification fails. However, this only happened when verification
failed during chain construction. Errors in verification of the
constructed chain did not have the intended effect on these functions.
This commit updates the functions to check for verify_result ==
X509_V_OK, and no longer erases any accumulated match information
when chain construction fails. Sophisticated developers can, with
care, use SSL_set_verify_result(ssl, X509_V_OK) to "peek" at TLSA
info even when verification fail. They must of course first check
and save the real error, and restore the original error as quickly
as possible. Hiding by default seems to be the safer interface.
Introduced X509_V_ERR_DANE_NO_MATCH code to signal failure to find
matching TLSA records. Previously reported via X509_V_ERR_CERT_UNTRUSTED.
This also changes the "-brief" output from s_client to include
verification results and TLSA match information.
Mentioned session resumption in code example in SSL_CTX_dane_enable(3).
Also mentioned that depths returned are relative to the verified chain
which is now available via SSL_get0_verified_chain(3).
Added a few more test-cases to danetest, that exercise the new
code.
Resolved thread safety issue in use of static buffer in
X509_verify_cert_error_string().
Fixed long-stating issue in apps/s_cb.c which always sets verify_error
to either X509_V_OK or "chain to long", code elsewhere (e.g.
s_time.c), seems to expect the actual error. [ The new chain
construction code is expected to correctly generate "chain
too long" errors, so at some point we need to drop the
work-arounds, once SSL_set_verify_depth() is also fixed to
propagate the depth to X509_STORE_CTX reliably. ]
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-08 08:07:57 +08:00
|
|
|
Verification: OK
|
2015-12-30 03:25:50 +08:00
|
|
|
Verified peername: smtp.example.com
|
Suppress DANE TLSA reflection when verification fails
As documented both SSL_get0_dane_authority() and SSL_get0_dane_tlsa()
are expected to return a negative match depth and nothing else when
verification fails. However, this only happened when verification
failed during chain construction. Errors in verification of the
constructed chain did not have the intended effect on these functions.
This commit updates the functions to check for verify_result ==
X509_V_OK, and no longer erases any accumulated match information
when chain construction fails. Sophisticated developers can, with
care, use SSL_set_verify_result(ssl, X509_V_OK) to "peek" at TLSA
info even when verification fail. They must of course first check
and save the real error, and restore the original error as quickly
as possible. Hiding by default seems to be the safer interface.
Introduced X509_V_ERR_DANE_NO_MATCH code to signal failure to find
matching TLSA records. Previously reported via X509_V_ERR_CERT_UNTRUSTED.
This also changes the "-brief" output from s_client to include
verification results and TLSA match information.
Mentioned session resumption in code example in SSL_CTX_dane_enable(3).
Also mentioned that depths returned are relative to the verified chain
which is now available via SSL_get0_verified_chain(3).
Added a few more test-cases to danetest, that exercise the new
code.
Resolved thread safety issue in use of static buffer in
X509_verify_cert_error_string().
Fixed long-stating issue in apps/s_cb.c which always sets verify_error
to either X509_V_OK or "chain to long", code elsewhere (e.g.
s_time.c), seems to expect the actual error. [ The new chain
construction code is expected to correctly generate "chain
too long" errors, so at some point we need to drop the
work-arounds, once SSL_set_verify_depth() is also fixed to
propagate the depth to X509_STORE_CTX reliably. ]
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-08 08:07:57 +08:00
|
|
|
DANE TLSA 2 1 1 ...ee12d2cc90180517616e8a18 matched TA certificate at depth 1
|
2015-12-30 03:25:50 +08:00
|
|
|
...
|
|
|
|
|
2016-08-19 23:59:47 +08:00
|
|
|
=item B<-dane_ee_no_namechecks>
|
|
|
|
|
|
|
|
This disables server name checks when authenticating via DANE-EE(3) TLSA
|
|
|
|
records.
|
|
|
|
For some applications, primarily web browsers, it is not safe to disable name
|
|
|
|
checks due to "unknown key share" attacks, in which a malicious server can
|
|
|
|
convince a client that a connection to a victim server is instead a secure
|
|
|
|
connection to the malicious server.
|
|
|
|
The malicious server may then be able to violate cross-origin scripting
|
|
|
|
restrictions.
|
|
|
|
Thus, despite the text of RFC7671, name checks are by default enabled for
|
|
|
|
DANE-EE(3) TLSA records, and can be disabled in applications where it is safe
|
|
|
|
to do so.
|
|
|
|
In particular, SMTP and XMPP clients should set this option as SRV and MX
|
|
|
|
records already make it possible for a remote domain to redirect client
|
|
|
|
connections to any server of its choice, and in any case SMTP and XMPP clients
|
|
|
|
do not execute scripts downloaded from remote servers.
|
|
|
|
|
2000-01-09 03:05:47 +08:00
|
|
|
=item B<-reconnect>
|
|
|
|
|
2017-03-30 05:38:30 +08:00
|
|
|
Reconnects to the same server 5 times using the same session ID, this can
|
2000-01-09 03:05:47 +08:00
|
|
|
be used as a test that session caching is working.
|
|
|
|
|
|
|
|
=item B<-showcerts>
|
|
|
|
|
2018-04-24 17:27:32 +08:00
|
|
|
Displays the server certificate list as sent by the server: it only consists of
|
|
|
|
certificates the server has sent (in the order the server has sent them). It is
|
|
|
|
B<not> a verified chain.
|
2000-01-09 03:05:47 +08:00
|
|
|
|
|
|
|
=item B<-prexit>
|
|
|
|
|
2017-03-30 05:38:30 +08:00
|
|
|
Print session information when the program exits. This will always attempt
|
2000-01-09 03:05:47 +08:00
|
|
|
to print out information even if the connection fails. Normally information
|
|
|
|
will only be printed out once if the connection succeeds. This option is useful
|
|
|
|
because the cipher in use may be renegotiated or the connection may fail
|
|
|
|
because a client certificate is required or is requested only after an
|
|
|
|
attempt is made to access a certain URL. Note: the output produced by this
|
|
|
|
option is not always accurate because a connection might never have been
|
|
|
|
established.
|
|
|
|
|
|
|
|
=item B<-state>
|
|
|
|
|
2017-03-30 05:38:30 +08:00
|
|
|
Prints out the SSL session states.
|
2000-01-09 03:05:47 +08:00
|
|
|
|
|
|
|
=item B<-debug>
|
|
|
|
|
2017-03-30 05:38:30 +08:00
|
|
|
Print extensive debugging information including a hex dump of all traffic.
|
2000-01-09 03:05:47 +08:00
|
|
|
|
2020-01-30 00:18:24 +08:00
|
|
|
=item B<-nocommands>
|
|
|
|
|
|
|
|
Do not use interactive command letters.
|
|
|
|
|
|
|
|
=item B<-security_debug>
|
|
|
|
|
|
|
|
Enable security debug messages.
|
|
|
|
|
|
|
|
=item B<-security_debug_verbose>
|
|
|
|
|
|
|
|
Output more security debug output.
|
|
|
|
|
2001-11-10 10:12:09 +08:00
|
|
|
=item B<-msg>
|
|
|
|
|
2020-01-30 00:18:24 +08:00
|
|
|
Show protocol messages.
|
|
|
|
|
|
|
|
=item B<-timeout>
|
|
|
|
|
|
|
|
Enable send/receive timeout on DTLS connections.
|
|
|
|
|
|
|
|
=item B<-mtu> I<size>
|
|
|
|
|
|
|
|
Set MTU of the link layer to the specified size.
|
|
|
|
|
2021-06-14 17:40:31 +08:00
|
|
|
=item B<-no_etm>
|
|
|
|
|
|
|
|
Disable Encrypt-then-MAC negotiation.
|
|
|
|
|
2020-01-30 00:18:24 +08:00
|
|
|
=item B<-keymatexport> I<label>
|
|
|
|
|
|
|
|
Export keying material using the specified label.
|
|
|
|
|
|
|
|
=item B<-keymatexportlen> I<len>
|
|
|
|
|
2020-01-30 00:18:39 +08:00
|
|
|
Export the specified number of bytes of keying material; default is 20.
|
2020-01-30 00:18:24 +08:00
|
|
|
|
2017-03-30 05:38:30 +08:00
|
|
|
Show all protocol messages with hex dump.
|
2001-11-10 10:12:09 +08:00
|
|
|
|
2012-11-20 00:37:18 +08:00
|
|
|
=item B<-trace>
|
|
|
|
|
2021-06-09 05:45:38 +08:00
|
|
|
Show verbose trace output of protocol messages.
|
2012-11-20 00:37:18 +08:00
|
|
|
|
2020-01-30 00:18:24 +08:00
|
|
|
=item B<-msgfile> I<filename>
|
2012-11-20 00:37:18 +08:00
|
|
|
|
2017-03-30 05:38:30 +08:00
|
|
|
File to send output of B<-msg> or B<-trace> to, default standard output.
|
2012-11-20 00:37:18 +08:00
|
|
|
|
2000-01-09 03:05:47 +08:00
|
|
|
=item B<-nbio_test>
|
|
|
|
|
2020-07-17 18:31:26 +08:00
|
|
|
Tests nonblocking I/O
|
2000-01-09 03:05:47 +08:00
|
|
|
|
|
|
|
=item B<-nbio>
|
|
|
|
|
2020-07-17 18:31:26 +08:00
|
|
|
Turns on nonblocking I/O
|
2000-01-09 03:05:47 +08:00
|
|
|
|
|
|
|
=item B<-crlf>
|
|
|
|
|
2017-03-30 05:38:30 +08:00
|
|
|
This option translated a line feed from the terminal into CR+LF as required
|
2000-01-09 03:05:47 +08:00
|
|
|
by some servers.
|
|
|
|
|
2000-03-10 20:18:28 +08:00
|
|
|
=item B<-ign_eof>
|
|
|
|
|
2017-03-30 05:38:30 +08:00
|
|
|
Inhibit shutting down the connection when end of file is reached in the
|
2000-03-10 20:18:28 +08:00
|
|
|
input.
|
|
|
|
|
2000-01-09 03:05:47 +08:00
|
|
|
=item B<-quiet>
|
|
|
|
|
2017-03-30 05:38:30 +08:00
|
|
|
Inhibit printing of session and certificate information. This implicitly
|
2000-03-10 20:18:28 +08:00
|
|
|
turns on B<-ign_eof> as well.
|
2000-01-09 03:05:47 +08:00
|
|
|
|
2014-07-03 10:42:40 +08:00
|
|
|
=item B<-no_ign_eof>
|
|
|
|
|
2017-03-30 05:38:30 +08:00
|
|
|
Shut down the connection when end of file is reached in the input.
|
2014-07-03 10:42:40 +08:00
|
|
|
Can be used to override the implicit B<-ign_eof> after B<-quiet>.
|
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-psk_identity> I<identity>
|
2006-03-11 07:06:27 +08:00
|
|
|
|
2019-10-02 00:16:29 +08:00
|
|
|
Use the PSK identity I<identity> when using a PSK cipher suite.
|
2017-06-03 04:05:37 +08:00
|
|
|
The default value is "Client_identity" (without the quotes).
|
2006-03-11 07:06:27 +08:00
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-psk> I<key>
|
2006-03-11 07:06:27 +08:00
|
|
|
|
2019-10-02 00:16:29 +08:00
|
|
|
Use the PSK key I<key> when using a PSK cipher suite. The key is
|
2006-03-11 07:06:27 +08:00
|
|
|
given as a hexadecimal number without leading 0x, for example -psk
|
|
|
|
1a2b3c4d.
|
2017-06-03 04:05:37 +08:00
|
|
|
This option must be provided in order to use a PSK cipher.
|
2006-03-11 07:06:27 +08:00
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-psk_session> I<file>
|
2018-05-10 19:01:06 +08:00
|
|
|
|
2019-10-02 00:16:29 +08:00
|
|
|
Use the pem encoded SSL_SESSION data stored in I<file> as the basis of a PSK.
|
2018-05-10 19:01:06 +08:00
|
|
|
Note that this will only work if TLSv1.3 is negotiated.
|
|
|
|
|
2017-04-25 21:37:25 +08:00
|
|
|
=item B<-sctp>
|
|
|
|
|
|
|
|
Use SCTP for the transport protocol instead of UDP in DTLS. Must be used in
|
|
|
|
conjunction with B<-dtls>, B<-dtls1> or B<-dtls1_2>. This option is only
|
|
|
|
available where OpenSSL has support for SCTP enabled.
|
|
|
|
|
2018-12-26 19:44:53 +08:00
|
|
|
=item B<-sctp_label_bug>
|
|
|
|
|
|
|
|
Use the incorrect behaviour of older OpenSSL implementations when computing
|
|
|
|
endpoint-pair shared secrets for DTLS/SCTP. This allows communication with
|
|
|
|
older broken implementations but breaks interoperability with correct
|
|
|
|
implementations. Must be used in conjunction with B<-sctp>. This option is only
|
|
|
|
available where OpenSSL has support for SCTP enabled.
|
|
|
|
|
2014-10-15 16:43:50 +08:00
|
|
|
=item B<-fallback_scsv>
|
|
|
|
|
|
|
|
Send TLS_FALLBACK_SCSV in the ClientHello.
|
2000-01-09 03:05:47 +08:00
|
|
|
|
2015-10-06 20:48:43 +08:00
|
|
|
=item B<-async>
|
|
|
|
|
2017-03-30 05:38:30 +08:00
|
|
|
Switch on asynchronous mode. Cryptographic operations will be performed
|
2015-10-06 20:48:43 +08:00
|
|
|
asynchronously. This will only have an effect if an asynchronous capable engine
|
|
|
|
is also used via the B<-engine> option. For test purposes the dummy async engine
|
|
|
|
(dasync) can be used (if available).
|
|
|
|
|
2020-01-30 00:18:24 +08:00
|
|
|
=item B<-maxfraglen> I<len>
|
|
|
|
|
|
|
|
Enable Maximum Fragment Length Negotiation; allowed values are
|
|
|
|
C<512>, C<1024>, C<2048>, and C<4096>.
|
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-max_send_frag> I<int>
|
2017-04-07 05:47:18 +08:00
|
|
|
|
|
|
|
The maximum size of data fragment to send.
|
|
|
|
See L<SSL_CTX_set_max_send_fragment(3)> for further information.
|
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-split_send_frag> I<int>
|
2016-02-16 19:13:33 +08:00
|
|
|
|
|
|
|
The size used to split data for encrypt pipelines. If more data is written in
|
|
|
|
one go than this value then it will be split into multiple pipelines, up to the
|
|
|
|
maximum number of pipelines defined by max_pipelines. This only has an effect if
|
2017-03-30 05:38:30 +08:00
|
|
|
a suitable cipher suite has been negotiated, an engine that supports pipelining
|
2016-02-16 19:13:33 +08:00
|
|
|
has been loaded, and max_pipelines is greater than 1. See
|
|
|
|
L<SSL_CTX_set_split_send_fragment(3)> for further information.
|
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-max_pipelines> I<int>
|
2016-02-16 19:13:33 +08:00
|
|
|
|
|
|
|
The maximum number of encrypt/decrypt pipelines to be used. This will only have
|
|
|
|
an effect if an engine has been loaded that supports pipelining (e.g. the dasync
|
2017-03-30 05:38:30 +08:00
|
|
|
engine) and a suitable cipher suite has been negotiated. The default value is 1.
|
2016-02-16 19:13:33 +08:00
|
|
|
See L<SSL_CTX_set_max_pipelines(3)> for further information.
|
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-read_buf> I<int>
|
2016-02-16 19:13:33 +08:00
|
|
|
|
|
|
|
The default read buffer size to be used for connections. This will only have an
|
|
|
|
effect if the buffer size is larger than the size that would otherwise be used
|
|
|
|
and pipelining is in use (see L<SSL_CTX_set_default_read_buffer_len(3)> for
|
|
|
|
further information).
|
|
|
|
|
2020-05-05 21:20:42 +08:00
|
|
|
=item B<-ignore_unexpected_eof>
|
|
|
|
|
|
|
|
Some TLS implementations do not send the mandatory close_notify alert on
|
|
|
|
shutdown. If the application tries to wait for the close_notify alert but the
|
|
|
|
peer closes the connection without sending it, an error is generated. When this
|
|
|
|
option is enabled the peer does not need to send the close_notify alert and a
|
|
|
|
closed connection will be treated as if the close_notify alert was received.
|
|
|
|
For more information on shutting down a connection, see L<SSL_shutdown(3)>.
|
|
|
|
|
2000-01-09 03:05:47 +08:00
|
|
|
=item B<-bugs>
|
|
|
|
|
2019-03-27 07:55:55 +08:00
|
|
|
There are several known bugs in SSL and TLS implementations. Adding this
|
2000-01-09 03:05:47 +08:00
|
|
|
option enables various workarounds.
|
|
|
|
|
2016-02-04 05:45:39 +08:00
|
|
|
=item B<-comp>
|
|
|
|
|
|
|
|
Enables support for SSL/TLS compression.
|
|
|
|
This option was introduced in OpenSSL 1.1.0.
|
|
|
|
TLS compression is not recommended and is off by default as of
|
|
|
|
OpenSSL 1.1.0.
|
|
|
|
|
|
|
|
=item B<-no_comp>
|
|
|
|
|
|
|
|
Disables support for SSL/TLS compression.
|
|
|
|
TLS compression is not recommended and is off by default as of
|
|
|
|
OpenSSL 1.1.0.
|
|
|
|
|
2012-11-20 00:07:53 +08:00
|
|
|
=item B<-brief>
|
|
|
|
|
2017-03-30 05:38:30 +08:00
|
|
|
Only provide a brief summary of connection parameters instead of the
|
2012-11-20 00:07:53 +08:00
|
|
|
normal verbose output.
|
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-sigalgs> I<sigalglist>
|
2017-03-29 00:02:37 +08:00
|
|
|
|
|
|
|
Specifies the list of signature algorithms that are sent by the client.
|
|
|
|
The server selects one entry in the list based on its preferences.
|
|
|
|
For example strings, see L<SSL_CTX_set1_sigalgs(3)>
|
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-curves> I<curvelist>
|
2017-03-29 00:02:37 +08:00
|
|
|
|
|
|
|
Specifies the list of supported curves to be sent by the client. The curve is
|
2018-03-07 02:07:33 +08:00
|
|
|
ultimately selected by the server. For a list of all curves, use:
|
2017-03-29 00:02:37 +08:00
|
|
|
|
|
|
|
$ openssl ecparam -list_curves
|
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-cipher> I<cipherlist>
|
2000-01-09 03:05:47 +08:00
|
|
|
|
2018-02-22 01:23:11 +08:00
|
|
|
This allows the TLSv1.2 and below cipher list sent by the client to be modified.
|
|
|
|
This list will be combined with any TLSv1.3 ciphersuites that have been
|
|
|
|
configured. Although the server determines which ciphersuite is used it should
|
Command docs: fix up command references
Almost all OpenSSL commands are in reality 'openssl cmd', so make sure
they are refered to like that and not just as the sub-command.
Self-references are avoided as much as is possible, and replaced with
"this command". In some cases, we even avoid that with a slight
rewrite of the sentence or paragrah they were in. However, in the few
cases where a self-reference is still admissible, they are done in
bold, i.e. openssl-speed.pod references itself like this:
B<openssl speed>
References to other commands are done as manual links, i.e. CA.pl.pod
references 'openssl req' like this: L<openssl-req(1)>
Some commands are examples rather than references; we enclose those in
C<>.
While we are it, we abolish "utility", replacing it with "command", or
remove it entirely in some cases.
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/10065)
2019-10-02 01:43:36 +08:00
|
|
|
take the first supported cipher in the list sent by the client. See
|
|
|
|
L<openssl-ciphers(1)> for more information.
|
2018-02-22 01:23:11 +08:00
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-ciphersuites> I<val>
|
2018-02-22 01:23:11 +08:00
|
|
|
|
|
|
|
This allows the TLSv1.3 ciphersuites sent by the client to be modified. This
|
|
|
|
list will be combined with any TLSv1.2 and below ciphersuites that have been
|
|
|
|
configured. Although the server determines which cipher suite is used it should
|
Command docs: fix up command references
Almost all OpenSSL commands are in reality 'openssl cmd', so make sure
they are refered to like that and not just as the sub-command.
Self-references are avoided as much as is possible, and replaced with
"this command". In some cases, we even avoid that with a slight
rewrite of the sentence or paragrah they were in. However, in the few
cases where a self-reference is still admissible, they are done in
bold, i.e. openssl-speed.pod references itself like this:
B<openssl speed>
References to other commands are done as manual links, i.e. CA.pl.pod
references 'openssl req' like this: L<openssl-req(1)>
Some commands are examples rather than references; we enclose those in
C<>.
While we are it, we abolish "utility", replacing it with "command", or
remove it entirely in some cases.
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/10065)
2019-10-02 01:43:36 +08:00
|
|
|
take the first supported cipher in the list sent by the client. See
|
|
|
|
L<openssl-ciphers(1)> for more information. The format for this list is a simple
|
2018-02-22 01:23:11 +08:00
|
|
|
colon (":") separated list of TLSv1.3 ciphersuite names.
|
2000-01-09 03:05:47 +08:00
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-starttls> I<protocol>
|
2003-03-21 00:34:27 +08:00
|
|
|
|
2017-03-30 05:38:30 +08:00
|
|
|
Send the protocol-specific message(s) to switch to TLS for communication.
|
2019-10-02 00:16:29 +08:00
|
|
|
I<protocol> is a keyword for the intended protocol. Currently, the only
|
2015-05-14 04:00:21 +08:00
|
|
|
supported keywords are "smtp", "pop3", "imap", "ftp", "xmpp", "xmpp-server",
|
2017-05-13 08:50:49 +08:00
|
|
|
"irc", "postgres", "mysql", "lmtp", "nntp", "sieve" and "ldap".
|
2003-03-21 00:34:27 +08:00
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-xmpphost> I<hostname>
|
2012-08-06 08:24:51 +08:00
|
|
|
|
2015-07-30 05:41:00 +08:00
|
|
|
This option, when used with "-starttls xmpp" or "-starttls xmpp-server",
|
|
|
|
specifies the host for the "to" attribute of the stream element.
|
2012-08-06 08:24:51 +08:00
|
|
|
If this option is not specified, then the host specified with "-connect"
|
|
|
|
will be used.
|
|
|
|
|
2017-10-17 03:32:24 +08:00
|
|
|
This option is an alias of the B<-name> option for "xmpp" and "xmpp-server".
|
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-name> I<hostname>
|
2017-10-17 03:32:24 +08:00
|
|
|
|
|
|
|
This option is used to specify hostname information for various protocols
|
|
|
|
used with B<-starttls> option. Currently only "xmpp", "xmpp-server",
|
|
|
|
"smtp" and "lmtp" can utilize this B<-name> option.
|
|
|
|
|
|
|
|
If this option is used with "-starttls xmpp" or "-starttls xmpp-server",
|
|
|
|
if specifies the host for the "to" attribute of the stream element. If this
|
|
|
|
option is not specified, then the host specified with "-connect" will be used.
|
|
|
|
|
|
|
|
If this option is used with "-starttls lmtp" or "-starttls smtp", it specifies
|
|
|
|
the name to use in the "LMTP LHLO" or "SMTP EHLO" message, respectively. If
|
|
|
|
this option is not specified, then "mail.example.com" will be used.
|
|
|
|
|
2007-08-23 19:34:48 +08:00
|
|
|
=item B<-tlsextdebug>
|
|
|
|
|
2017-03-30 05:38:30 +08:00
|
|
|
Print out a hex dump of any TLS extensions received from the server.
|
2007-08-23 19:34:48 +08:00
|
|
|
|
|
|
|
=item B<-no_ticket>
|
|
|
|
|
2017-03-30 05:38:30 +08:00
|
|
|
Disable RFC4507bis session ticket support.
|
2007-08-23 19:34:48 +08:00
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-sess_out> I<filename>
|
2007-08-23 19:34:48 +08:00
|
|
|
|
2019-10-02 00:16:29 +08:00
|
|
|
Output SSL session to I<filename>.
|
2007-08-23 19:34:48 +08:00
|
|
|
|
2019-10-02 00:16:29 +08:00
|
|
|
=item B<-sess_in> I<filename>
|
2007-08-23 19:34:48 +08:00
|
|
|
|
2019-10-02 00:16:29 +08:00
|
|
|
Load SSL session from I<filename>. The client will attempt to resume a
|
2007-08-23 19:34:48 +08:00
|
|
|
connection from this session.
|
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-serverinfo> I<types>
|
2013-06-14 13:36:45 +08:00
|
|
|
|
2017-03-30 05:38:30 +08:00
|
|
|
A list of comma-separated TLS Extension Types (numbers between 0 and
|
2013-06-14 13:36:45 +08:00
|
|
|
65535). Each type will be sent as an empty ClientHello TLS Extension.
|
|
|
|
The server's response (if any) will be encoded and displayed as a PEM
|
|
|
|
file.
|
|
|
|
|
2014-07-07 05:16:21 +08:00
|
|
|
=item B<-status>
|
|
|
|
|
2017-03-30 05:38:30 +08:00
|
|
|
Sends a certificate status request to the server (OCSP stapling). The server
|
2014-07-07 05:16:21 +08:00
|
|
|
response (if any) is printed out.
|
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-alpn> I<protocols>, B<-nextprotoneg> I<protocols>
|
2014-06-06 22:48:43 +08:00
|
|
|
|
2017-03-30 05:38:30 +08:00
|
|
|
These flags enable the Enable the Application-Layer Protocol Negotiation
|
|
|
|
or Next Protocol Negotiation (NPN) extension, respectively. ALPN is the
|
|
|
|
IETF standard and replaces NPN.
|
2019-10-02 00:16:29 +08:00
|
|
|
The I<protocols> list is a comma-separated list of protocol names that
|
2017-03-30 05:38:30 +08:00
|
|
|
the client should advertise support for. The list should contain the most
|
|
|
|
desirable protocols first. Protocol names are printable ASCII strings,
|
|
|
|
for example "http/1.1" or "spdy/3".
|
|
|
|
An empty list of protocols is treated specially and will cause the
|
|
|
|
client to advertise support for the TLS extension but disconnect just
|
|
|
|
after receiving ServerHello with a list of server supported protocols.
|
2017-06-16 18:12:02 +08:00
|
|
|
The flag B<-nextprotoneg> cannot be specified if B<-tls1_3> is used.
|
2014-06-06 22:48:43 +08:00
|
|
|
|
2017-08-14 21:32:07 +08:00
|
|
|
=item B<-ct>, B<-noct>
|
2016-03-03 22:07:28 +08:00
|
|
|
|
2016-04-08 02:17:37 +08:00
|
|
|
Use one of these two options to control whether Certificate Transparency (CT)
|
|
|
|
is enabled (B<-ct>) or disabled (B<-noct>).
|
|
|
|
If CT is enabled, signed certificate timestamps (SCTs) will be requested from
|
|
|
|
the server and reported at handshake completion.
|
2016-03-03 22:07:28 +08:00
|
|
|
|
|
|
|
Enabling CT also enables OCSP stapling, as this is one possible delivery method
|
|
|
|
for SCTs.
|
|
|
|
|
|
|
|
=item B<-ctlogfile>
|
|
|
|
|
|
|
|
A file containing a list of known Certificate Transparency logs. See
|
|
|
|
L<SSL_CTX_set_ctlog_list_file(3)> for the expected file format.
|
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-keylogfile> I<file>
|
2017-02-02 02:14:27 +08:00
|
|
|
|
|
|
|
Appends TLS secrets to the specified keylog file such that external programs
|
|
|
|
(like Wireshark) can decrypt TLS connections.
|
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-early_data> I<file>
|
2017-02-25 00:17:00 +08:00
|
|
|
|
|
|
|
Reads the contents of the specified file and attempts to send it as early data
|
|
|
|
to the server. This will only work with resumed sessions that support early
|
|
|
|
data and when the server accepts the early data.
|
|
|
|
|
2018-08-13 22:23:27 +08:00
|
|
|
=item B<-enable_pha>
|
Add TLSv1.3 post-handshake authentication (PHA)
Add SSL_verify_client_post_handshake() for servers to initiate PHA
Add SSL_force_post_handshake_auth() for clients that don't have certificates
initially configured, but use a certificate callback.
Update SSL_CTX_set_verify()/SSL_set_verify() mode:
* Add SSL_VERIFY_POST_HANDSHAKE to postpone client authentication until after
the initial handshake.
* Update SSL_VERIFY_CLIENT_ONCE now only sends out one CertRequest regardless
of when the certificate authentication takes place; either initial handshake,
re-negotiation, or post-handshake authentication.
Add 'RequestPostHandshake' and 'RequirePostHandshake' SSL_CONF options that
add the SSL_VERIFY_POST_HANDSHAKE to the 'Request' and 'Require' options
Add support to s_client:
* Enabled automatically when cert is configured
* Can be forced enabled via -force_pha
Add support to s_server:
* Use 'c' to invoke PHA in s_server
* Remove some dead code
Update documentation
Update unit tests:
* Illegal use of PHA extension
* TLSv1.3 certificate tests
DTLS and TLS behave ever-so-slightly differently. So, when DTLS1.3 is
implemented, it's PHA support state machine may need to be different.
Add a TODO and a #error
Update handshake context to deal with PHA.
The handshake context for TLSv1.3 post-handshake auth is up through the
ClientFinish message, plus the CertificateRequest message. Subsequent
Certificate, CertificateVerify, and Finish messages are based on this
handshake context (not the Certificate message per se, but it's included
after the hash). KeyUpdate, NewSessionTicket, and prior Certificate
Request messages are not included in post-handshake authentication.
After the ClientFinished message is processed, save off the digest state
for future post-handshake authentication. When post-handshake auth occurs,
copy over the saved handshake context into the "main" handshake digest.
This effectively discards the any KeyUpdate or NewSessionTicket messages
and any prior post-handshake authentication.
This, of course, assumes that the ID-22 did not mean to include any
previous post-handshake authentication into the new handshake transcript.
This is implied by section 4.4.1 that lists messages only up to the
first ClientFinished.
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4964)
2017-12-19 05:52:28 +08:00
|
|
|
|
2018-08-13 22:23:27 +08:00
|
|
|
For TLSv1.3 only, send the Post-Handshake Authentication extension. This will
|
|
|
|
happen whether or not a certificate has been provided via B<-cert>.
|
Add TLSv1.3 post-handshake authentication (PHA)
Add SSL_verify_client_post_handshake() for servers to initiate PHA
Add SSL_force_post_handshake_auth() for clients that don't have certificates
initially configured, but use a certificate callback.
Update SSL_CTX_set_verify()/SSL_set_verify() mode:
* Add SSL_VERIFY_POST_HANDSHAKE to postpone client authentication until after
the initial handshake.
* Update SSL_VERIFY_CLIENT_ONCE now only sends out one CertRequest regardless
of when the certificate authentication takes place; either initial handshake,
re-negotiation, or post-handshake authentication.
Add 'RequestPostHandshake' and 'RequirePostHandshake' SSL_CONF options that
add the SSL_VERIFY_POST_HANDSHAKE to the 'Request' and 'Require' options
Add support to s_client:
* Enabled automatically when cert is configured
* Can be forced enabled via -force_pha
Add support to s_server:
* Use 'c' to invoke PHA in s_server
* Remove some dead code
Update documentation
Update unit tests:
* Illegal use of PHA extension
* TLSv1.3 certificate tests
DTLS and TLS behave ever-so-slightly differently. So, when DTLS1.3 is
implemented, it's PHA support state machine may need to be different.
Add a TODO and a #error
Update handshake context to deal with PHA.
The handshake context for TLSv1.3 post-handshake auth is up through the
ClientFinish message, plus the CertificateRequest message. Subsequent
Certificate, CertificateVerify, and Finish messages are based on this
handshake context (not the Certificate message per se, but it's included
after the hash). KeyUpdate, NewSessionTicket, and prior Certificate
Request messages are not included in post-handshake authentication.
After the ClientFinished message is processed, save off the digest state
for future post-handshake authentication. When post-handshake auth occurs,
copy over the saved handshake context into the "main" handshake digest.
This effectively discards the any KeyUpdate or NewSessionTicket messages
and any prior post-handshake authentication.
This, of course, assumes that the ID-22 did not mean to include any
previous post-handshake authentication into the new handshake transcript.
This is implied by section 4.4.1 that lists messages only up to the
first ClientFinished.
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4964)
2017-12-19 05:52:28 +08:00
|
|
|
|
2020-01-30 00:18:24 +08:00
|
|
|
=item B<-use_srtp> I<value>
|
|
|
|
|
|
|
|
Offer SRTP key management, where B<value> is a colon-separated profile list.
|
|
|
|
|
|
|
|
=item B<-srpuser> I<value>
|
|
|
|
|
2021-02-08 23:52:07 +08:00
|
|
|
Set the SRP username to the specified value. This option is deprecated.
|
2020-01-30 00:18:24 +08:00
|
|
|
|
|
|
|
=item B<-srppass> I<value>
|
|
|
|
|
2021-02-08 23:52:07 +08:00
|
|
|
Set the SRP password to the specified value. This option is deprecated.
|
2020-01-30 00:18:24 +08:00
|
|
|
|
|
|
|
=item B<-srp_lateuser>
|
|
|
|
|
2021-02-08 23:52:07 +08:00
|
|
|
SRP username for the second ClientHello message. This option is deprecated.
|
2020-01-30 00:18:24 +08:00
|
|
|
|
2021-02-08 23:52:07 +08:00
|
|
|
=item B<-srp_moregroups> This option is deprecated.
|
2020-01-30 00:18:24 +08:00
|
|
|
|
|
|
|
Tolerate other than the known B<g> and B<N> values.
|
|
|
|
|
|
|
|
=item B<-srp_strength> I<number>
|
|
|
|
|
2021-02-08 23:52:07 +08:00
|
|
|
Set the minimal acceptable length, in bits, for B<N>. This option is
|
|
|
|
deprecated.
|
2020-01-30 00:18:24 +08:00
|
|
|
|
2019-10-13 05:45:56 +08:00
|
|
|
{- $OpenSSL::safe::opt_version_item -}
|
2016-06-05 11:46:38 +08:00
|
|
|
|
2019-10-25 11:02:09 +08:00
|
|
|
{- $OpenSSL::safe::opt_name_item -}
|
|
|
|
|
2019-10-13 05:45:56 +08:00
|
|
|
{- $OpenSSL::safe::opt_x_item -}
|
|
|
|
|
|
|
|
{- $OpenSSL::safe::opt_trust_item -}
|
|
|
|
|
2020-01-30 00:18:24 +08:00
|
|
|
{- $OpenSSL::safe::opt_s_item -}
|
|
|
|
|
2019-10-13 05:45:56 +08:00
|
|
|
{- $OpenSSL::safe::opt_r_item -}
|
|
|
|
|
2020-02-25 12:29:30 +08:00
|
|
|
{- $OpenSSL::safe::opt_provider_item -}
|
|
|
|
|
2019-10-13 05:45:56 +08:00
|
|
|
{- $OpenSSL::safe::opt_engine_item -}
|
|
|
|
|
2020-11-30 14:25:46 +08:00
|
|
|
{- output_off() if $disabled{"deprecated-3.0"}; "" -}
|
2020-01-30 00:18:24 +08:00
|
|
|
=item B<-ssl_client_engine> I<id>
|
|
|
|
|
|
|
|
Specify engine to be used for client certificate operations.
|
2020-11-30 14:25:46 +08:00
|
|
|
{- output_on() if $disabled{"deprecated-3.0"}; "" -}
|
2020-01-30 00:18:24 +08:00
|
|
|
|
2019-10-13 05:45:56 +08:00
|
|
|
{- $OpenSSL::safe::opt_v_item -}
|
|
|
|
|
|
|
|
Verification errors are displayed, for debugging, but the command will
|
|
|
|
proceed unless the B<-verify_return_error> option is used.
|
|
|
|
|
2019-10-13 05:45:56 +08:00
|
|
|
=item I<host>:I<port>
|
|
|
|
|
|
|
|
Rather than providing B<-connect>, the target hostname and optional port may
|
|
|
|
be provided as a single positional argument after all options. If neither this
|
|
|
|
nor B<-connect> are provided, falls back to attempting to connect to
|
|
|
|
I<localhost> on port I<4433>.
|
|
|
|
|
2000-01-11 08:06:40 +08:00
|
|
|
=back
|
|
|
|
|
2000-01-09 03:05:47 +08:00
|
|
|
=head1 CONNECTED COMMANDS
|
|
|
|
|
|
|
|
If a connection is established with an SSL server then any data received
|
|
|
|
from the server is displayed and any key presses will be sent to the
|
2018-05-22 22:18:01 +08:00
|
|
|
server. If end of file is reached then the connection will be closed down. When
|
|
|
|
used interactively (which means neither B<-quiet> nor B<-ign_eof> have been
|
|
|
|
given), then certain commands are also recognized which perform special
|
|
|
|
operations. These commands are a letter which must appear at the start of a
|
|
|
|
line. They are listed below.
|
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
|
|
|
=item B<Q>
|
|
|
|
|
|
|
|
End the current SSL connection and exit.
|
|
|
|
|
|
|
|
=item B<R>
|
|
|
|
|
|
|
|
Renegotiate the SSL session (TLSv1.2 and below only).
|
|
|
|
|
|
|
|
=item B<k>
|
|
|
|
|
|
|
|
Send a key update message to the server (TLSv1.3 only)
|
|
|
|
|
|
|
|
=item B<K>
|
|
|
|
|
|
|
|
Send a key update message to the server and request one back (TLSv1.3 only)
|
|
|
|
|
|
|
|
=back
|
2000-01-09 03:05:47 +08:00
|
|
|
|
|
|
|
=head1 NOTES
|
|
|
|
|
Command docs: fix up command references
Almost all OpenSSL commands are in reality 'openssl cmd', so make sure
they are refered to like that and not just as the sub-command.
Self-references are avoided as much as is possible, and replaced with
"this command". In some cases, we even avoid that with a slight
rewrite of the sentence or paragrah they were in. However, in the few
cases where a self-reference is still admissible, they are done in
bold, i.e. openssl-speed.pod references itself like this:
B<openssl speed>
References to other commands are done as manual links, i.e. CA.pl.pod
references 'openssl req' like this: L<openssl-req(1)>
Some commands are examples rather than references; we enclose those in
C<>.
While we are it, we abolish "utility", replacing it with "command", or
remove it entirely in some cases.
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/10065)
2019-10-02 01:43:36 +08:00
|
|
|
This command can be used to debug SSL servers. To connect to an SSL HTTP
|
2000-01-09 03:05:47 +08:00
|
|
|
server the command:
|
|
|
|
|
|
|
|
openssl s_client -connect servername:443
|
|
|
|
|
|
|
|
would typically be used (https uses port 443). If the connection succeeds
|
|
|
|
then an HTTP command can be given such as "GET /" to retrieve a web page.
|
|
|
|
|
|
|
|
If the handshake fails then there are several possible causes, if it is
|
2014-11-30 22:35:22 +08:00
|
|
|
nothing obvious like no client certificate then the B<-bugs>,
|
|
|
|
B<-ssl3>, B<-tls1>, B<-no_ssl3>, B<-no_tls1> options can be tried
|
2000-01-09 03:05:47 +08:00
|
|
|
in case it is a buggy server. In particular you should play with these
|
|
|
|
options B<before> submitting a bug report to an OpenSSL mailing list.
|
|
|
|
|
|
|
|
A frequent problem when attempting to get client certificates working
|
|
|
|
is that a web client complains it has no certificates or gives an empty
|
|
|
|
list to choose from. This is normally because the server is not sending
|
|
|
|
the clients certificate authority in its "acceptable CA list" when it
|
Command docs: fix up command references
Almost all OpenSSL commands are in reality 'openssl cmd', so make sure
they are refered to like that and not just as the sub-command.
Self-references are avoided as much as is possible, and replaced with
"this command". In some cases, we even avoid that with a slight
rewrite of the sentence or paragrah they were in. However, in the few
cases where a self-reference is still admissible, they are done in
bold, i.e. openssl-speed.pod references itself like this:
B<openssl speed>
References to other commands are done as manual links, i.e. CA.pl.pod
references 'openssl req' like this: L<openssl-req(1)>
Some commands are examples rather than references; we enclose those in
C<>.
While we are it, we abolish "utility", replacing it with "command", or
remove it entirely in some cases.
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/10065)
2019-10-02 01:43:36 +08:00
|
|
|
requests a certificate. By using this command, the CA list can be viewed
|
2020-06-30 03:13:07 +08:00
|
|
|
and checked. However, some servers only request client authentication
|
2000-01-09 03:05:47 +08:00
|
|
|
after a specific URL is requested. To obtain the list in this case it
|
2004-01-05 02:59:14 +08:00
|
|
|
is necessary to use the B<-prexit> option and send an HTTP request
|
2000-01-09 03:05:47 +08:00
|
|
|
for an appropriate page.
|
|
|
|
|
|
|
|
If a certificate is specified on the command line using the B<-cert>
|
|
|
|
option it will not be used unless the server specifically requests
|
2020-06-30 03:13:07 +08:00
|
|
|
a client certificate. Therefore, merely including a client certificate
|
2000-01-09 03:05:47 +08:00
|
|
|
on the command line is no guarantee that the certificate works.
|
|
|
|
|
|
|
|
If there are problems verifying a server certificate then the
|
2018-04-24 17:27:32 +08:00
|
|
|
B<-showcerts> option can be used to show all the certificates sent by the
|
|
|
|
server.
|
2000-01-09 03:05:47 +08:00
|
|
|
|
Command docs: fix up command references
Almost all OpenSSL commands are in reality 'openssl cmd', so make sure
they are refered to like that and not just as the sub-command.
Self-references are avoided as much as is possible, and replaced with
"this command". In some cases, we even avoid that with a slight
rewrite of the sentence or paragrah they were in. However, in the few
cases where a self-reference is still admissible, they are done in
bold, i.e. openssl-speed.pod references itself like this:
B<openssl speed>
References to other commands are done as manual links, i.e. CA.pl.pod
references 'openssl req' like this: L<openssl-req(1)>
Some commands are examples rather than references; we enclose those in
C<>.
While we are it, we abolish "utility", replacing it with "command", or
remove it entirely in some cases.
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/10065)
2019-10-02 01:43:36 +08:00
|
|
|
This command is a test tool and is designed to continue the
|
2014-04-07 20:02:10 +08:00
|
|
|
handshake after any certificate verification errors. As a result it will
|
2019-07-20 13:47:11 +08:00
|
|
|
accept any certificate chain (trusted or not) sent by the peer. Non-test
|
2014-04-07 20:02:10 +08:00
|
|
|
applications should B<not> do this as it makes them vulnerable to a MITM
|
|
|
|
attack. This behaviour can be changed by with the B<-verify_return_error>
|
|
|
|
option: any verify errors are then returned aborting the handshake.
|
|
|
|
|
2018-02-08 17:49:02 +08:00
|
|
|
The B<-bind> option may be useful if the server or a firewall requires
|
|
|
|
connections to come from some particular address and or port.
|
|
|
|
|
2000-01-09 03:05:47 +08:00
|
|
|
=head1 BUGS
|
|
|
|
|
2016-02-22 05:37:14 +08:00
|
|
|
Because this program has a lot of options and also because some of the
|
Command docs: fix up command references
Almost all OpenSSL commands are in reality 'openssl cmd', so make sure
they are refered to like that and not just as the sub-command.
Self-references are avoided as much as is possible, and replaced with
"this command". In some cases, we even avoid that with a slight
rewrite of the sentence or paragrah they were in. However, in the few
cases where a self-reference is still admissible, they are done in
bold, i.e. openssl-speed.pod references itself like this:
B<openssl speed>
References to other commands are done as manual links, i.e. CA.pl.pod
references 'openssl req' like this: L<openssl-req(1)>
Some commands are examples rather than references; we enclose those in
C<>.
While we are it, we abolish "utility", replacing it with "command", or
remove it entirely in some cases.
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/10065)
2019-10-02 01:43:36 +08:00
|
|
|
techniques used are rather old, the C source for this command is rather
|
|
|
|
hard to read and not a model of how things should be done.
|
2016-02-22 05:37:14 +08:00
|
|
|
A typical SSL client program would be much simpler.
|
2000-01-09 03:05:47 +08:00
|
|
|
|
|
|
|
The B<-prexit> option is a bit of a hack. We should really report
|
|
|
|
information whenever a session is renegotiated.
|
|
|
|
|
|
|
|
=head1 SEE ALSO
|
|
|
|
|
2019-08-22 07:04:41 +08:00
|
|
|
L<openssl(1)>,
|
|
|
|
L<openssl-sess_id(1)>,
|
|
|
|
L<openssl-s_server(1)>,
|
|
|
|
L<openssl-ciphers(1)>,
|
|
|
|
L<SSL_CONF_cmd(3)>,
|
|
|
|
L<SSL_CTX_set_max_send_fragment(3)>,
|
|
|
|
L<SSL_CTX_set_split_send_fragment(3)>,
|
2019-03-07 22:26:34 +08:00
|
|
|
L<SSL_CTX_set_max_pipelines(3)>,
|
|
|
|
L<ossl_store-file(7)>
|
2000-01-09 03:05:47 +08:00
|
|
|
|
2015-01-27 19:15:15 +08:00
|
|
|
=head1 HISTORY
|
|
|
|
|
2018-12-09 08:02:36 +08:00
|
|
|
The B<-no_alt_chains> option was added in OpenSSL 1.1.0.
|
2017-10-17 03:32:24 +08:00
|
|
|
The B<-name> option was added in OpenSSL 1.1.1.
|
2015-01-27 19:15:15 +08:00
|
|
|
|
2020-05-06 19:51:50 +08:00
|
|
|
The B<-certform> option has become obsolete in OpenSSL 3.0.0 and has no effect.
|
|
|
|
|
2020-06-25 09:27:51 +08:00
|
|
|
The B<-engine> option was deprecated in OpenSSL 3.0.
|
|
|
|
|
2016-05-18 23:44:05 +08:00
|
|
|
=head1 COPYRIGHT
|
|
|
|
|
2021-02-18 22:57:13 +08:00
|
|
|
Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.
|
2016-05-18 23:44:05 +08:00
|
|
|
|
2018-12-06 21:04:11 +08:00
|
|
|
Licensed under the Apache License 2.0 (the "License"). You may not use
|
2016-05-18 23:44:05 +08:00
|
|
|
this file except in compliance with the License. You can obtain a copy
|
|
|
|
in the file LICENSE in the source distribution or at
|
|
|
|
L<https://www.openssl.org/source/license.html>.
|
|
|
|
|
|
|
|
=cut
|