Skip to content

x509 parser fails to parse mldsa and ed25519 certificates. #11469

Description

@feynhat

Version

5.9.2

Description

I have configured with --enable-mldsa --enable-ed25519 --enable-wolfclu --enable-debug.

When I parse the certificates certs/mldsa/mldsa44-cert.pem or certs/ed25519/ca-ed25519.pem, the tail of the debug message gives:

wolfSSL Entering wolfSSL_BIO_write
        Subject: C=US, ST=Montana, L=Bozeman, O=wolfSSL, CN=ML-DSA-44
wolfSSL Entering wolfSSL_BIO_write
        Subject Public Key Info:
Unknown key type
unable to print certificate out
wolfSSL Entering wolfSSL_ERR_get_error_line_data
No Error found in queue
wolfSSL Entering wolfSSL_BIO_free
wolfSSL Entering wolfSSL_X509_free
wolfSSL Entering ExternalFreeX509
wolfSSL Entering wolfSSL_EVP_PKEY_free
Error returned: -1.
wolfSSL Entering wolfSSL_ERR_get_error_line_data
No Error found in queue
wolfSSL Entering wolfSSL_Cleanup
wolfSSL Entering wolfCrypt_Cleanup

It seems that the parser is having problem with the Subject Public Key Info.

Both of these certificates parse alright with openssl.

Activity

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

Metadata

Metadata

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