Requests for certificates using ML-DSA-based keys fail with the error message "The parameter is incorrect. 0x80070057 (WIN32: 87 ERROR_INVALID_PARAMETER)"

Assume the following scenario:

  • You try to request certificates using the ML-DSA algorithm.
  • The request fails with the following error message:
The parameter is incorrect. 0x80070057 (WIN32: 87 ERROR_INVALID_PARAMETER)

Depending on how you submitted the request, you'll find the event with ID 13 of the source Microsoft-Windows-CertificateServicesClient-CertEnroll in the client's event log.

Event 13, CertificateServicesClient-CertEnroll: "The parameter is incorrect. 0x80070057 (WIN32: 87 ERROR_INVALID_PARAMETER)"

If you try to submit a request through the Microsoft Management Console (MMC), you'll see the same error message there as well.

If we look closely, we can see that no metadata is displayed. The "Properties" button has no label and cannot be clicked.

Dialog "Certificate Enrollment": template "PQC Labor Computer" shows "The parameter is incorrect." and no validity period

Cause

Apparently, Microsoft made a slip with July 2026 (is it because of the use of AI? ).

If we look at the configuration dialog for the underlying certificate template, we notice that the minimum key size of 1,048,576 is strikingly large - even for ML-DSA. It also does not match the Microsoft documentation .

Template properties, "Cryptography" tab: algorithm name ML-DSA:44, minimum key size 1048576 (marked in red)

When we edit the certificate template using ADSI Edit (adsiedit.msc) (CN=Public Key Services,CN=Services,CN=Configuration...), and edit msPKI-Minimal-Key-Size.

ADSI Edit: context menu "Properties" of the template CN=PQCLaborComputer under "Certificate Templates"

ADSI Edit, "Integer Attribute Editor": attribute msPKI-Minimal-Key-Size set to 10496

AlgorithmKey length
ML-DSA:4410,496 bits (1,312 bytes)
ML-DSA:6515,616 bits (1,952 bytes)
ML-DSA:8720,736 bits (2,592 bytes)

Dialog "Certificate Enrollment": template "PQC Labor Computer" selected, validity period 450 days, "Enroll" button enabled

External sources