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

Mister PKI

SSL Certificates * SSL Tools * Certificate Decoder

  • Buy SSL Certificates
  • Blog
  • OpenSSL
  • Keytool
  • SSL Tools
  • Donate

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

Training Courses

Top online courses in IT & Software

Cyber Security Training

Udemy - The Complete Internet Security Privacy Course icon

Buy SSL Certificates

The SSL Store

Comodo Store

Sectigo Store

RapidSSL

Recent Posts

  • netsh http add sslcert
  • netsh http show sslcert
  • netsh http delete sslcert
  • How to Install an SSL Certificate on Tomcat
  • openssl s_client commands and examples

Footer

  • Twitter
  • YouTube

Pages

  • About Mister PKI
  • Blog
  • Compare and Buy Affordable PKI Certificates
  • Contact Us
  • Full Disclosure
  • Privacy Policy
  • SSL Tools – Certificate Decoder and Certificate Checker

Copyright © 2022