- Newest
- Most votes
- Most comments
The error you're encountering suggests that there might be an issue with the CloudHSM Key Storage Provider (KSP) configuration or recognition on your Windows Server. To resolve this and successfully generate a Certificate Signing Request (CSR) using certreq.exe with AWS CloudHSM, consider the following steps:
-
Ensure that you've correctly installed the AWS CloudHSM client software on your Windows Server 2022 EC2 instance. This includes the CloudHSM Key Storage Provider.
-
Verify that you've specified the correct provider name in your request.inf file. The ProviderName should be set to "CloudHSM Key Storage Provider" exactly as shown below:
[NewRequest] Subject = "CN=example.com,C=US,ST=Washington,L=Seattle,O=ExampleOrg,OU=WebServer" KeyAlgorithm = RSA KeyLength = 2048 ProviderName = "CloudHSM Key Storage Provider" KeyUsage = 0xf0 MachineKeySet = True
-
Make sure you have an active CloudHSM session running. You mentioned having one in another PowerShell terminal, but ensure it's properly connected and authenticated.
-
Try running the certreq command with administrator privileges. Open a PowerShell window as an administrator and execute the command from there.
-
Double-check that all the necessary CloudHSM services are running on your Windows Server.
-
If the issue persists, you might want to try generating the CSR using an alternative method, such as using the Windows Server Internet Information Services (IIS) Manager or the certificates snap-in in the Microsoft Management Console.
If you're still encountering issues after trying these steps, you may need to review your CloudHSM setup and ensure all components are correctly installed and configured. Remember that the exact process can vary depending on your specific setup and the version of the AWS CloudHSM client you're using.
Sources
AWS CloudHSM SSL/TLS offload on Windows using IIS with KSP - AWS CloudHSM
Configure Windows Server as a certificate authority (CA) with Client SDK 5 - AWS CloudHSM
How do I install KSP on the ec2 instance?
Relevant content
- asked 2 years ago
- asked a month ago
- asked a year ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated a year ago
Afer installing KSP I am getting a slight different error: certreq.exe -new request.inf request.csr Certificate Request Processor: Provider type not defined. 0x80090017 (-2146893801 NTE_PROV_TYPE_NOT_DEF)