Skip to content

.NET relies on deprecated OpenSSL 3 functions #122778

Closed as duplicate
Closed as duplicate

Description

@dorssel

Description

I've built a stripped-down and hardened version of OpenSSL 3.5.4 (latest LTS). When configuring OpenSSL with no-deprecated, .NET won't use it because it insists on importing the deprecated d2i_RSAPublicKey function.

Reproduction Steps

On Linux:
Clone OpenSSL 3.5.4
config no-deprecated
make
Start any .NET program that requires OpenSSL
Fail -> "no suitable OpenSSL found" (d2i_RSAPublicKey)

Expected behavior

.NET should not rely on deprecated functions. I think functions like d2i_RSAPublicKey are just for DER-(de)serialization, which could be done with managed code using AsnReader/AsnReader instead. Or maybe there are newer, non-deprecated OpenSSL functions available.

Actual behavior

.NET cannot use OpenSSL 3 when it was built with no-deprecated

Regression?

No response

Known Workarounds

No response

Configuration

.NET 10.0.1 SDK
Linux (Ubuntu 24.04)
x64
private OpenSSL build

Other information

No response

Activity

  1. added
    untriaged
    on Dec 29, 2025
  2. added
    needs-area-label
    on Dec 29, 2025
  3. vcsjones commented on Dec 29, 2025

    @vcsjones
    Member

    We're using #46526 to track transitioning the runtime to not depend on OpenSSL 1.x functions, but right now it is expected that the runtime will not build with no-deprecated.

    I believe @PranavSenthilnathan is looking at this for the .NET 11 timeframe (no guarantees though)

  4. removed
    untriaged
    on Dec 29, 2025
  5. added and removed
    needs-area-label
    on Dec 29, 2025
  6. locked and limited conversation to collaborators on Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions