• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Mister PKI

SSL Certificates * SSL Tools * Certificate Decoder

  • PKI Training
  • OpenSSL
  • Keytool
  • PKI Tools
    • Apereo CAS
    • SAML
    • OpenID Connect
  • Get expert help

openssl s_time – How to measure SSL performance

March 3, 2022 by Mister PKI Leave a Comment

This article will demonstrate how to measure SSL and TLS performance using the openssl s_time utility from OpenSSL, the cryptography and SSL/TLS Toolkit. This utility allows you to connect to a remote host with SSL. Note that the connection must be SSL and does not support a plaintext or any other type of connection. The utility works as follows:

  • Request a page from a server using SSL
  • Responds with the time to transfer the payload data by:
    • Measuring the number of connections within a given timeframe
    • Measuring the amount of data transferred
    • Calculating the average time spent on each connection

For other SSL connection debugging read our article on openssl s_client.

openssl s_time examples

The simplest way to measure SSL performance:

openssl s_time -connect example.com:443

The output is in the screenshot below.

openssl s_time

The following options are supported for more advanced performance timing:

OptionDescription
-helpShow all of the available options
-connectFollowed by host:port to connect to
-wwwThe webpage to fetch. If not defined, so data will be transferred
-certThe client certificate to use if required for authentication to the website. If required, the server will prompt you.
-keyThe key to use if required for authentication to the website. Note that the key may be included in the -cert file
-newUse a new session ID for each connection
-reuseUse the same session ID
-cipherSpecify the ciphers to be used for TLSv1.2 and below
-ciphersuitesSpecify the ciphers to be used for TLSv1.3
-timeHow long to run the command for, in seconds
-ssl3, -tls1, -tls1_1, -tls1_2, -tls1_3Specify with SSL or TLS version to time with

Conclusion

This article has demonstrated how to time SSL connections using the openssl s_time utility. Leave us a comment with any questions or more in depth examples you would like to see.

openssl,  SSL Certificates

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Popular Posts

PKCS12

openssl s_client

Keytool

Keytool list

ECDSA vs RSA

OpenSSL

PKCS7

Certificate Decoder

PKI for DevOps Engineers – Free Training Series

PKI for DevOps Training Hub

Lesson 1 – How TLS and PKI Work

Lesson 2 – Understanding X.509 Certificates

Lesson 3 – Certificate Chains Explained

Lesson 4 – Debug TLS with OpenSSL

Lesson 5 – Verify Certificate Chains

Lesson 6 – Creating CSRs with OpenSSL

Lesson 7 – Working with PKCS12 Certificates

Lesson 8 – Java Keystores and keytool

Lesson 9 – Certificate Expiration Monitoring

Lesson 10 – Automating Certificate Renewal

Lesson 11 – Common TLS Errors

Lesson 12 – PKI Architecture for DevOps

Recent Posts

  • Apache mod_auth_cas: Protect Web Applications with Apereo CAS and Docker
  • Apache mod_auth_mellon: Configure SAML SSO & Docker
  • Configure OpenID Connect (OIDC) in Apereo CAS 7.3 and 8
  • Certificate Ownership Is an Operating Model Problem, Not a Tooling Problem
  • OpenSSL dgst: Create Checksums and Verify Digital Signatures

Footer

  • Twitter
  • YouTube
Mister PKI

Practical security engineering for the systems that establish trust.

Learn OpenSSL Keytool Free training
Work together PKI consulting CAS consulting Sponsored contributions
Site About Support Mister PKI Cookie policy Search
© 2026 Mister PKI Secure systems. Clear guidance.