Skip to content

wolfssl ca with an ML-DSA CA key exits 0 and writes the request under a CERTIFICATE label #307

Backlog

Description

@NormB

wolfCLU v0.2.0-stable and wolfSSL v5.9.4-stable from the release tarballs, Debian 13 (trixie) arm64.
wolfSSL configure: --enable-wolfclu --enable-dilithium --enable-mlkem --enable-tls-mlkem-standalone --enable-ticket-nonce-malloc --enable-experimental --enable-dual-alg-certs --enable-tls13 --enable-certgen --enable-certreq --enable-certext. wolfssl -v: "You are using version 0.2.0 of the wolfssl Command Line
Utility. Linked to wolfSSL version 5.9.4". OpenSSL 3.5.10 used only for comparison.

Steps

  1. ML-DSA-87 CA key (made with OpenSSL 3.5: openssl genpkey -algorithm ML-DSA-87 -out ca.key).
  2. wolfssl req -new -x509 -key ca.key -subj O=Example/CN=ca -days 30 -out ca.pem (exit 0).
  3. A certificate request leaf.csr with an ML-DSA-87 key.
  4. wolfssl ca -in leaf.csr -keyfile ca.key -cert ca.pem -days 30 -out leaf.pem

Observed: prints keytype needs added to wolfCLU_CertSignSetCA, exits 0, and leaf.pem begins
-----BEGIN CERTIFICATE-----. openssl x509 -in leaf.pem cannot read it. The DER inside is byte-identical to the
DER of leaf.csr: the request, carrying the requester's own signature, under a CERTIFICATE label.

Expected: either an ML-DSA-signed certificate, or a non-zero exit and no output file.

Where: src/x509/clu_x509_sign.c:191-213 (wolfCLU_CertSignSetCA) keeps the CA key only for RSAk and
ECDSAk; for other key types it logs the message above and the command still returns success.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions