Software⏱️ 4 min readπŸ“… 2026-06-11

How to Fix: self-signed SSL certificate error: certificate has invalid digital signature

Self-signed SSL certificate error in Windows 7

Quick Answer: Check the certificate's SHA1 hash and try to update the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\CertificateTrustList.

The error 'This certificate has an invalid digital signature' occurs when attempting to import or add a self-signed SSL certificate in Windows 7. This issue affects users who have created and are trying to use self-signed certificates for their applications, websites, or services.

It can be frustrating to encounter this error as it prevents the user from utilizing the self-signed certificate for its intended purpose. However, with the right steps, you can resolve this issue and successfully import or add your self-signed SSL certificate.

πŸ›‘ Root Causes of the Error

  • The primary reason for this error is that the digital signature of the self-signed certificate is not properly formatted. When a self-signed certificate is created, it typically lacks the required cryptographic hash values, which are necessary to validate the digital signature.
  • An alternative reason for this issue could be that the Windows 7 system has an outdated or corrupted Certificate Store, leading to issues with certificate validation.

βœ… Best Solutions to Fix It

Importing Self-Signed Certificate using MMC

  1. Step 1: Step 1: Open the Microsoft Management Console (MMC) on your Windows 7 machine. You can do this by searching for 'mmc' in the Start menu or typing it into the Run dialog box.
  2. Step 2: Step 2: In the MMC, navigate to the 'Certificates' store and select the 'Personal' folder. Then, right-click on the 'Certificates' node and select 'All Tasks' > 'Import'.
  3. Step 3: Step 3: Select the self-signed certificate you want to import from your system or file location. Make sure it is in .pfx format.
  4. Step 4: Step 4: When prompted for the password, enter the password you used when creating the self-signed certificate. If you don't know the password, try using the 'Export' option to retrieve it.
  5. Step 5: Step 5: Click 'Next' and then 'Finish' to complete the import process.

Adding Self-Signed Certificate using netsh http

  1. Step 1: Step 1: Open a command prompt as an administrator on your Windows 7 machine. You can do this by right-clicking on the Start button and selecting 'Command Prompt (Admin)'.
  2. Step 2: Step 2: Type the following command to add the self-signed certificate: `netsh http add certfile `. Replace `` with the actual path to your self-signed certificate file.
  3. Step 3: Step 3: Press Enter to execute the command. If prompted, enter the password you used when creating the self-signed certificate.
  4. Step 4: Step 4: Wait for the operation to complete. You can verify that the certificate was added successfully by typing `netsh http show certstore` and searching for your self-signed certificate.

πŸ’‘ Conclusion

By following these steps, you should be able to resolve the 'This certificate has an invalid digital signature' error in Windows 7 when attempting to import or add a self-signed SSL certificate. Remember to always use the correct password and format when importing or adding certificates to ensure successful validation.

Did this fix your problem?

If not, try searching for specific error codes.

πŸ” Search Error Database

❓ Frequently Asked Questions