OpenSSL
termKept 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
- OpenSSL Library, home page (read 2026-10-27): a robust, commercial-grade, full-featured toolkit for general-purpose cryptography and secure communication; licensed under the Apache License from version 3.0
- OpenSSL Library, License (read 2026-10-27): the Apache License v2 for 3.0 and later; the dual OpenSSL and SSLeay licence for releases before 3.0
- OpenSSL Library, Release Strategy (read 2026-10-27): a release every April and October; every two years an LTS release supported for at least five years; 3.5 supported until 2030-04-08 (LTS); 3.0, 1.1.1 and 1.0.2 no longer supported
- OpenSSL 3.5 manual, openssl-s_client(1) (read 2026-10-27): a generic SSL/TLS client, 'a very useful diagnostic tool for SSL servers'; unless -verify_return_error is given, verification continues after errors and the connection never fails because of a certificate verify failure
- OpenSSL Library, Release Strategy, first issued 23 December 2014, last modified 7 May 2026 (read 2026-11-11): MAJOR.MINOR.PATCH from 3.0.0 and letter releases for 1.1.1 and before; 4.1 supported until 2027-11-23, 4.0 until 2027-05-14, 3.5 until 2030-04-08 (LTS); 3.0, 1.1.1 and 1.0.2 out of support with paid extended support available; an LTS every April in odd-numbered years, supported for at least five years, so two fully supported LTS releases at any time; non-LTS releases after 3.5 fully supported for 13 months; major releases every two years from 5.0 in October 2027
- OpenSSL Library, home page and License (read 2026-11-11): developed under the OpenSSL Mission with support from the OpenSSL Foundation and OpenSSL Corporation; Apache License v2 from 3.0; the dual OpenSSL and SSLeay licence for 1.1.1, 1.1.0, 1.0.2 and earlier, including their letter updates
- OpenSSL, CHANGES.md in the openssl/openssl repository (read 2026-11-11): 0.9.1c released 23 December 1998 after the unreleased 0.9.1b, whose entries are by Eric A. Young; 4.0.0 released 14 April 2026, removing SSLv3 (deprecated since 2015, off by default since 1.1.0 in 2016), the SSLv2 Client Hello and engines, compiling out the RFC 8422 deprecated curves, and adding Encrypted Client Hello (RFC 9849) and s_client -expected-rpks
- OpenSSL Library, OpenSSL 3.0 Series Release Notes (read 2026-11-11): 3.0.0 on 7 September 2021; licence changed to Apache License v2.0; legacy ciphers and digests moved to the legacy provider; low-level RSA, DSA, DH and EC_KEY APIs and the ENGINE API deprecated; SHA-1-signed certificates no longer allowed at the default security level 1
- OpenSSL Library, OpenSSL 3.5 Series Release Notes (read 2026-11-11): 3.5.0 on 8 April 2025; default TLS keyshares X25519MLKEM768 and X25519 and hybrid PQC groups preferred; ML-KEM, ML-DSA and SLH-DSA; server-side QUIC (RFC 9000); req, cms and smime default cipher changed from des-ede3-cbc to aes-256-cbc; 3.5.9 on 29 September 2026, most severe CVE High
- OpenSSL Library, Vulnerabilities in 1.0.1 (read 2026-11-11): CVE-2014-0160, published 7 April 2014, found by Neel Mehta, affecting 1.0.1 before 1.0.1g; a missing bounds check in the TLS heartbeat extension reveals up to 64kB of memory to a connected client or server (Heartbleed); versions before 1.0.1 not affected
- OpenSSL 3.5 manual, openssl-s_client(1) (read 2026-11-11): -connect host:port, defaulting to the local host on port 4433; -servername sets SNI and since 1.1.1 defaults to the -connect name when it looks like a DNS name; -showcerts shows the certificates as sent, not a verified chain; -starttls with smtp, pop3, imap, ftp, xmpp, ldap, postgres, mysql and others; -verify_return_error returns verification errors and typically aborts the handshake; a test tool that accepts any chain
- OpenSSL 3.5 manual, openssl-x509(1) (read 2026-11-11): certificate display and signing command; -noout -text, -dates, -subject, -issuer, -checkend
- LibreSSL project home page (read 2026-11-11): a version of the TLS/crypto stack forked from OpenSSL in 2014 to modernize the codebase and improve security, developed inside the OpenBSD source tree
- BoringSSL source repository README (read 2026-11-11): a fork of OpenSSL designed to meet Google's needs, not intended for general use, with no guarantees of API or ABI stability