General purpose TLS and crypto library
open sourceApache-2.0self-hostablefree
OpenSSL is the open source toolkit for the TLS, DTLS and QUIC protocols, built on a general-purpose cryptography library. It has three parts: libssl, which implements every TLS version up to 1.3, DTLS up to 1.3 and QUIC version 1 (client and server); libcrypto, a general-purpose cryptography library usable on its own, with post-quantum ML-KEM, ML-DSA and SLH-DSA since 3.5 and a FIPS-validated provider; and the openssl command-line tool for creating keys, CSRs, X.509 certificates and CRLs, testing TLS connections, hashing, encrypting and handling S/MIME. Releases come every April and October; an LTS release every two years is supported for at least five years (3.5 until April 2030), and OpenSSL 4.0 (April 2026) removed SSLv3, engines and other long-deprecated APIs and added Encrypted Client Hello. Since 3.0 it's licensed under Apache-2.0, and the project is run jointly by the nonprofit OpenSSL Foundation and the OpenSSL Corporation, which sells support, extended LTS and FIPS services.
Ways to install
Package managers
Problems it solves
- add TLS encryption to a C or C++ network server or client with a mature open source library
- generate a private key and a certificate signing request from the command line to send to a certificate authority
- create a self-signed certificate for a test server in one command
- debug why a TLS handshake with a remote server fails and see which certificate chain and protocol it offers
- inspect a certificate file to check its expiry date, subject alternative names and issuer
- convert certificates and keys between PEM, DER and PKCS#12 (PFX) formats
- run a small internal certificate authority that signs certificates and publishes CRLs with standard tools
- our product needs FIPS 140 validated cryptography for US government customers
- start offering post-quantum key exchange (hybrid ML-KEM) on our TLS servers
- implement QUIC or HTTP/3 transport in C without writing the protocol ourselves
- a cryptography library for hashing, symmetric encryption and signatures that works on Linux, Windows, macOS and Android
- we ship a product on OpenSSL 1.1.1 or 3.0, which are out of support, and need security fixes or a migration path
- sign or encrypt S/MIME email messages from a script
- plug a hardware security module or custom algorithm implementation into our TLS stack through providers
- turn on Encrypted Client Hello so the server name isn't visible to the network
- need a crypto library licensed under Apache-2.0 that we can ship in commercial software
Features
- libssl: TLS up to 1.3 (RFC 8446), DTLS up to 1.3 (RFC 9147) and QUIC version 1 (RFC 9000)
- QUIC server support and third-party QUIC stack support, including 0-RTT (3.5)
- post-quantum ML-KEM, ML-DSA and SLH-DSA, with X25519MLKEM768 in the default TLS key shares (3.5)
- Encrypted Client Hello (RFC 9849) in 4.0
- DTLS 1.3 and GREASE (RFC 8701) in 4.1
- libcrypto general-purpose cryptography library, usable without TLS
- FIPS-validated cryptographic module (FIPS provider), with deferred self-tests in 4.0
- provider architecture for plugging in algorithm implementations
- openssl command-line tool: keys, CSRs, X.509 certificates, CRLs, digests, encryption, TLS and QUIC client tests, S/MIME
- openssl ca for running a simple certificate authority
View 4 more
- CMP (certificate management protocol) client support
- release every April and October; LTS every two years with at least five years of support
- builds for Unix-like systems, Windows, Android, DJGPP and other platforms from source
- commercial support, extended LTS for 3.0, 1.1.1 and 1.0.2, and FIPS rebranding from OpenSSL Corporation
Limitations
- Doesn't publish prebuilt binaries: the project releases source code only, and operating system vendors or third parties provide builds3
- Doesn't support engines (the ENGINE API) since OpenSSL 4.0: they were removed, along with SSLv34
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
| Takes plugins | plan not known |
Alternatives
The same job
These do what OpenSSL does.
