This article will assist you to troubleshoot common warning and error messages associated with KeyLocker and SignTool. Included are errors which are displayed when running a healthcheck as well as during file signing.
Healthcheck Errors:
Your client certificate path or password is incorrect. You will not be able to complete specific actions (such as sign, generate keypairs and approve releases) until these credentials are corrected.
This error can occur if the path set in your Environment Variables is incorrect.
Open your Environment Variables and ensure that the following variable is correct:
Another reason for this error is the use of an incorrect client certificate password.
A third possible cause is that the client certificate was generated and encrypted using AES and a SHA-256 signature hash. This is not supported by older versions of Windows.
Status: Connection failed
This error can be caused by using an invalid API key.
SignTool: Mapped: No
This status means that DigiCert KeyLocker Tools is unable to locate the path to signtool.exe.
SignTool Errors:
SignTool Error: File not found
This error can be caused by any of the following:
Ensure that the name of your file as well as its containing folder are spelt correctly.
If either the file name or the containing folder contains at least one space, enclose the full path to the file in quotation marks as follows: “c:\cs cert path\cert 1234567890.crt”
SignTool Error: No private key is available
This message appears if the incorrect keypair alias was specified in the signing command.
This message can also mean that your credentials have not been saved.
A third possibility is that an incorrect API key may have been saved.
Signtool Error: The specified private key does not match the public key of the selected certificate.
This error can occur if the wrong code signing certificate file was specified in the signing command.
Signtool Error: An unexpected internal error has occurred.
Error information: “Error: SignerSign() failed.” (-2146893779/0x8009002d)
The above error means that you have not assigned a signer to your code signing certificate.
The error can also occur if the wrong password for the client certificate was used.
SignTool Error: No file digest algorithm specified. Please specify the digest algorithm with the /fd flag. Using /fd SHA256 is recommended and more secure than SHA1. Calling signtool with /fd sha1 is equivalent to the previous behavior. In order to select the hash algorithm used in the signing certificate's signature, use the /fd certHash option.
This error appears if the /fd flag used in the signing command is missing.
This can also occur if the path to the downloaded code signing certificate file which is listed after the /f switch contains spaces. For example: /f c:\cs cert path\cert_1234567890.crt
For a detailed guide to setting KeyLocker up for use with SignTool see Configure KeyLocker for Microsoft SignTool.