Skip to content

[Feature]: wolfSSL doesn't support multiple certificates in the same server SSL_CTX #10766

Description

@gkodinov

Contact Details

joro@mariadb.org

Version

v5.9.1-stable

Description

MariaDB/server#5178 (comment)

We are trying to implement multiple simultaneously active certificate/key pairs with different key types support for the server that are selected by the client negotiation outcome.

In the process of prototyping that we've detected that there's no WolfSSL support for the scenario, whereas it works well with OpenSSL.

Please find details about the project and what is missing to make it run against wolfSSL in the link above. Copying it here for completeness:

  • SSL_CTX_set_current_cert() — does not exist in WolfSSL. Needed for cert type enumeration (Ssl_server_cert_types). Guarded with #ifndef HAVE_WOLFSSL, falls back to reporting only the primary cert type.

  • Multiple SSL_CTX_use_certificate_chain_file() calls — WolfSSL does have this function, but does not support multiple key types per SSL_CTX (one slot per context, not per key type like OpenSSL 1.0.2+). Loading a second cert replaces the first rather than adding alongside it.

Reproduction steps

Fetch the above PR and try to remove the #ifdef WOLFSSL added.

Relevant log output

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions