Skip to content

SignTool: Selecting a certificate from the store does not work #59

@ylangisc

Description

@ylangisc

Selecting a certificate from the store does not work while specifying it from the local disk with the /f parameter works fine.

NOK

signtool sign /d MD /fd sha256 /tr http://timestamp.acs.microsoft.com /td SHA256 /a /sm /csp "Google Cloud KMS Provider" /kc projects/myProjectId/locations/europe/keyRings/code-signing/cryptoKeys/mykey/cryptoKeyVersions/1 /sha1 2daafb27143ab86e26afcdec3da086b8b0dedf2d /v binary.exe

The following certificate was selected:
    Issued to: MyCompany
    Issued by: Sectigo Public Code Signing CA R36
    Expires:   Fri Nov 06 00:59:59 2026
    SHA1 hash: 2DAAFB27143AB86E26AFCDEC3DA086B8B0DEDF2D

SignTool Error: An unexpected internal error has occurred.
Error information: "Could not associate private key with certificate." (-2147024891/0x80070005)

OK

signtool sign /d MD /fd sha256 /tr http://timestamp.acs.microsoft.com /td SHA256 /a /f mycert.crt /csp "Google Cloud KMS Provider" /kc projects/myProjectId/locations/europe/keyRings/code-signing/cryptoKeys/mykey/cryptoKeyVersions/1 binary.exe

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions