What to Check Before You Contact Support: A Five-Minute Triage
When a Windows Authenticode code-signing build fails, you can isolate and resolve the underlying issue in five minutes by systematically checking your Windows service state, interactive session, USB token connectivity, and local log output.
1. Verify the Windows Service and Session State
OneSigner relies on a hybrid execution model. The background engine runs as OneSignerService under LocalSystem, but hardware token access requires a valid interactive Windows session on the physical machine. If the host machine rebooted and no user logged in, token signing fails.
- Open PowerShell as an administrator on your signing host and verify the service status:
Get-Service OneSignerService - Ensure the service status is
Running. If it has stopped, restart it using the service control utility:net stop OneSignerService net start OneSignerService - Check that a physical user session is active on the console. If your machine runs unattended, confirm that Windows auto-logon is correctly configured on the General tab of the configuration GUI, keeping in mind that the application stores this password in plain text within the Winlogon registry key.
2. Inspect the Local Signing Logs
When the REST API returns an error or your CLI build agent fails, the root cause is written directly to the local machine logs. Avoid guessing and inspect the raw execution records.
- Navigate to the default installation directory:
C:\OneSigner\app\logs\. - Open the active tab-separated log file corresponding to today's date, named
signing-YYYY-MM-DD.log. - Review the Windows Event Log by opening Event Viewer and checking the Application log for entries originating from OneSigner.
- For deeper command-line diagnostics during a CLI execution, set the environment variable before running your command:
$env:ONESIGNER_CLI_LOG="info" signtool.exe ...
3. Test USB Token and Certificate Visibility
Hardware tokens such as YubiKey (PIV), SafeNet eToken, or ePass2003 can drop off the USB bus, or their underlying PKCS#11 drivers may fail to enumerate the container after a driver update or hardware port swap.
- Open the OneSigner configuration GUI on the physical machine to verify that your certificate thumbprint is still detected under your codesign signing profile.
- Check your signing profile configuration to ensure the saved PIN matches the token. Remember that a rejected PIN is not retried within the same job, but every new job attempts to use the saved PIN. If you changed the PIN on the token itself without updating it in the OneSigner profile, stale saved credentials can quickly lock your token over several failed jobs.
- Ensure your certificate has not expired. Note that OneSigner does not perform automatic certificate renewals; expired certificates must be replaced manually through your issuing CA.
4. Validate Client Tool and Endpoint Connectivity
If your CI/CD pipeline fails while communicating with the Azure Key Vault–compatible endpoint, verify that network paths and parameters match expected configurations.
- Confirm that the OneSigner service is listening on port 9440 (the default port) on the local network interface.
- Check that your client build tool—whether AzureSignTool or OneSignTool—passes the correct arguments for the proxy endpoint:
OneSignTool.exe sign -kvu https://onesign.yourdomain.local:9440 -kva-kvc -f file.exe - Verify that your Bearer token (tenant token or admin token) used in REST API headers (
POST /api/codesign) has not expired or been revoked.
Next Steps
If your triage confirms that the service is running, the hardware token is detected, and logs show an unresolving hardware or license fault, gather your signing-YYYY-MM-DD.log file and contact sales@onesign.sg with your license details for further assistance.