OPENSSL-S_TIME(1ossl)
π NAME π
openssl-s_time β the SSL/TLS performance timing program, aka the little tool that tells you how fast your secure connection is actually going β¨ it lives in the OpenSSL manual fam, and honestly? underrated.
π SYNOPSIS π
openssl s_time [-help] [-connect host:port] [-www page] [-cert filename]
[-key filename] [-reuse] [-new] [-verify depth] [-time seconds] [-ssl3]
[-tls1] [-tls1_1] [-tls1_2] [-tls1_3] [-bugs] [-cipher cipherlist]
[-ciphersuites val] [-nameopt option] [-cafile file] [-CAfile file]
[-no-CAfile] [-CApath dir] [-no-CApath] [-CAstore uri] [-no-CAstore]
[-provider name] [-provider-path path] [-provparam [name:]key=value]
[-propquery propq]
π¦ DESCRIPTION π¦
okay so picture this: s_time is a generic SSL/TLS client that connects to a remote host over SSL/TLS π it can request a page from the server, and it literally includes the time it took to transfer the payload data in its timing measurements.
It measures the number of connections it manages within a given timeframe, the amount of data transferred (if any), and then it calculates the average time spent for one connection. the way it just does math on your behalfβ¦ main character energy fr fr π
β¨ OPTIONS β¨
-helpβ prints out a usage message, the classic "hi here's how to use me" moment π«Ά-connect host:portβ specifies the host and optional port to connect to. ngl, if the host string is an IPv6 address it must be enclosed in[and]β no cap, that part is not optional π-www pageβ specifies the page to GET from the server. a value of/gets the index.html page. if you don't specify this one, then the command will only perform the handshake to establish SSL connections but won't transfer any payload data β so it's handshake-only mode, iconic but shy π-cert certnameβ the certificate to use, if one is requested by the server. default is not to use a certificate at all. the file is in PEM format, bestie π-key keyfileβ the private key to use. if it's not specified then the certificate file will be used instead. also PEM format, keep up π-verify depthβ the verify depth to use. this specifies the maximum length of the server certificate chain and turns on server certificate verification. heads up: 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. like it literally cannot fail this way, it's just built different π-newβ performs the timing test using a new session ID for each connection. if neither-newnor-reuseare specified, they are both on by default and executed in sequence β¨-reuseβ performs the timing test using the same session ID; this can be used as a test that session caching is working. same deal: if neither-newnor-reuseare specified, they are both on by default and executed in sequence πΈ-bugsβ there are several known bugs in SSL and TLS implementations. adding this option enables various workarounds. it's giving "the server is buggy, not me" energy π-cipher cipherlistβ lets you modify the TLSv1.2 and below cipher list sent by the client. this list will be combined with any TLSv1.3 ciphersuites that have been configured. although the server determines which cipher suite is used, it should take the first supported cipher in the list sent by the client. seeopenssl-ciphers(1)for more info π-ciphersuites valβ lets you modify the TLSv1.3 ciphersuites sent by the client. this list will be combined with any TLSv1.2 and below ciphersuites that have been configured. and again, although the server determines which cipher suite is used, it should take the first supported cipher in the list sent by the client. seeopenssl-ciphers(1)for more info. the format for this list is a simple colon (":") separated list of TLSv1.3 ciphersuite names β colon-separated, so retro, so chic π-time lengthβ specifies how long (in seconds) this command should establish connections and optionally transfer payload data from a server. how many connections it can establish is determined by server and client performance and the link speed β±οΈ-nameopt optionβ specifies how the subject or issuer names are displayed. seeopenssl-namedisplay-options(1)for details ποΈ-CAfile file,-no-CAfile,-CApath dir,-no-CApath,-CAstore uri,-no-CAstoreβ see "Trusted Certificate Options" inopenssl-verification-options(1)for details π«Ά-provider name,-provider-path path,-provparam [name:]key=value,-propquery propqβ see "Provider Options" inopenssl(1),provider(7), andproperty(7)π-cafile fileβ this is an obsolete synonym for-CAfileπ΅ (deprecated era, we still respect her)-ssl3,-tls1,-tls1_1,-tls1_2,-tls1_3β see "TLS Version Options" inopenssl(1)π¦
πΈ NOTES πΈ
this command can be used to measure the performance of an SSL connection. to connect to an SSL HTTP server and get the default page, the command
openssl s_time -connect servername:443 -www / -CApath yourdir -CAfile yourfile.pem -cipher commoncipher [-ssl3]
would typically be used (https uses port 443, iykyk). commoncipher is a cipher to which both client and server can agree β see the openssl-ciphers(1) command for details π
if the handshake fails then there are several possible causes. if it's nothing obvious like no client certificate, then the -bugs and -ssl3 options can be tried in case it's a buggy server. especially you should play with these options before submitting a bug report to an OpenSSL mailing list β please, bestie, do the experimenting first π
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 requests a certificate. by using openssl-s_client(1) the CA list can be viewed and checked. however, some servers only request client authentication after a specific URL is requested. to obtain the list in this case it is necessary to use the -prexit option of openssl-s_client(1) and send an HTTP request for an appropriate page π
if a certificate is specified on the command line using the -cert option it will not be used unless the server specifically requests a client certificate. therefore, merely including a client certificate on the command line is no guarantee that the certificate works β harsh but true π₯²
seriously: throwing a cert at the command line is not the same as that cert working. do not let it gaslight you.
π BUGS π
- because this program does not have all the options of the
openssl-s_client(1)program to turn protocols on and off, you may not be able to measure the performance of all protocols with all servers. it's not a skill issue, it's a scope issue π - the
-verifyoption should really exit if the server verification fails. (should. really. but doesn't. noted.) π
β HISTORY β
the -cafile option was deprecated in OpenSSL 3.0 π«‘
π SEE ALSO π
openssl(1), openssl-s_client(1), openssl-s_server(1), openssl-ciphers(1), ossl_store-file(7)
π COPYRIGHT π
Copyright 2004-2021 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.
okay that's the whole page bestie, go time some connections π
this lil rewrite is running on OpenSSL version 3.5.6, dated 2026-04-07 β mwah, see you in the group chat πβ¨π¦
π¦ where this page comes from
- freebsd 15.1: base 15.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms