Name
s_client
Synopsis
The s_client
command is a basic SSL client that can
be used to connect to an SSL-enabled server. It provides
functionality not unlike the standard Telnet program, although it
does not support the telnet protocol. The command is useful primarily
as a diagnostic tool when building and setting up SSL-enabled
servers.
Options
- -connect host:port
Specify the host and port that should be used to establish a connection. Separate the host and port with a colon. The host may be an IP address or a hostname. The port may be a number or a service name. If this option is omitted, “127.0.0.1:443” is used.
- -cert filename
Specify the name of a file that contains the certificate to use for the connection. Most servers do not require a client certificate, but if the server requests one, this certificate will be used.
- -key filename
Specify the name of a file that contains the private key matching the certificate to use for the connection. If this option is not specified and a certificate is requested, the command will expect to find the private key in the same file as the certificate.
- -verify depth
Specify the maximum certificate chain depth. Use of this option enables verification of the server’s certificate and causes verification to fail if more than the specified number of certificates is in the chain. Even if verification of the server’s certificate fails, the connection will be allowed to proceed.
- -CAfile filename
Specify the name of a file containing one or more trusted ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access