---
title: "openssl 4.0.0 Breaking Changes on RubyGems | Since.dev"
description: "What each openssl release removed, renamed or changed: 22 breaking changes in 2 versions on RubyGems, each with its source."
canonical_url: https://since.dev/packages/gem/openssl
last_updated: 2026-12-04
---

# openssl breaking changes

openssl 4.0.0 (December 15, 2025) is its newest release with breaking changes, 18 of them. The first: Drops support for LibreSSL 3.1 through 3.8 in openssl 4.0.0. Every breaking API change we have recorded in openssl on RubyGems: 22 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.0.2`. [Source repository](https://github.com/ruby/openssl)

Its 3.0.0 release drops Ruby 2.3 and 2.5. [Ruby end of life dates](https://since.dev/calendar/ruby.md).

- From [3.0.0](#v-3-0-0) to [4.0.0](#v-4-0-0): 18 breaking changes in 1 version.

## openssl 4.0.0 breaking changes

openssl 4.0.0, released December 15, 2025: 18 breaking changes.

- **Removed**  

The release requires LibreSSL 3.9 or later, so builds against older LibreSSL versions are no longer supported. [github.com](https://github.com/ruby/openssl/releases/tag/v4.0.0)
- **Removed**  

The release requires OpenSSL 1.1.1 or later, so OpenSSL 1.1.0 is no longer supported. [github.com](https://github.com/ruby/openssl/releases/tag/v4.0.0)
- **Removed**  

The release requires OpenSSL 1.1.0 or later, so OpenSSL 1.0.2 is no longer supported. [github.com](https://github.com/ruby/openssl/releases/tag/v4.0.0)
- **Removed** `Cipher.encrypt`  

The Cipher#encrypt(password, iv) form is removed, so callers using it must change their code. [github.com](https://github.com/ruby/openssl/releases/tag/v4.0.0)
- **Removed** `PKey.EC.Point.mul`  

The deprecated PKey::EC::Point#mul(ary, ary \[, bn\]) form is removed; use the supported form instead. [github.com](https://github.com/ruby/openssl/releases/tag/v4.0.0)
- **Renamed** `SSLContext.ecdh_curves=`  

Use SSLContext#groups= in place of SSLContext#ecdh_curves=. [github.com](https://github.com/ruby/openssl/releases/tag/v4.0.0)
- **Behavior changed**  

UTCTime year parsing is aligned with RFC 5280, so some previously accepted times may now be interpreted or rejected differently. [github.com](https://github.com/ruby/openssl/releases/tag/v4.0.0)
- **Behavior changed**  

Previously separate PKey error classes are now unified into PKeyError, so rescue clauses for the old classes may need updating. [github.com](https://github.com/ruby/openssl/releases/tag/v4.0.0)
- **Behavior changed** `OpenSSL.PKCS7.initialize`  

Errors in PKCS7#initialize are raised as OpenSSL::PKCS7::PKCS7Error, so rescue clauses for other errors may no longer catch them. [github.com](https://github.com/ruby/openssl/releases/tag/v4.0.0)
- **Behavior changed** `PKey.DH.new`  

Calling DH.new with no arguments now fails on OpenSSL 3.0; pass the required arguments. [github.com](https://github.com/ruby/openssl/releases/tag/v4.0.0)
- **Behavior changed** `PKey.DH.params`  

Missing parameters are reported as nil instead of the previous value, so code that expects a value must handle nil. [github.com](https://github.com/ruby/openssl/releases/tag/v4.0.0)
- **Behavior changed** `PKey.DSA.new`  

Calling DSA.new with no arguments now fails on OpenSSL 3.0; pass the required arguments. [github.com](https://github.com/ruby/openssl/releases/tag/v4.0.0)
- **Behavior changed** `PKey.DSA.params`  

Missing parameters are reported as nil instead of the previous value, so code that expects a value must handle nil. [github.com](https://github.com/ruby/openssl/releases/tag/v4.0.0)
- **Behavior changed** `PKey.EC.new`  

Calling EC.new with no arguments now fails on OpenSSL 3.0; pass the required arguments. [github.com](https://github.com/ruby/openssl/releases/tag/v4.0.0)
- **Behavior changed** `PKey.RSA.new`  

Calling RSA.new with no arguments now fails on OpenSSL 3.0; pass the required arguments. [github.com](https://github.com/ruby/openssl/releases/tag/v4.0.0)
- **Behavior changed** `PKey.RSA.params`  

Missing parameters are reported as nil instead of the previous value, so code that expects a value must handle nil. [github.com](https://github.com/ruby/openssl/releases/tag/v4.0.0)
- **Behavior changed** `SSLContext.max_version=`  

Setting the maximum TLS version is now handled separately, so code relying on the old combined behavior may change. [github.com](https://github.com/ruby/openssl/releases/tag/v4.0.0)
- **Behavior changed** `SSLContext.min_version=`  

Setting the minimum and maximum TLS versions is now handled separately, so code relying on the old combined behavior may change. [github.com](https://github.com/ruby/openssl/releases/tag/v4.0.0)

## openssl 3.0.0 breaking changes

openssl 3.0.0, released December 24, 2021: 4 breaking changes.

- **Removed**  

OpenSSL 1.0.1 and Ruby 2.3 through 2.5 are no longer supported; upgrade Ruby or OpenSSL before using this version. [github.com](https://github.com/ruby/openssl/blob/v3.0.0/History.md)
- **Removed** `OpenSSL.SSL.SSLContext.tmp_ecdh_callback`  

tmp_ecdh_callback was deprecated since v2.0.0 and has been removed because it is incompatible with modern OpenSSL versions. Stop calling it. [github.com](https://github.com/ruby/openssl/blob/v3.0.0/History.md)
- **Behavior changed** `OpenSSL.SSL.SSLSocket.read`  

read now raises OpenSSL::SSL::SSLError if called before a TLS connection is established, instead of reading unencrypted data from the socket. Establish the connection first. [github.com](https://github.com/ruby/openssl/blob/v3.0.0/History.md)
- **Behavior changed** `OpenSSL.SSL.SSLSocket.write`  

write now raises OpenSSL::SSL::SSLError if called before a TLS connection is established, instead of writing unencrypted data to the socket. Establish the connection first. [github.com](https://github.com/ruby/openssl/blob/v3.0.0/History.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
