how to register multiple cloudHSM windows clients with cloudHSM

0

installed cloudHSM windows clients and was able to create CSR on it. CSR was sent to digicert to sign. After received CRT from digicert, file can be signed using signtool.exe on this windows client successfully. we are trying to bring one more windows client to sign. we installed cloudHSM windows clients on it, and ran below commands without issues, .\configure.exe -a <HSM IP>

.\tools\set_cloudhsm_credentials.exe --username <CU user> --password <password>

Get-Service -Name AWSCloudHSMClient | Format-Table DisplayName,Status -AutoSize

but failed at "certreq -accept <CA cert>" with error "Certificate Request Processor: Cannot find object or property. 0x80092004 (-2146885628 CRYPT_E_NOT_FOUND)"

I can understand it failed because CSR was not generated on this machine. but how to register it with cloudHSM CU to use the same private key to sign exe files?

please help. thanks!

  • @rePost-User-7672835 Let me know if you have any issues with this, or if it helps you then please accept my answer after you've tried it out - it would be much appreciated! Good luck :)

已提問 1 年前檢視次數 329 次
1 個回答
1

https://docs.aws.amazon.com/cloudhsm/latest/userguide/cmu-install-and-configure-client-win.html just for other folks to see.

Certreq was unable to find the related request object. This is typically within the Certificate Enrollment Request (CER) node certificate store.

Run certutil -deump file.req to dump the request file and inspect the contents. Should be a public key. Then run certutil -dump cert.cer to dump the issued certificate. Compare the keys.

Do this for each object within the Certificate Enrollment Request(s) (CER) (focused on Local Machine context) to find request object with matching public key. I admit I had to go back and do some searching on this myself, but this should be what you are looking for. Best of luck!

profile picture
D G
已回答 1 年前
  • What do you do when you found the matching Certificate Enrollment Request? Should it be enough to export it and then import it into the machine where the "certreq -accept" command failed? We have a similar situation and tried this but we still have the "Cannot find object or property" error

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南