Is Signing EXEs with SHA-256 and SHA-384 (or SHA-1?) Recommended Nowadays?

Abstract: Resolves uncertainty about code signing algorithms by confirming SHA-256 as the mandatory standard and SHA-1 as deprecated for modern Windows environments.

Created: 2026-08-21 by
Signing EXEs with SHA-256 is the mandatory standard for modern Windows environments, while SHA-1 is deprecated and actively rejected by security policies. Although some legacy systems or specific enterprise configurations might still require SHA-1 support, relying on it introduces significant security risks and compatibility issues with current certificate authorities. The recommended approach is to use SHA-256 exclusively unless you have a verified need for backward compatibility with very old operating systems like Windows XP or Server 2003.

The Decline of SHA-1 in Software Signing

For years, SHA-1 was the default hashing algorithm used in PKCS#7 signatures generated by tools like signtool.exe. However, due to demonstrated vulnerabilities that allow collision attacks, major browser vendors and Microsoft have moved to deprecate SHA-1 certificates. If you attempt to sign an executable with a SHA-1 certificate today, you will likely encounter errors from your Certificate Authority (CA) or warnings from end-users regarding untrusted publishers. Microsoft has explicitly stated that SHA-1 code signing certificates are no longer valid for trust validation in modern versions of Windows. This means that even if a signature is technically valid cryptographically, the operating system may not display the "Verified Publisher" name or may flag the software as potentially unsafe. Consequently, generating signatures with SHA-1 is no longer considered a best practice and should be avoided for any new development or distribution channels.

Why SHA-256 is the Current Standard

SHA-256 provides a significantly higher level of security against collision attacks compared to SHA-1. It is supported natively by all modern versions of Windows, including Windows 10, Windows 11, and recent server editions. When you sign an executable using SHA-256, the signature is recognized as trustworthy by both the OS and major antivirus engines without triggering additional warnings. Using SHA-256 also ensures compliance with industry standards set by the CA/Browser Forum and other security bodies. Most commercial Code Signing Certificates now only issue SHA-256 or stronger algorithms. Attempting to force SHA-1 support often requires disabling security features or using outdated toolchains, which can expose your build process to other vulnerabilities.

Handling Legacy Compatibility Needs

There are rare scenarios where you must support extremely old hardware or software that cannot parse SHA-256 signatures. In these cases, you might consider maintaining separate builds or using dual-signing techniques. However, note that many modern signing tools and USB tokens do not easily support creating multiple hashes in a single signature file efficiently. If you absolutely must support legacy systems, you can sometimes configure your signing script to create two separate signature files or use older versions of signtool.exe that allow specifying the hash algorithm explicitly. Be aware that this increases the complexity of your deployment pipeline and may confuse users who see conflicting signature information. For most developers, supporting Windows 7 and above makes SHA-256 sufficient, as these systems fully support SHA-256 signatures.

Configuring Signtool for SHA-256

To ensure your executables are signed correctly, you must configure your build scripts to explicitly request SHA-256 hashing. By default, newer versions of signtool.exe may attempt to use SHA-256, but it is safer to specify it manually to avoid fallback behavior. You can achieve this by adding the /fd sha256 flag to your command line arguments when invoking the signing tool. For example, a typical command might look like this:
signtool sign /fd SHA256 /f MyCertificate.pfx /p Password MyApplication.exe
This command forces the tool to use the SHA-256 file digest. If you are using a CI/CD pipeline, ensure that your environment variables and build agents are updated to use the latest version of the signing tools, which default to stronger algorithms. Always verify the resulting signature using signtool verify /pa MyApplication.exe to confirm that the correct hash algorithm was applied.

Security Implications of Weak Hashes

Continuing to use weak hashing algorithms like SHA-1 exposes your organization to potential supply chain attacks. An attacker who can generate a malicious binary with the same hash as a legitimate one could substitute the file without invalidating the signature. While such attacks are complex, they are theoretically possible and have been demonstrated in research settings. Furthermore, using weak hashes can damage your brand reputation. Users and enterprises increasingly rely on digital signatures to verify the integrity and origin of software. A signature that triggers security warnings or fails to show a publisher name can lead to decreased download rates and increased support tickets. Investing in proper SHA-256 signing practices is a small cost compared to the risk of compromise. For more details on managing secure connections and troubleshooting related network issues, you might find DNS and NSLOOKUP: Troubleshooting Network Connectivity Issues helpful for ensuring your build servers can communicate securely with certificate authorities. Additionally, understanding how to manage local resources effectively can aid in setting up isolated signing environments, similar to methods discussed in Creating Network Load on Local Wi-Fi from One PC.

Frequently Asked Questions

Can I sign an EXE with both SHA-1 and SHA-256?

Yes, it is technically possible to include multiple hashes in a single signature container, but it is rarely supported by modern signing tools and USB tokens out of the box. This approach increases file size and complexity without providing significant benefit since SHA-1 is already considered insecure. Most CAs will not issue certificates that support both for new requests.

Will SHA-256 signatures work on Windows XP?

No, Windows XP does not support SHA-256 code signing by default. It requires specific updates and patches to recognize SHA-256 signatures. If you must support XP, you are forced to use SHA-1, but this severely limits your ability to distribute software on modern platforms. Consider dropping support for XP entirely as it reached end-of-life years ago.

How do I check which hash algorithm my EXE was signed with?

You can use the signtool verify /pa command followed by the executable name. The output will display detailed information about the signature, including the hash algorithm used for the file digest. Look for the "File Digest" section to confirm whether it is SHA-256 or SHA-1.

Is SHA-384 better than SHA-256 for signing?

SHA-384 offers a larger hash size, but SHA-256 is already considered cryptographically strong enough for code signing purposes. There is no practical advantage to using SHA-384 for EXE signing in terms of security or compatibility. SHA-256 is the widely accepted standard that balances security with performance and broad OS support.

What happens if I use a SHA-1 certificate on Windows 11?

Windows 11 will likely reject the trust chain associated with a SHA-1 certificate, displaying warnings to the user that the publisher cannot be verified. Even if the signature is mathematically valid, the OS security policy will treat it as untrusted. This can result in SmartScreen filters blocking the application or requiring additional user clicks to run.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More