Code signing certificate install guide
This guide covers a code-signing certificate on a hardware UKey (USB token): installing the driver, initializing and downloading the certificate, signing files, and verifying signatures.
1. Install the UKey driver
Install the SafeNet Authentication Client driver (ask us for the matching 32-bit / 64-bit package):
- Run the driver and click Next.
- Choose the language (English or Chinese), click Next.
- Accept the license agreement, click Next.
- Choose the install path (default recommended), click Next.
- Choose Typical, click Next.
- Click Install, then Finish when done.
2. Initialize the UKey and download the certificate
- Insert the USB key and download DigiCert Hardware Certificate Installer.exe from the link in your email.
- Run it, click Next, accept the license, click Next.
- Enter the certificate download passcode, click Next. If it cannot reach the DigiCert site, append
64.78.193.234 www.digicert.comto your hosts file (C:\Windows\System32\drivers\etc\hosts) or switch networks; ignore if there is no such error. - Check Re-initialize my token and permanently delete any existing certificates and keys, click Next.
- Key Type RSA, Key Size 4096, click Next.
- Set a Token Name and Token Password, click Next.
- Keep Use factory default Administrator password checked, click Finish. Do not unplug the UKey during download.
- Click Close when finished; open SafeNet Authentication Client and refresh to see the certificate.
Keep the UKey and its password safe to avoid losing or damaging the certificate.
3. Sign files with DigiCert Utility
Download DigiCert Utility (https://www.digicert.com/StaticFiles/DigiCertUtil.exe):
- Run DigiCertUtil.exe, click Code Signing, choose your certificate, click Sign Files. If the certificate is not listed, re-plug the UKey so the PC detects it.
- In the Code Signing window click Add Files and select the files to sign.
- Enter the timestamp URL, ensure Add a timestamp to the signature is checked, click Sign (timestamping needs internet).
- A timestamp keeps signatures valid after the certificate expires.
- When you see All the files have been successfully signed, click OK.
4. Verify the signature
- In DigiCert Utility's Code Signing screen click Check Signature and pick the signed file.
- A green check with The file is signed and the signature was verified means it is correctly signed; The signature was time stamped by DigiCert Inc on 'Date and Time' means the timestamp was added.