Tutorial Guide for SafeNet Authentication Client for Code Signing

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading...
SafeNet Authentication Client for Code Signing

If you have landed on this guide, we would like to Congratulate you on obtaining your certificate. We will help you complete the setup process for the SafeNet Authentication Client!

It’s time to take your code signing journey to the next level. This blog will provide a step-by-step guide to help you successfully sign your code.

We’ll start by exploring the installation process for SafeNet Drivers and Client Software on Windows, ensuring that you have the necessary foundation to proceed. Once your setup is complete, we’ll dive into the intricacies of signing your code with an EV Code Signing Certificate.

But our journey continues beyond there. We understand the importance of verification and guide you through verifying your signed code to ensure its authenticity and integrity.

To add a powerful tool to your code signing arsenal, we’ll unveil the secrets of using SignTool. Discover how to sign your files efficiently and effortlessly, whether you choose the automatic or manual method.

Join us on this adventure as we demystify code signing for you to unleash the full potential of your software with every signature.

Instructions for Installing SafeNet Drivers and Client Software on Windows

You must install the SafeNet drivers and client software on your computer to enable code signer authentication and utilize your EV Code Signing Certificate token for code signing. Follow the steps below to complete the installation process:

Step 1: Download the SafeNet Authentication Client installer (SafeNetAuthenticationClient-x64.msi).

Step 2: The SafeNet Authentication Client Setup Wizard will launch. Press “Next” on the Welcome page to proceed.

Download SafeNet Authentication Client

Step 3: Choose your preferred language from the drop-down list on the Interface Language page and click “Next.”

Interface Language

Step 4: Read through the license agreement on the License Agreement page. If you accept the terms, select the “I accept the license agreement” option and select “Next.”

SafeNet License Terms

Step 5: Select the location to install the SafeNet Authentication Client on the Destination Folder page and pick “Next.”

Safenet Destination Folder

Step 6: Select the “Typical” installation type on the Setup Type page and click “Next.”

Typical SafeNet Installation

Step 7: Wait for the software to be installed. This step may take a few minutes.

SafeNet Client Installing Status

Step 8: Once the installation is complete, you will see the “SafeNet Authentication Client has been successfully installed” page. Click “Finish” to exit the SafeNet Authentication Client Setup.

InstallShield Wizard Completed

That’s it! You have now successfully installed the SafeNet Client Software on your Windows computer.

How to Sign a Code with EV Code Signing Certificate?

Before you begin the code signing process, make sure you have fulfilled the following requirements:

  • SafeNet Setup: Ensure you have completed the SafeNet setup process, including installing the necessary drivers and client software.
  • Windows Computer: Use a computer running the Windows operating system.
  • Windows Development Kit: Install the Windows Development Kit on your computer to access the required tools for code signing.

Once you have met all the requirements, you can proceed with signing your code using the following steps:

Connect the Token:

Plug your token (Smart Card) into your computer’s appropriate slot.

Open SafeNet Client:

Launch the SafeNet Client software on your Computer.

Open Command Prompt:

Access the Command Prompt on your Windows computer. You can search for “Command Prompt” in the Start menu.

Copy and Paste the Command:

Copy the following command and paste it into the Command Prompt window:

signtool sign /tr http://timestamp.certera.com /td sha256 /fd sha256 /a "Insert_path_to_the_file_you_wish_to_sign"

Replace “Insert_path_to_the_file_you_wish_to_sign” with the actual file path of the file you want to sign.

Enter Your Password:

After pasting the command, press Enter. SafeNet will prompt you to enter your password. Provide the required password for authentication.

Sign Your Application:

Once you enter your password, the code signing process will begin, and your application should get signed successfully.

Ensure you have the necessary components and enter the correct commands and password when prompted. It will allow you to sign your application with the desired certificate successfully.

Ensure Verifying the Signed Application

Before distributing your application to end users, verifying that the code has been correctly signed is crucial. Follow these steps to perform the verification:

Locate Your Application:

Open the folder storing your signed application.

Right-Click and Open Properties:

Right-click on the application file and select “Properties” from the context menu.

Access Digital Signatures:

In the Properties window, navigate to the “Digital Signatures” tab or menu. Click on it to view the digital signatures associated with the application.

Check Code Signing Certificate:

Look for your EV Code Signing Certificate in the list of digital signatures. Its presence indicates that the code has been successfully signed.

Troubleshooting

If you are still looking for the Digital Signatures menu or tab, there may have been an issue during the signing process. In such cases, you should revisit the signing process and sign the application again to ensure proper verification.

Once you have verified the presence of your Code Signing Certificate, you can distribute your application confidently, showcasing your name on it.

Our dedicated and friendly support team is readily available to assist you if you encounter any questions, concerns, doubts, or difficulties during the signing or verification process.

Feel free to contact our support team for any assistance in verification you may require.

Steps for Signing Your Files with SignTool

Once you have prepared your token and computer for code signing, you can begin signing your program using the SignTool command. There are two methods available: automatic and manual. Follow the instructions below based on your preference.

NOTE: Microsoft recommends using SHA-256 certificate/digest algorithm/timestamp for all applications and supports SHA-1 Code Signing Certificates until Jan 1, 2020. For more details, refer to the Windows Enforcement of Authenticode Code Signing and Timestamping page.

Automatic Signing (Recommended for Multiple Certificates):

If you have multiple Code Signing Certificates on your computer, manually selecting the certificate for signing is advisable. However, if you prefer automatic selection, follow these steps:

Step 1: Open a command prompt as an administrator.

Step 2: Execute one of the following commands based on the certificate type

To Sign Code with a SHA256 Certificate/Digest Algorithm/Timestamp:

signtool sign /tr http://timestamp.certera.com /td sha256 /fd sha256 /a "c:\path\to\file_to_sign.exe"

To Sign Code with a SHA1 Certificate/Digest Algorithm/Timestamp:

signtool sign /t http://timestamp.certera.com /a "c:\path\to\file_to_sign.exe"

Step 3: You will be prompted to enter your device’s password.

Step 4: Once completed, you should receive confirmation that the file was successfully signed and timestamped.

Manual Signing

To manually specify the Code Signing Certificate for signing your programs, follow these steps:

Step 1: Retrieve the subject name of the certificate:

  • Open the Start menu, type “certmgr.msc,” then press Enter.
  • In the certmgr window, expand Personal and go to Certificates to list all installed certificates for the user account.
  • The certificate’s subject name is the text listed under the Issued To field.

Step 2: Use the subject name in one of the following SignTool commands:

CertMgr

To Sign Code with a SHA256 Certificate/Digest Algorithm/Timestamp:

signtool sign /tr http://timestamp.certera.com /td sha256 /fd sha256 /n "subject name" "C:\path\to\fileToSign.exe"

To Sign Code with a SHA1 Certificate/Digest Algorithm/Timestamp:

signtool sign /t http://timestamp.certera.com /n "subject name" "C:\path\to\fileToSign.exe"

Step 3: You should receive confirmation that the file was successfully signed and timestamped.

These steps overall help you sign your files using SignTool. Whether you choose the automatic or manual method, ensure the signing process is flourishing and you receive the confirmation message.

Activate your Safenet Token Step-wise:

To get started with your Safenet token and ensure successful activation, follow these steps:

Things you need:

  • Safenet USB Token: You should have received a Safenet USB Token when you ordered a Standard Code Signing, PDF Signing, or EV Code Signing Certificate.
  • Safenet Authentication Client: Ensure you have installed the Safenet Authentication Client on your system. Note that the new Safenet eToken 5110 CC (940) requires version 10.7 or higher of the client software.

Once you have arranged the above, we will begin initiating the following steps.

Step 1: Locate and launch the SafeNet Authentication Client Tools application on your computer.

Step 2: In the SafeNet Authentication Client Tools, click on the Gear Icon located at the top right corner to switch to Advanced View.

SafeNet Authentication Client Gear Icon

Step 3: Right-click on your Safenet token (the name may vary) and select “Initialize Token” from the context menu.

Initialize Token SafeNet

Step 4: Choose the option to “Configure all initialization settings and policies” when prompted.

Preserve Token Settings

Step 5: Create a new password for your token.

QUICK NOTE: The default password for the new Safenet eToken 5110 CC (940) is “0000.” For older tokens, the default password is “1234567890.”

SafeNet Password Reset

Step 6: Uncheck the box that says, “Token password must be changed on the first log-on.”

Token Password Change Notification

Step 7: Click “Finish” to complete the initialization process. A warning message will appear, notifying you that all current token contents will be deleted. Confirm by clicking “OK.”

Step 8: Once the process is completed, you will receive a notification. Click “OK” to acknowledge it.

Step 9: Create New PIN and PUK Password.

Create PUK and PIn Safenet

Congratulations! Your SafeNet token is now initialized and ready to have a certificate installed and successfully activated. With a properly initialized token, you can confidently manage and utilize your Safenet USB Token for secure operations.

Token Initiated Successfully

Get Authentic Code Signing Certificates from Certera and Secure your JAR Files, Java applets, etc.

<?xml version="1.0" encoding="UTF-8"?><svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 109.7 29.02"><defs><style>.cls-1{fill:#fff;}</style></defs><path class="cls-1" d="m5.38,22.85c-3.1-.26-5.3-1.92-5.38-4.8h3.6c.1,1.1.67,1.85,1.78,2.09v-4.58c-2.47-.62-5.38-1.32-5.38-4.87,0-2.83,2.26-4.68,5.38-4.92v-1.94h1.54v1.94c3,.24,5.02,1.85,5.23,4.7h-3.62c-.1-.94-.67-1.66-1.61-1.94v4.54c2.5.65,5.42,1.3,5.42,4.85,0,2.45-1.92,4.73-5.42,4.97v1.94h-1.54v-1.97Zm0-10.25v-4.15c-1.1.17-1.87.84-1.87,2.06,0,1.13.77,1.7,1.87,2.09Zm1.54,3.38v4.2c1.22-.22,1.94-1.06,1.94-2.14s-.82-1.68-1.94-2.06Z"/><path class="cls-1" d="m17.62,8.33h-2.33v-3.1h5.78v17.5h-3.46v-14.4Z"/><path class="cls-1" d="m28.27,17.81c.26,1.39,1.15,2.18,2.71,2.18,1.97,0,2.83-1.46,2.83-5.4-.74,1.03-2.16,1.63-3.7,1.63-3.02,0-5.45-1.9-5.45-5.59,0-3.5,2.21-5.81,5.91-5.81,4.75,0,6.22,3.22,6.22,8.76,0,5.95-1.32,9.17-5.95,9.17-3.72,0-5.5-2.38-5.69-4.94h3.12Zm5.23-7.15c0-1.92-1.1-2.98-2.81-2.98s-2.81,1.18-2.81,2.93c0,1.58.89,2.88,2.93,2.88,1.68,0,2.69-1.13,2.69-2.83Z"/><path class="cls-1" d="m41.28,22.9c-1.22,0-2.09-.86-2.09-1.97s.86-1.97,2.09-1.97,2.04.86,2.04,1.97-.86,1.97-2.04,1.97Z"/><path class="cls-1" d="m49.54,17.81c.26,1.39,1.15,2.18,2.71,2.18,1.97,0,2.83-1.46,2.83-5.4-.74,1.03-2.16,1.63-3.7,1.63-3.02,0-5.45-1.9-5.45-5.59,0-3.5,2.21-5.81,5.91-5.81,4.75,0,6.22,3.22,6.22,8.76,0,5.95-1.32,9.17-5.95,9.17-3.72,0-5.5-2.38-5.69-4.94h3.12Zm5.23-7.15c0-1.92-1.1-2.98-2.81-2.98s-2.81,1.18-2.81,2.93c0,1.58.89,2.88,2.93,2.88,1.68,0,2.69-1.13,2.69-2.83Z"/><path class="cls-1" d="m64.56,17.81c.26,1.39,1.15,2.18,2.71,2.18,1.97,0,2.83-1.46,2.83-5.4-.74,1.03-2.16,1.63-3.7,1.63-3.02,0-5.45-1.9-5.45-5.59,0-3.5,2.21-5.81,5.9-5.81,4.75,0,6.22,3.22,6.22,8.76,0,5.95-1.32,9.17-5.95,9.17-3.72,0-5.5-2.38-5.69-4.94h3.12Zm5.23-7.15c0-1.92-1.1-2.98-2.81-2.98s-2.81,1.18-2.81,2.93c0,1.58.89,2.88,2.93,2.88,1.68,0,2.69-1.13,2.69-2.83Z"/><path class="cls-1" d="m81.79,0h3.29l-6.48,27.07h-3.29L81.79,0Z"/><path class="cls-1" d="m96.89,9.43h3.58l-8.23,19.59h-3.58l2.88-6.62-5.33-12.96h3.77l3.43,9.29,3.48-9.29Z"/><path class="cls-1" d="m105.62,22.73h-3.36v-13.3h3.36v2.06c.84-1.37,2.23-2.26,4.08-2.26v3.53h-.89c-1.99,0-3.19.77-3.19,3.34v6.62Z"/></svg>