OpenSSL error - unknown certificate type when using SLH-DSA-* certificates

Open
#119,573 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
csharp

Research direction

Start at the SslStream handshake path and reproduce the failure with an SLH-DSA certificate, then compare the supported TLS signature schemes with the linked OpenSSL common-provider capability list. Done means determining whether runtime changes can enable the handshake or whether support must wait for OpenSSL to advertise these schemes.

Written by the indexing model from the issue text.

Description

area-System.Net.Security tracking-external-issue

Attempts to use SLH-DSA-* certificates will cause SslStream handshake attempts to fail with

      ---- System.Security.Authentication.AuthenticationException : Authentication failed, see inner exception.
      -------- Interop+OpenSsl+SslException : Using SSL certificate failed with OpenSSL error - unknown certificate type.

The reason seems to be because OpenSSL common provider does not advertise for the SLH-DSA-* signature schemes in its TLS-SIGALG capability

https://github.com/openssl/openssl/blob/0c679f556669e32499a827a081afe3bcf973c9ad/providers/common/capabilities.c#L315-L320

Since the Relevant RFC is still in draft state, this is not unexpected, but until OpenSSL introduces these, it is not going to be possible to use these certs with SslStream.

Dominant language
C#
Stars
18.3k
Forks
5.6k
PR merge metrics
PR metrics pending

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dotnet/runtime

All issues in dotnet/runtime

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.