Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Signing code with certificate in Azure Key Vault Managed HSM

I am trying to sign code with a certificate from Azure Key Vault Managed HSM. This is an EV certificate, so I cannot just use a normal Azure Key Vault as in the helpful walk-through here does.

I keep getting the error:

"Failed to retrieve certificate codesign from Azure Key Vault. Please verify the name of the certificate and the permissions to the certificate. Error message: Not Found"

It is not a requirement that I use azuresigntool - are other tools available?

I think I have checked all the permissions, but I cannot see the "Access policies" for an HSM key vault. Instead, there is an RBAC setting - here, I have granted my application the Managed HSM Crypto User role for all keys.

But still no luck.

like image 705
Niels Harremoes Avatar asked Oct 25 '25 05:10

Niels Harremoes


1 Answers

It was my own fault: I had added keys to the key vault, not certificates.

like image 145
Niels Harremoes Avatar answered Oct 26 '25 19:10

Niels Harremoes



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!