Skip to content

Add support for SignTool HSM providers #9537

@Sytten

Description

@Sytten

We are moving to Google HSM for our code signing.
It is surprisingly simple to setup with SignTool: signtool sign /v /debug /fd sha256 /t http://timestamp.sectigo.com /f path/to/mycertificate.crt /csp "Google Cloud KMS Provider" /kc projects/PROJECT_ID/locations/LOCATION/keyRings/KEY_RING/cryptoKeys/KEY_NAME/cryptoKeyVersions/1 path/to/file.exe

Right now the WindowsSignToolManager doesn't support the csp and kc parameters, but I feel this is somewhat easy to add.
I think I would create a new hsmSignOptions key just to match the azureSignOptions. The other parameters should be slowly deprecated since nobody issues cert anymore without an HSM or USB key (June 1st 2023 was the last time full certs were issued without HSM or FIPS key).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions