OpenSSL

term

cryptographysecurity

Kept in this browser · My desk

The open-source toolkit for general-purpose cryptography and secure communication, made of a library and an openssl command whose subcommands, such as s_client and x509, test TLS (Transport Layer Security) servers and read certificates.

Its project calls it a robust, commercial-grade, full-featured toolkit. Releases from 3.0 are under the Apache License 2.0; earlier ones carried the dual OpenSSL and SSLeay licence. A release comes every April and October, and every two years one of them is a long-term-support (LTS) release, supported for at least five years: 3.5 is supported until 8 April 2030, while 3.0, 1.1.1 and 1.0.2 are out of support. Its manual calls s_client a very useful diagnostic tool for SSL (Secure Sockets Layer) servers, and its output is easy to over-read: unless -verify_return_error is given, a failed certificate check does not stop the connection.

OpenSSL is two libraries and a command. libcrypto holds the algorithms, libssl holds the Transport Layer Security (TLS), Datagram TLS (DTLS) and QUIC protocol code (the QUIC server side since 3.5), and the openssl program wraps both in subcommands such as s_client, x509, req and verify. The project, developed under the OpenSSL Mission with support from the OpenSSL Foundation and the OpenSSL Corporation, descends from SSLeay: the oldest entries in its change log, for the unreleased 0.9.1b, are credited to Eric A. Young, and the first OpenSSL release, 0.9.1c, is dated 23 December 1998. That ancestry survives in the licence. Every release before 3.0, including the letter updates of 1.1.1 and 1.0.2, carries the dual OpenSSL and SSLeay licence; 3.0 and later use the Apache License 2.0.

Version numbers changed meaning at 3.0. Up to 1.1.1, letter releases such as 1.0.2a carried only bug and security fixes; from 3.0.0 the scheme is MAJOR.MINOR.PATCH, with API and ABI (application programming and binary interface) compatibility kept within a major version. The release strategy, last revised on 7 May 2026, sets the calendar: a release every April and October, a long-term-support (LTS) release every April of an odd-numbered year, supported for at least five years, so that two LTS releases are always fully supported, non-LTS releases after 3.5 fully supported for 13 months, and from 5.0, in October 2027, a major release every two years, six months after each LTS. As of November 2026, 4.1 is supported until 23 November 2027, 4.0 until 14 May 2027 and 3.5, the LTS, until 8 April 2030; 3.0, 1.1.1 and 1.0.2 are out of public support, with paid extended support for security fixes, and 1.1.0 and older get nothing at all.

Three releases mark the modern library. 3.0.0, on 7 September 2021, introduced providers: old ciphers and digests such as Rivest Cipher 4 (RC4), the Data Encryption Standard (DES), CAST5, Blowfish, Message Digest 4 (MD4) and RIPEMD-160 moved to a legacy provider that is not loaded by default, the low-level interfaces for RSA (Rivest-Shamir-Adleman), DSA (Digital Signature Algorithm), DH (Diffie-Hellman) and EC_KEY were deprecated along with the ENGINE interface, and certificates signed with SHA-1 (Secure Hash Algorithm 1) stopped being trusted at the default security level. 3.5.0, on 8 April 2025, became the current LTS and the post-quantum release: it added the NIST (National Institute of Standards and Technology) post-quantum algorithms ML-KEM (Module-Lattice-Based Key-Encapsulation Mechanism), ML-DSA (Module-Lattice-Based Digital Signature Algorithm) and SLH-DSA (Stateless Hash-Based Digital Signature Algorithm), made the default TLS key shares X25519MLKEM768 and X25519 with hybrid groups preferred, added server-side QUIC, and changed the default cipher of the req, cms and smime commands from triple DES to AES-256-CBC, the Advanced Encryption Standard with a 256-bit key in cipher block chaining mode. 4.0.0, on 14 April 2026, cleared out history: SSLv3 (Secure Sockets Layer version 3), deprecated since 2015 and off by default since 1.1.0 in 2016, was removed, along with acceptance of the SSLv2 Client Hello and the whole engine mechanism, replaced by providers; the curves deprecated by RFC (Request for Comments) 8422 are compiled out by default; and Encrypted Client Hello (RFC 9849) arrived.

The name most engineers associate with OpenSSL is Heartbleed. CVE-2014-0160 (a Common Vulnerabilities and Exposures entry), published on 7 April 2014 and found by Neel Mehta, was a missing bounds check in the TLS heartbeat extension that let a connected client or server read up to 64 kB of the other side's memory per request, private keys and session data included when they happened to be there. It affected 1.0.1 up to, but not including, 1.0.1g, and nothing older. The aftermath produced two forks still in use. LibreSSL was forked from OpenSSL in 2014 inside OpenBSD to modernize the code and improve security; BoringSSL is Google's fork, built for Google's own needs, which its maintainers say is not intended for general use and offers no API or ABI stability. Patch cadence is not a historical curiosity: 3.5.9, released on 29 September 2026, fixed more than a dozen CVEs, the most severe rated High.

For engineers the command is the daily tool. openssl s_client -connect www.example.com:443 -servername www.example.com opens a TLS connection and prints the handshake; -connect without a port goes to 4433, and -servername sets SNI (Server Name Indication), which since 1.1.1 defaults to the -connect name when that looks like a DNS (Domain Name System) name. -showcerts prints the certificates exactly as the server sent them, which is not a verified chain and is the fastest way to spot a missing intermediate. -starttls smtp, imap, pop3, ftp, ldap, postgres, mysql and others make it speak the protocol's own upgrade command first. openssl x509 -noout -text, -dates, -subject, -issuer and -checkend read and test a certificate file.

The classic misreading is s_client's verification. The manual says it is a test tool designed to continue the handshake after any certificate verification error and so accepts any chain, trusted or not; unless -verify_return_error is given, the connection never fails because of a server certificate verify failure. A completed handshake therefore proves nothing about trust: the line to read is the verify return code, and 0 (ok) is the only good answer. The manual adds that a non-test application behaving this way would be open to a man-in-the-middle attack, which is exactly the bug when scripts copy s_client habits into production code.

Numbers worth remembering: 23 December 1998 for 0.9.1c, 7 September 2021 for 3.0, 8 April 2025 for 3.5 and 8 April 2030 for its end of support, 14 April 2026 for 4.0, port 4433 as s_client's default, and 64 kB per Heartbleed request.

Also known as: openssl s_client, s_client, openssl library

Sources

← Back to O Back to the glossary