When generating a CSR on Windows Server using the AWS CloudHSM service, I obtain the following error:
certreq.exe -new my-request.inf my-request.csr
Certificate Request Processor: Provider type not defined. 0x80090017 (-2146893801 NTE_PROV_TYPE_NOT_DEF)
What's wrong ?
Credential issue
This error message generally indicates that your credentials to connect to the CloudHSM cluster as a CU user are not correct:
Additionally, if encountering the following error, this generally means that you haven't set the CloudHSM credentials (see below)
Tl;dr: set up credentials to use the CloudHSM cluster with Windows SDK tools:
You can now use certreq or signtool.
Source: