---
title: Weak Cryptography Detection - Certificate Security | Nodinite
description: Detect weak cryptographic algorithms in certificates including MD5, SHA-1 signatures, and weak RSA key lengths. Automated monitoring identifies certificates requiring replacement.
---

# :fa-exclamation-triangle: Weak Cryptography Detection

Enhanced Windows Server certificate monitoring automatically detects weak cryptographic algorithms, assesses certificate security and cryptographic strength, performs certificate validation, and provides security monitoring to identify certificates that require replacement due to deprecated algorithms.

:new6.4.0.0: Introduced automatic weak cryptography detection for signature algorithms, hash algorithms, and public key lengths.

For configuration options, see [Certificate Configuration - Weak Cryptography Detection][Configuration].

## :fa-shield-exclamation: Overview

Weak cryptography detection identifies three categories of security risks:

1. **Signature Algorithm Security**: Detects deprecated signature algorithms (MD5RSA, MD5DSA, SHA-1 variants)
2. **Hash Algorithm Security**: Validates hash algorithms used in certificate fingerprints and signatures
3. **Public Key Length Assessment**: Ensures RSA keys meet minimum security standards (2048+ bits)

Certificates with weak cryptography appear as **WARNING** resources in [Monitor Views][] with clear indication of the security issue requiring remediation.

## :fa-traffic-light: Security Assessment States

|State|Description|  
|---|---|  
|✅ **OK**|Certificate uses strong cryptographic algorithms (SHA-256+, 2048+ bit RSA, 256+ bit ECDSA)|  
|⚠️ **WARNING**|Weak cryptography detected (MD5, SHA-1, or RSA keys < 2048 bits) - replacement required|  
|❌ **ERROR**|Critical security issue (combined with other certificate failures like chain errors)|  

## :fa-pen-nib: Signature Algorithm Detection

The signature algorithm used to sign the certificate is validated against known weak algorithms:

### :fa-ban: Deprecated Signature Algorithms

|Algorithm|Status|Risk Level|Action Required|  
|---|---|---|---|  
|**MD5RSA**|⚠️ Deprecated|Critical|Replace immediately|  
|**MD5DSA**|⚠️ Deprecated|Critical|Replace immediately|  
|**SHA1RSA**|⚠️ Deprecated|High|Replace during next renewal|  
|**SHA1DSA**|⚠️ Deprecated|High|Replace during next renewal|  
|**SHA1ECDSA**|⚠️ Deprecated|High|Replace during next renewal|  

### :fa-check: Secure Signature Algorithms

|Algorithm|Status|Recommended|  
|---|---|---|  
|**SHA256RSA**|✅ Secure|✅ Yes|  
|**SHA384RSA**|✅ Secure|✅ Yes|  
|**SHA512RSA**|✅ Secure|✅ Yes|  
|**SHA256ECDSA**|✅ Secure|✅ Yes (ECDSA preferred)|  
|**SHA384ECDSA**|✅ Secure|✅ Yes (ECDSA preferred)|  
|**SHA512ECDSA**|✅ Secure|✅ Yes (ECDSA preferred)|  

**Example Detection**:

```text
Signature Algorithm: MD5RSA
⚠️ WARNING: Weak signature algorithm detected - MD5 is cryptographically broken
```

## :fa-hashtag: Hash Algorithm Detection

The hash algorithm used in certificate fingerprints and internal hashing is validated:

### :fa-ban: Weak Hash Algorithms

|Algorithm|Status|Risk Level|Action Required|  
|---|---|---|---|  
|**MD5**|⚠️ Deprecated|Critical|Replace immediately|  
|**SHA-1**|⚠️ Deprecated|High|Replace during next renewal|  

### :fa-check: Secure Hash Algorithms

|Algorithm|Status|Recommended|  
|---|---|---|  
|**SHA-256**|✅ Secure|✅ Yes|  
|**SHA-384**|✅ Secure|✅ Yes|  
|**SHA-512**|✅ Secure|✅ Yes|  

**Example Detection**:

```text
Hash Algorithm: SHA1
⚠️ WARNING: Deprecated hash algorithm - SHA-1 no longer considered secure
```

## :fa-key: Public Key Length Assessment

RSA public key lengths are validated to ensure they meet minimum security standards:

### :fa-ruler: RSA Key Length Requirements

|Key Length|Status|Security Level|Action|  
|---|---|---|---|  
|**< 1024 bits**|❌ Insecure|Critical|Replace immediately|  
|**1024 bits**|⚠️ Weak|High|Replace immediately|  
|**1536 bits**|⚠️ Weak|Medium|Replace during renewal|  
|**2048 bits**|✅ Secure|Standard|✅ Acceptable|  
|**3072 bits**|✅ Secure|Enhanced|✅ Recommended|  
|**4096 bits**|✅ Secure|Maximum|✅ Recommended|  

### :fa-ellipsis-h: ECDSA Key Length Requirements

|Key Length|Curve|Status|Recommended|  
|---|---|---|---|  
|**256 bits**|P-256|✅ Secure|✅ Yes|  
|**384 bits**|P-384|✅ Secure|✅ Yes|  
|**521 bits**|P-521|✅ Secure|✅ Yes|  

**Example Detection - Weak Key**:

```text
Public Key Algorithm: RSA
Public Key Length: 1024 bits
⚠️ WARNING: Weak RSA key length - minimum 2048 bits required for security
```

**Example Detection - Secure Key**:

```text
Public Key Algorithm: RSA
Public Key Length: 2048 bits
✅ OK: Secure key length meets modern security standards
```

## :fa-display: Certificate Details Display

Weak cryptography information appears in the certificate details page under **Cryptographic Information**:

### Normal Display (Secure Cryptography)

```text
Cryptographic Information
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Signature Algorithm: SHA256RSA
Hash Algorithm: SHA256
Public Key Algorithm: RSA
Public Key Length: 2048 bits
✅ All cryptographic parameters meet security standards
```

### Warning Display (Weak Signature Algorithm)

```text
Cryptographic Information
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Signature Algorithm: MD5RSA
⚠️ WARNING: Weak signature algorithm - MD5 is cryptographically broken
Hash Algorithm: SHA256
Public Key Algorithm: RSA
Public Key Length: 2048 bits

Action Required: Replace this certificate with one using SHA-256 or stronger
```

### Warning Display (Multiple Weaknesses)

```text
Cryptographic Information
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Signature Algorithm: SHA1RSA
⚠️ WARNING: Deprecated signature algorithm - SHA-1 no longer considered secure
Hash Algorithm: SHA1
⚠️ WARNING: Deprecated hash algorithm - SHA-1 must be replaced
Public Key Algorithm: RSA
Public Key Length: 1024 bits
⚠️ WARNING: Weak RSA key length - minimum 2048 bits required

Action Required: Replace this certificate immediately - multiple security issues detected
```

![Weak Cryptography Example][11]  
*Certificate details showing MD5RSA signature algorithm and 512-bit RSA public key triggering multiple security warnings.*

![Weak Cryptography Resources][15]  
*Certificates with weak cryptography (SHA-1) appearing as WARNING resources in Monitor Views requiring replacement.*

## :fa-cog: Configuration

Control weak cryptography detection behavior:

|Setting|Default|Description|  
|---|---|---|  
|:fa-toggle-on: **EnableWeakCryptographyDetection**|`true`|Enable/disable weak cryptography monitoring|  
|:fa-square-check: **TreatWeakCryptographyAsError**|`false`|Escalate weak cryptography from WARNING to ERROR state|  
|:fa-arrow-down-wide-short: **MinimumRSAKeyLength**|`2048`|Minimum acceptable RSA key length in bits|  
|:fa-square-check: **AllowSHA1Certificates**|`false`|Temporarily allow SHA-1 certificates (legacy compatibility)|  

For detailed configuration, see [Certificate Configuration][].

## :fa-vial: Testing Weak Cryptography Detection

Create test certificates to validate weak cryptography detection:

### Test Scenario 1: Certificate with MD5 Signature (WARNING)

```powershell
# Note: Windows no longer allows creating MD5 certificates directly
# Use existing legacy certificate or create via OpenSSL:

# Create private key
openssl genrsa -out md5test.key 2048

# Create certificate with MD5 signature (deprecated)
openssl req -new -x509 -key md5test.key -out md5test.crt -days 365 -md5 -subj "/CN=MD5-Test"

# Convert to PFX and import
openssl pkcs12 -export -out md5test.pfx -inkey md5test.key -in md5test.crt -passout pass:test123

# Import to Windows certificate store
$pwd = ConvertTo-SecureString -String "test123" -Force -AsPlainText
Import-PfxCertificate -FilePath "md5test.pfx" -CertStoreLocation "Cert:\LocalMachine\My" -Password $pwd

# Expected: WARNING state - MD5 signature algorithm detected
```

### Test Scenario 2: Certificate with SHA-1 Hash (WARNING)

```powershell
# Create certificate with SHA-1 hash (deprecated)
$sha1Cert = New-SelfSignedCertificate `
    -Subject "CN=SHA1-Test" `
    -CertStoreLocation "Cert:\LocalMachine\My" `
    -HashAlgorithm SHA1 `
    -KeyLength 2048

# Expected: WARNING state - SHA-1 hash algorithm deprecated
```

### Test Scenario 3: Certificate with Weak RSA Key (WARNING)

```powershell
# Create certificate with 1024-bit RSA key (weak)
$weakRSACert = New-SelfSignedCertificate `
    -Subject "CN=WeakRSA-Test" `
    -CertStoreLocation "Cert:\LocalMachine\My" `
    -KeyLength 1024

# Expected: WARNING state - RSA key length below 2048 bits
```

### Test Scenario 4: Certificate with Strong Cryptography (OK)

```powershell
# Create certificate with SHA-256 and 2048-bit RSA key (secure)
$secureCert = New-SelfSignedCertificate `
    -Subject "CN=Secure-Test" `
    -CertStoreLocation "Cert:\LocalMachine\My" `
    -HashAlgorithm SHA256 `
    -KeyLength 2048

# Expected: OK state - all cryptographic parameters secure
```

### Test Scenario 5: ECDSA Certificate with Strong Cryptography (OK)

```powershell
# Create ECDSA certificate with P-256 curve (secure)
$ecdsaCert = New-SelfSignedCertificate `
    -Subject "CN=ECDSA-Test" `
    -CertStoreLocation "Cert:\LocalMachine\My" `
    -KeyAlgorithm ECDSA_nistP256 `
    -HashAlgorithm SHA256

# Expected: OK state - ECDSA with SHA-256 meets security standards
```

For comprehensive testing scripts and additional scenarios, see [FAQ: Weak Cryptography Testing][].

## :fa-shield-check: Security Recommendations

1. **Replace MD5 Certificates Immediately**: MD5 is cryptographically broken and poses severe security risks
2. **Phase Out SHA-1 Certificates**: SHA-1 is deprecated by all major browsers and certificate authorities
3. **Minimum 2048-bit RSA Keys**: Never use RSA keys smaller than 2048 bits in production
4. **Prefer ECDSA**: ECDSA certificates offer equivalent security with shorter keys (256-bit ECDSA ≈ 3072-bit RSA)
5. **Monitor Continuously**: Enable weak cryptography detection on all certificate-bearing servers
6. **Plan Renewals**: Replace weak certificates during next renewal cycle
7. **Legacy System Exceptions**: If legacy systems require weak cryptography, document justification and remediation timeline

## :fa-calendar-times: Industry Deprecation Timeline

|Algorithm/Key|CA Issuance Stopped|Browser Support Ended|Action Deadline|  
|---|---|---|---|  
|**MD5**|2005|2009|Replace immediately|  
|**SHA-1**|2016|2017|Replace immediately|  
|**1024-bit RSA**|2013|2016|Replace immediately|  
|**SHA-256**|Still supported|Still supported|✅ Secure|  
|**2048-bit RSA**|Still supported|Still supported|✅ Secure|  

## :fa-hand-point-right: Next Steps

* :fa-asterisk: [Chain Validation][]  

## :fa-link-horizontal: Related Topics

* :fa-home: [Certificate Monitoring Overview][Certificate Monitoring]  
* :fa-shield-check: [Private Key Health][]  
* :fa-cog: [Certificate Configuration][]  
* :fa-wrench: [Certificate Remote Actions][]  
* :fa-question-circle: [FAQ: Weak Cryptography Testing][]  

[11]:{ndm}/Documentation%20Pictures/MonitorAgent/WindowsServer/Certificates/WeakCryptoExample.png
[15]:{ndm}/Documentation%20Pictures/MonitorAgent/WindowsServer/Certificates/WeakCryptoResources.png

[Certificate Configuration]:{ndr}/Logging%20and%20Monitoring/Windows%20Server/Features/Certificates/Configuration.md
[Certificate Monitoring]:{ndr}/Logging%20and%20Monitoring/Windows%20Server/Features/Certificates/Monitoring.md
[Certificate Remote Actions]:{ndr}/Logging%20and%20Monitoring/Windows%20Server/Features/Certificates/Remote%20Actions.md
[Chain Validation]:{ndr}/Logging%20and%20Monitoring/Windows%20Server/Features/Certificates/Chain%20Validation.md
[Configuration]:{ndr}/Logging%20and%20Monitoring/Windows%20Server/Features/Certificates/Configuration.md
[FAQ: Weak Cryptography Testing]:{ndr}/Logging%20and%20Monitoring/Windows%20Server/Features/Certificates/Troubleshooting/FAQ%20-%20Weak%20Cryptography%20Testing.md
[Monitor Views]:{ndr}/Administration/2.%20Monitor%20Management/1.%20Monitor%20Views/Features/What%20is%20a%20Monitor%20View.md
[Private Key Health]:{ndr}/Logging%20and%20Monitoring/Windows%20Server/Features/Certificates/Private%20Key%20Health.md