"SignTool Error: No private key is available" with Thales SafeNet Token

When you're trying to digitally sign a file using the signtool.exe with a Thales SafeNet token you may see the following error



This can occur when the password being passed to signtool is incorrect and if the password for the token has expired.

Open the SafeNet Authentication Client, click the advanced settings "cog" icon.

Right click the token and select "Log On to Token..." and enter your password.

If the password has expired you will be prompted for a new password.




The password can be passed in the command line for signtool.exe

"D:\build\signtool.exe" sign /f "D:\PathTo\YourCert.cer" /tr http://timestamp.digicert.com /td sha256 /fd sha256 /csp "eToken Base Cryptographic Provider" /k "[{{YourPassword}}]=containername" %1



While you're here why not check out our IT documentation tool?








Comments

Popular posts from this blog

Windows Server 2016, 2019, 2022, Windows 10 and Windows 11: Date and time "Some settings are managed by your organization".

TFTPD32 or TFTPD64 reports Bind error 10013 An attempt was made to access a socket in a way forbidden by its access permissions.

Windows Server 2019 desktop icons such as My Computer, Windows cannot access the specified device, path, or file.