Which .NET features and APIs depend on RSA and elliptic-curve keys

Most .NET TLS, certificate and signing paths depend on RSA and elliptic-curve keys through the operating system, and the post-quantum APIs added in .NET 10 are separate calls that do not switch those paths over.

On this page

Which .NET features depend on RSA and elliptic-curve keys today

.NET's TLS through SslStream, certificate validation, and RSA, ECDSA and ECDH key operations all depend on RSA, Diffie-Hellman and elliptic-curve keys, because .NET performs these cryptographic operations through the operating system libraries. The sources listed on this page, as of their dates, describe this arrangement for .NET Core and .NET 5 and later, and the on-Windows classes such as RSA.Create are backed by CNG, while the Linux classes such as RSAOpenSsl, ECDsaOpenSsl and ECDiffieHellmanOpenSsl wrap OpenSSL. An assessor should therefore treat the OS and .NET version as the unit of analysis: the same application can reach different algorithms on Windows, Linux and macOS, and the OpenSSL-backed classes stopped working on macOS starting in .NET 10. Confirm the platform and runtime for each workload before recording an answer.

NET 10 added ML-KEM (FIPS 203), ML-DSA (FIPS 204) and SLH-DSA (FIPS 205) as separate APIs through the MLKem, MLDsa and SlhDsa types. The sources listed on this page publish no setting that moves existing classical code paths, such as SslStream, X509Certificate2 or the RSA and ECDSA classes, onto these algorithms. The .NET team's November 18, 2025 post says SslStream needs TLS 1.3 plus OS and peer support to work with ML-DSA or SLH-DSA certificates, and that ML-KEM subject keys in a certificate cannot be used with TLS. Whether the post-quantum types are available at all depends on the OS: they require OpenSSL 3.5.0 or newer on Linux, or Windows CNG with PQC support, and the cross-platform table marks them unsupported on Apple, Android and Browser.

For the inventory, record each use of the classical algorithms by the API it calls, the platform it runs on, and the .NET version it targets. Then confirm with Microsoft or your own tests whether the TLS negotiation in your environment offers any hybrid key exchange, since the sources listed here do not mention hybrid key exchange for SslStream. The Windows documentation lists hybrid groups as supported but disabled by default in Schannel, and the Windows FAQ does not say whether SslStream uses Schannel. Treat that question as open until it is answered in writing.

Public-key dependencies by .NET feature, version and platform

This table lists each .NET feature that relies on RSA, DSA, ECDSA or ECDH keys, the .NET versions or operating systems it applies to, the public-key algorithms involved and the source date. Use it to scope a cryptographic inventory, then confirm the exact behavior on your own build, since the operating system libraries decide which algorithms and curves are actually available.

FeatureApplies toPublic-key algorithmsSource date
RSA signing and key exchange.NET Core and .NET 5 and later on Windows, Linux and macOS; OS libraries set size limitsRSA with PKCS1 and PSS signatures; OAEP and PKCS1 encryption, using SHA-1 or SHA-22026-11-25 (Cross-platform cryptography)
ECDSA and ECDHWindows (CNG), Linux (OpenSSL); P-256, P-384 and P-521 on all listed platformsECDSA signatures; ECDiffieHellman key agreement with HASH, HMAC or Tls11Prf derivation2026-11-25 (Cross-platform cryptography)
DSAUnsupported above 1024-bit keys on macOS and iOS, tvOS and MacCatalyst; FIPS 186-3 unsupported on macOS and Windows CAPIDSA signatures2026-11-25 (Cross-platform cryptography)
TLS via SslStream.NET Core and .NET 5 and later; protocol and cipher choice left to the OS by defaultRSA or ECDSA server certificates; ECDHE key exchange (classical groups only)2026-11-25 (TLS/SSL best practices)
TLS on .NET Framework (Schannel).NET Framework 4.6.2 and later on Windows; Windows 11 reaches TLS 1.3RSA or ECDSA certificates; Schannel-negotiated ECDHE groups2026-10-20 (TLS Supported Groups, Windows 11 24H2)
Certificate chain validationSslStream on all platforms; AIA downloads and revocation checks may contact external serversRSA and ECDSA certificate signatures in the chain2026-11-25 (TLS/SSL best practices)
PKCS#12 export.NET 10 and later; Pkcs12TripleDesSha1 or Pbes2Aes256Sha256 optionsPrivate key wrapping with RSA or ECC keys inside the container2026-11-25 (What's new in .NET 10 libraries)
ML-KEM, ML-DSA and SLH-DSA types.NET 10 and later; ML-KEM and ML-DSA on Windows 11 Insiders and Linux OpenSSL 3.5.0+; SLH-DSA on Linux onlyPost-quantum types MLKem, MLDsa, SlhDsa; these are new APIs, not replacements for classical calls2026-11-25 (Cross-platform cryptography)

Which .NET components touch public-key keys

Almost every secure connection, login and signature in .NET relies on RSA, ECDSA or ECDH keys, because the runtime hands cryptography to the operating system. The cards below list the main components that carry those keys, the key types each one uses and where the documentation sits.

SslStream as TLS server and client

SslStream is the TLS implementation most .NET network code uses. As a server it always needs an X509Certificate2 with a private key, supplied through ServerCertificate, ServerCertificateSelectionCallback or ServerCertificateContext. Those certificates are usually RSA or ECDSA keys, and the key exchange depends on ECDH or RSA depending on the negotiated cipher suite. Clients supply certificates only for mutual TLS. Inventory each SslStream call site, its certificate source and the TLS version the OS negotiates.

TLS best practices

X509Certificate2 and chain validation

X509Certificate2 holds the certificate and its private key, and it is where RSA or ECDSA public keys enter the application. Chain validation for SslStream can be customized through CertificateChainPolicy or RemoteCertificateValidationCallback. Servers validating client certificates may contact external servers for AIA downloads and revocation checks. Confirm the RevocationMode, TrustMode and AIA behavior for each validation path, since AIA downloads are disabled by default starting in .NET 11 only when no custom CertificateChainPolicy is set.

TLS best practices

RSA, ECDsa and ECDiffieHellman classes

RSA, ECDsa and ECDiffieHellman are the public-key classes used for signatures and key exchange in .NET code. RSA.Create returns a CNG-backed object on Windows, which Microsoft describes as an implementation detail that may change. The Windows-only RSACng, ECDsaCng and ECDiffieHellmanCng classes and the Linux-only OpenSsl variants are separate entry points. Check which variant each call site uses, because the OpenSSL variants no longer work on macOS starting in .NET 10.

Cross-platform cryptography

CNG and OpenSSL provider variants

The provider chosen for an algorithm decides which OS library performs the operation, and therefore which key sizes and curves are available. RSA key generation is limited by the OS, and ECDSA and ECDH support NIST P-256, P-384 and P-521 on all listed platforms, with other curves varying by OS. The DSA classes have their own limits, including no key creation above 1024 bits on macOS and iOS. Record the provider and the curve or key size for each key your code generates or imports.

Cross-platform cryptography

PKCS#12 export path

PKCS#12 files carry certificates with their private keys, so the export path determines how those keys are protected at rest. In .NET 10, X509Certificate.ExportPkcs12 lets callers choose Pkcs12TripleDesSha1, which is widely compatible, or Pbes2Aes256Sha256, which uses AES and SHA-2-256. Confirm which algorithm each export job uses, and whether the importing system accepts the chosen option.

What's new in .NET 10

Post-quantum APIs and their limits

.NET 10 adds MLKem, MLDsa and SlhDsa types, but they are opt-in calls in code and do not change existing SslStream, X509 or RSA paths. Support depends on OpenSSL 3.5.0 or newer on Linux, or Windows CNG with PQC support, and the MLDsa, SlhDsa and CompositeMLDsa types are marked experimental. The TLS best-practices page does not mention post-quantum or hybrid key exchange. Treat existing public-key code as classical until a call site is changed.

What's new in .NET 10

How the answer changes by .NET version and platform

Modern .NET (Core and later) performs cryptography through the operating system libraries, so the .NET version sets which APIs exist while the OS sets which algorithms and curves work. .NET 10 is the current LTS release, released November 11, 2025, with support ending November 14, 2028. .NET 11 is an STS release, released November 10, 2026, with support ending November 14, 2028.

  • PQC types arrived in .NET 10: MLKem, MLDsa and SlhDsa are available, with IsSupported to test the platform. MLDsa and SlhDsa are marked Experimental under SYSLIB5006 in .NET 10.
  • .NET 11 library additions: X25519DiffieHellman is a classical class added in .NET 11, and Hpke (SYSLIB5009) and CompositeMLKem (SYSLIB5006) are also listed as added, with CompositeMLKem experimental.
  • Server certificate validation changed: starting in .NET 11, SslStream disables AIA downloads by default when a server validates client certificates and no custom CertificateChainPolicy is set.
  • ExportPkcs12 choice in .NET 10: you can select Pkcs12TripleDesSha1 (broadly compatible) or Pbes2Aes256Sha256 (AES and SHA-2-256).
  • TLS defaults remain OS-driven: leave EnabledSslProtocols at its default None so the OS chooses the TLS version.

Check the exact runtime version in each deployment, because the PQC types and switches above do not exist in older releases.

What to check next in your .NET estate

This sequence turns the RSA and elliptic-curve dependencies in your .NET code into a dated inventory, showing which runtime and OS each application uses and whether post-quantum APIs are available there. It ends with a tested answer for each runtime, not a single claim about the whole estate.

  1. Inventory SslStream, X509 and RSA or ECDsa call sites

    Search your source and build outputs for SslStream, X509Certificate2, the RSA, ECDsa and ECDiffieHellman types, and their Create methods, and record each call site with the project, the algorithm and the purpose, such as TLS server certificate, client certificate, signature or key exchange. Include certificate loading from stores and files, since those paths often hide the key type. Note any use of CipherSuitesPolicy or CertificateChainPolicy. The step is closed when every project has a list, reviewed by the team that owns it, and each entry is tagged as TLS, signing or key handling.

  2. Confirm the .NET version and OS for each runtime

    For each deployed application, record the target framework, the exact runtime version reported in production, and the operating system and build it runs on. Windows and Linux behave differently: on Windows, RSA.Create uses CNG, and on Linux it uses OpenSSL, so the same code can reach different primitives. Check whether any service still runs .NET Framework, where TLS is handled by Schannel and version negotiation depends on the OS. Mark each release against the .NET support policy, which lists the support end dates for each release, and flag any that are out of support. The step is closed when each application has one verified runtime and OS row in the inventory.

  3. Check for OpenSSL 3.5.0 or newer or Windows PQC support

    On Linux, confirm the OpenSSL version that .NET loads, since the cross-platform table lists ML-KEM and ML-DSA only with OpenSSL 3.5.0 or newer, and SLH-DSA also with that version. On Windows, check the build number against the Microsoft PQC announcement, which names Windows Server 2025, Windows 11 24H2 and 25H2, and update KB5068861 (OS build 26100.7171), and separately note that the cross-platform table lists Windows 11 Insiders for some algorithms. Record for each host whether the required library or OS update is present. The step is closed when every runtime row has a yes or no answer for PQC library support, with the version and build that produced it.

  4. Test the PQC IsSupported property on each host

    On each runtime, run a short console or test program that reads IsSupported for MLKem, MLDsa and SlhDsa and records the result with the .NET version, OS and OpenSSL or Windows build. Treat the result as the platform's answer for that host. Do not rely on the installed .NET SDK or the presence of a NuGet package, because the types exist even where the OS does not provide the algorithms. The step is closed when the results file for each host is saved to a durable location and each runtime has been checked on the host that will run it.

  5. Confirm what the code path actually calls

    Using the inventory from the first step, confirm that each classical call site uses an API that the OS delegates to, and confirm that the code calls the PQC types only if you have written it to do so. The .NET documentation describes post-quantum algorithms as APIs that a developer calls in code, and does not describe a setting that makes existing SslStream or X509 code use them. Mark every TLS path as classical unless the code or the TLS group configuration on the host shows otherwise. The step is closed when each row states whether PQC is called in code, and the owning team has signed off the result.

  6. Record open questions for the vendor and the platform

    List what the sources do not settle for your estate, including whether SslStream uses the Windows PQC hybrid groups, whether .NET on Windows picks up the Schannel groups that are disabled by default, and what the project has said about its plans for post-quantum TLS. Ask Microsoft these questions through its support channels, and confirm the answers in writing before you rely on them. The step is closed when each open question has an owner, a channel and a date for the reply.

How a .NET TLS connection and its certificates depend on public keys

The diagram follows an SslStream handshake from the client through the server. The server presents an X509Certificate2 with a private key, which the OS library uses for the RSA or ECDSA signature, and the client may present its own certificate for mutual TLS. The client then runs CertificateChainPolicy validation, which can trigger AIA downloads and revocation checks, and the OS library performs the key exchange. Check the negotiated protocol, since PQC support in SslStream needs TLS 1.3 plus OS and peer support.

Public-key operations in a .NET SslStream handshake, with the OS library doing key exchange.

What Microsoft has not published for .NET

Microsoft documents post-quantum algorithms in .NET as APIs that code calls directly, and it documents the TLS and cryptography settings that existing code uses. The pages checked here do not connect the two, so the gaps below are the points a reviewer should confirm with Microsoft before recording a .NET estate as ready. Each card gives the question to ask.

No switch for existing SslStream code

The .NET documentation describes post-quantum cryptography as APIs a developer calls in code, such as MLKem, MLDsa and SlhDsa, and tests with IsSupported. The TLS best-practices page describes EnabledSslProtocols and CipherSuitesPolicy, and neither mentions a post-quantum option. An application that uses SslStream today does not appear to gain post-quantum key exchange by changing a setting, so every such connection needs code review. Ask Microsoft: Is there a documented setting, AppContext switch or environment variable that enables post-quantum or hybrid key exchange for existing SslStream code without changing application source, and for which .NET versions and operating systems?

TLS/SSL best practices

No hybrid key exchange in TLS guidance

The TLS/SSL best-practices page, last updated 2026-11-25, does not mention post-quantum or hybrid key exchange. The .NET team's November 18, 2025 post does not mention hybrid key exchange or X25519MLKEM768 either. On Windows, Schannel lists hybrid groups such as x25519_mlkem768 as supported for TLS 1.3 but disabled by default, and the Windows FAQ does not say whether SslStream uses Schannel. Ask Microsoft: Does SslStream negotiate hybrid groups such as X25519MLKEM768 on each platform, is the answer the same as Schannel's default-off state, and where is that documented?

Post-quantum cryptography in .NET

No CNSA 2.0 statement for .NET

Microsoft's company-level roadmap post of August 20, 2025 says Microsoft aims to meet the CNSA 2.0 deadlines in CNSSP-15. That statement is not specific to .NET, and the .NET documentation checked here publishes no CNSA 2.0 position for the runtime or its libraries. A federal or defense customer cannot treat the company-level aim as a .NET product claim. Ask Microsoft: Which .NET releases and which algorithm parameter sets, in which configurations, does Microsoft state meet the CNSA 2.0 requirements, and is there a dated commitment for .NET specifically?

Microsoft quantum-safe roadmap

No FIPS 140-3 validation for .NET

The .NET FIPS page, last updated 2025-05-21, is written around FIPS 140-2. It says .NET Core passes cryptographic calls to the operating system modules, does not enforce FIPS-approved algorithms or key sizes, and leaves FIPS configuration to the administrator and algorithm choice to the developer. Validation belongs to the cryptographic module, not to the runtime that calls it, so the page does not establish that .NET itself is validated. Ask Microsoft: Is .NET itself covered by a FIPS 140-3 validation certificate, and if not, which validated operating system or CNG modules does Microsoft name as the cryptographic boundary, and for which versions?

FIPS compliance for .NET Core

Post-quantum algorithms depend on OS support

Microsoft says post-quantum algorithms in .NET work only where the operating system provides them, which means OpenSSL 3.5 or newer on Linux or Windows CNG with PQC support. Support differs by algorithm: SLH-DSA is listed as supported only on Linux with OpenSSL 3.5.0 or later and not on Windows, and ML-KEM and ML-DSA are unsupported on Apple, Android and Browser. Ask Microsoft: For each target platform and .NET version, which of ML-KEM, ML-DSA and SLH-DSA are available through the platform's cryptographic provider, and which are blocked by the OS or by the Experimental diagnostic?

Cross-platform cryptography

No roadmap commitment for SLH-DSA on Windows

The .NET team's November 18, 2025 post says COSE with SLH-DSA will probably appear in .NET 11, but it says that is not a promise. The same post says Windows had not added SLH-DSA support at that date, and the cross-platform table lists SlhDsaCng as not supported. Customers planning Windows estates therefore cannot assume SLH-DSA parity with Linux. Ask Microsoft: Is there a committed date for SLH-DSA in Windows CNG and in SlhDsaCng, and will Windows SLH-DSA support be delivered through the operating system or through .NET?

Post-quantum cryptography in .NET

What can break or silently stay classical

A .NET application does not move to post-quantum key exchange because the runtime was upgraded. Existing SslStream connections keep classical key exchange unless code changes, and the TLS version is chosen by the operating system because EnabledSslProtocols is left at None by default. Teams should confirm, per application, which SslStream call sites set protocols or cipher policy explicitly, and which rely on OS defaults that may change with the OS build. Microsoft's Windows documentation says hybrid groups such as x25519_mlkem768 are supported for TLS 1.3 on Windows 11 24H2 and later but disabled by default, and the Windows FAQ says hybrid TLS is off by default and can be enabled with Enable-TlsEccCurve. The sources listed on this page do not say whether SslStream uses Schannel group settings, so confirm that with Microsoft before assuming a Windows setting reaches .NET code.

Certificates are a second place where the result can differ from what teams expect. The .NET team's November 18, 2025 post says SslStream needs TLS 1.3 plus OS and peer support to work with ML-DSA or SLH-DSA certificates, and that ML-KEM subject keys in a certificate cannot be used with TLS. A post-quantum certificate therefore fails to help a connection if the operating system, the TLS version negotiated, or the peer lacks support, and the failure may appear only in some environments. Test each server and mutual TLS client certificate chain against the exact OS and peer pairs in production, and record which combinations were checked.

On Windows, CipherSuitesPolicy is not supported, and instantiating it throws NotSupportedException, so code that restricts cipher suites will fail at startup there rather than fall back silently. Microsoft recommends letting the OS decide cipher suites in any case. For .NET 10 on macOS, client-side TLS 1.3 is opt-in through the System.Net.Security.UseNetworkFramework switch, and cipher suites are then controlled by macOS. Inventory each application for explicit protocol, cipher and certificate-validation settings, because those are the settings that override the OS defaults and need a test on every platform the application runs on.

Questions about .NET and RSA or elliptic-curve dependencies

Is .NET quantum safe?

No product or configuration can be called quantum safe on the basis of the sources listed on this page, and the .NET documentation does not make that claim. .NET's RSA, ECDSA and ECDiffieHellman classes are classical public-key algorithms, and Microsoft's cryptography model lists RSA and ECDsa for signatures and ECDiffieHellman and RSA for key exchange as the algorithms an inventory should flag. Post-quantum algorithms are available as APIs starting in .NET 10 (ML-KEM, ML-DSA and SLH-DSA), but they work only where the operating system provides them, and the sources do not describe a setting that switches existing SslStream or X509 code paths to them. Confirm the status of each code path with Microsoft and in your own tests.

Which .NET version should we run for post-quantum algorithms?

The sources show that post-quantum APIs are first available in .NET 10, which Microsoft lists as LTS with end of support on November 14, 2028. .NET 8 and .NET 9 were out of support as of November 10, 2026, according to Microsoft's support policy, so they should not be the target for new work. .NET 11 is listed as STS with end of support on November 14, 2028, and adds further libraries, though its experimental types are marked with diagnostic codes. Check the support policy before choosing, because the status of each release can change.

Does upgrading .NET to support post-quantum algorithms cost extra?

The sources do not state a price or licence cost for a .NET upgrade, so no figure can be given here. The costs that drive the answer are the engineering effort to move off out-of-support releases, testing of TLS and certificate paths, and the operating system work that post-quantum algorithms depend on: Windows 11 Insider builds, Windows update KB5068861 for Windows Server 2025 and Windows 11 24H2 and 25H2, or OpenSSL 3.5.0 or later on Linux. Ask any quote to separate the .NET runtime upgrade, the OS upgrade and the code changes, and to state which of those recur.

What breaks when we move .NET code to post-quantum algorithms?

The sources name several areas to test rather than a list of confirmed breakages. Algorithm availability depends on the platform: ML-KEM and ML-DSA are listed as supported on Linux with OpenSSL 3.5.0 or later and on Windows 11 Insider builds, but not on Apple, Android or Browser, and SLH-DSA is supported on Linux only. Dropping SslStream onto ML-DSA or SLH-DSA certificates needs TLS 1.3 and peer support, and ML-KEM subject keys cannot be used with TLS. Removing OpenSSL support on macOS in .NET 10 also affects RSAOpenSsl and ECDsaOpenSsl classes. Test each platform you run.

What should we ask Microsoft about .NET post-quantum support?

Ask Microsoft to confirm, for each .NET version and platform you run, which post-quantum algorithms are supported and whether any setting enables them for existing SslStream, X509 and classical code paths. Ask whether a CNSA 2.0 statement or FIPS 140-3 validation exists for .NET itself, since the documentation pages reviewed here publish neither. Ask for the status of SLH-DSA on Windows, of COSE with SLH-DSA in a named release, and of hybrid key exchange such as X25519MLKEM768 in SslStream, because the .NET TLS documentation does not mention it. Get the answers in writing with dates.

Can our own team inventory .NET RSA and elliptic-curve dependencies, or do we need outside help?

Your team can start the inventory in-house. Search the codebase and configuration for RSA, ECDsa, ECDiffieHellman, DSA, SslStream, X509Certificate2 and CertificateChainPolicy use, and note the operating system each service runs on, since RSACng, RSAOpenSsl and the platform-specific classes behave differently. Check the .NET version, because .NET Framework relies on Schannel and TLS behaviour differs. Outside help is useful when the estate is large, when results must be recorded as audit evidence, or when tests across several operating systems and .NET versions need to be scoped. DeployOpen can plan that engagement as a fixed-scope piece of work with written deliverables.

How does .NET handle RSA key sizes and curves?

Key sizes and curves are set by the operating system, not by .NET itself. RSA key generation is subject to the size limits of the OS libraries, and .NET does not expose raw, unpadded RSA operations. ECDSA and ECDH support NIST P-256, P-384 and P-521 on all listed platforms, and other named curves vary by OS. On Windows, RSA.Create returns a CNG-backed object that Microsoft describes as an implementation detail subject to change, so do not rely on its type. Check your required key sizes and curves against the table for each OS you run.

How DeployOpen helps with .NET cryptography inventory and PQC readiness

DeployOpen works through .NET's public-key dependencies in four steps: scope the written inventory, build and test the affected configuration on the platforms you run, hand over documented evidence, and support upgrades under a retainer. Each step is agreed in writing before work starts, and the findings are tied to the specific .NET version, OS and component they apply to.

How we scope

  • Agree in writing which .NET versions, operating systems and applications are in the inventory.
  • List each RSA, Diffie-Hellman and elliptic-curve use across SslStream, X509 certificates and signing code.
  • Record which OS libraries supply each algorithm, since .NET relies on them for key sizes and curves.

How we build

  • Test each RSA padding mode and ECDH key derivation option on the platforms you actually run.
  • Check whether post-quantum types such as MLKem and MLDsa report IsSupported on your OS and OpenSSL level.
  • Confirm how TLS version and cipher choices resolve on Windows Schannel and Linux OpenSSL, rather than assuming them.

How we hand over

  • Deliver a dated inventory mapping each public-key dependency to its .NET release and operating system.
  • Document which post-quantum options are available, and which are only available through code, not configuration.
  • Flag open questions for the vendor, such as whether SslStream uses post-quantum key exchange on Windows.

How we support

  • Retest the inventory after OS updates or .NET servicing releases, since platform support changes over time.
  • Keep the evidence current for security reviews and compliance assessments, which DeployOpen prepares but does not certify.
  • Ongoing support and continuous testing are available as a retainer, priced from the agreed written scope.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.