---
title: FAQ - Chain Validation Testing Scenarios
description: "Test chain validation monitoring with automated PowerShell scripts covering 6 scenarios: UntrustedRoot, PartialChain, NotTimeValid, RevocationStatusUnknown, Dev Mode, and Complete Valid Chain."
---

# FAQ - Chain Validation Testing Scenarios

Validate [Chain Validation][] monitoring with automated PowerShell test scripts covering all detection scenarios - from untrusted roots and partial chains (ERROR) to revocation check failures (WARNING) and valid certificate chains (OK).

**What's on This Page:**

* **6 Test Scenarios** - Automated PowerShell 7 scripts for UntrustedRoot, PartialChain, NotTimeValid, RevocationStatusUnknown, Dev Mode, and Complete Valid Chain
* [Batch Testing Script](#fa-tools-batch-testing-script) - Create all test scenarios with configurable flags and error handling
* [Cleanup Script](#fa-broom-cleanup-script) - Remove test certificates after validation testing
* **Validation Checklist** - Verify expected monitoring states match actual results
* **Troubleshooting** - Resolve testing-specific issues (PowerShell errors, chain building)

## Why Test Chain Validation?

Chain validation testing prevents certificate trust failures from causing production outages. Testing ensures monitoring correctly identifies:

* ❌ **UntrustedRoot errors** (ERROR) - Root CA not in trusted store causes application failures
* ❌ **PartialChain errors** (ERROR) - Missing intermediate certificates break trust validation
* ❌ **NotTimeValid errors** (ERROR) - Expired intermediates invalidate entire certificate chains
* ⚠️ **RevocationStatusUnknown warnings** (WARNING) - CRL/OCSP unreachable, potential security gap
* ✅ **Valid chains** (OK) - Complete, trusted certificate chains validate successfully

## Related Documentation

* [Chain Validation][] - Complete feature documentation with detection examples, remediation guidance, and severity explanations
* [Certificate Configuration][] - Configuration options for chain validation, self-signed certificates, and revocation checking

>[!NOTE]
>These scripts require **PowerShell 7+** with Administrator privileges for certificate store access.

>[!WARNING]
>Never deploy test certificates to production environments. Always clean up after validation testing.

![Chain Validation Example][1]  
*Chain validation showing inline error diagnostics with specific chain errors and remediation recommendations.*

## :fa-list-check: Testing Scenarios Overview

|#|Scenario|Purpose|[Expected State][]|Key Focus|  
|---|---|---|---|---|  
|**1**|[Untrusted Root Certificate](#scenario-1-untrusted-root-certificate)|Self-signed cert not in trusted store|❌ **Critical**|UntrustedRoot chain error|  
|**2**|[Partial Chain (Missing Intermediate)](#scenario-2-partial-chain-missing-intermediate)|Certificate without intermediate CA|❌ **Critical**|PartialChain chain error|  
|**3**|[Expired Intermediate Certificate](#scenario-3-expired-intermediate-certificate)|Expired intermediate breaks chain|❌ **Critical**|NotTimeValid chain error|  
|**4**|[Revocation Check Failure](#scenario-4-revocation-check-failure)|CRL/OCSP unreachable|⚠️ **Warning**|RevocationStatusUnknown|  
|**5**|[Valid Chain with Dev Mode](#scenario-5-valid-chain-with-dev-mode)|Self-signed with AllowSelfSigned=true|⚠️ **Warning**|Dev mode severity reduction|  
|**6**|[Complete Valid Chain](#scenario-6-complete-valid-chain)|Properly configured certificate chain|✅ **OK**|All chain validation checks pass|  

## :fa-sitemap: Test Scenario Workflow

```mermaid
graph TD
    Start[":fa-play: Start Testing"] --> Config[":fa-cogs: Configure Scenarios"]
    Config --> S1{":fa-ban: Scenario 1<br/>UntrustedRoot"}
    Config --> S2{":fa-unlink: Scenario 2<br/>PartialChain"}
    Config --> S3{":fa-clock: Scenario 3<br/>Expired Intermediate"}
    Config --> S4{":fa-shield-xmark: Scenario 4<br/>Revocation Failure"}
    Config --> S5{":fa-flask: Scenario 5<br/>Dev Mode"}
    Config --> S6{":fa-check-circle: Scenario 6<br/>Valid Chain"}
    S1 --> V1[":fa-times-circle: Critical"]
    S2 --> V2[":fa-times-circle: Critical"]
    S3 --> V3[":fa-times-circle: Critical"]
    S4 --> V4[":fa-triangle-exclamation: Warning"]
    S5 --> V5[":fa-triangle-exclamation: Warning"]
    S6 --> V6[":fa-circle-check: OK"]
    V1 --> Monitor[":fa-eye: Monitor Results"]
    V2 --> Monitor
    V3 --> Monitor
    V4 --> Monitor
    V5 --> Monitor
    V6 --> Monitor
    Monitor --> Validate[":fa-check-double: Validate Alerts"]
    Validate --> Cleanup[":fa-broom: Cleanup Test Certs"]
    Cleanup --> End[":fa-flag-checkered: Testing Complete"]
    style S1 fill:#ffebee
    style S2 fill:#ffebee
    style S3 fill:#ffebee
    style S4 fill:#fff3e0
    style S5 fill:#e3f2fd
    style S6 fill:#e8f5e9
    style V1 fill:#ffcdd2
    style V2 fill:#ffcdd2
    style V3 fill:#ffcdd2
    style V4 fill:#ffe0b2
    style V5 fill:#bbdefb
    style V6 fill:#c8e6c9
```

*Diagram: Chain validation test workflow showing scenario configuration, expected states, and monitoring verification process with color-coded severity levels.*

## :fa-vial: Test Scenarios

### Scenario 1: Untrusted Root Certificate

**Purpose**: Validate monitoring detection of self-signed certificates with root CA not in trusted store.

**Configuration**:

|Setting|Value|Rationale|  
|---|---|---|  
|:fa-file-certificate: **Certificate Type**|Self-signed|Creates UntrustedRoot error|  
|:fa-tag: **Subject**|`CN=TestCert-UntrustedRoot`|Clearly identifies test purpose|  
|:fa-box-archive: **Store Location**|`Cert:\LocalMachine\My`|Standard personal certificate store|  
|:fa-ruler: **Key Length**|2048-bit RSA|Minimum secure key size|  
|:fa-calendar-day: **Validity Period**|90 days|Short validity for test certificates|  
|:fa-key: **Key Usage**|DigitalSignature, KeyEncipherment|Standard SSL/TLS usage|  

**Expected Results**:

|Aspect|Value|  
|---|---|  
|:fa-link-slash: **Chain Error**|UntrustedRoot|  
|:fa-traffic-light: **State**|❌ **Critical** (default) or ⚠️ **Warning** (if `AllowSelfSignedCertificates=true`)|  
|:fa-magnifying-glass: **Detection**|Root CA not found in Trusted Root Certification Authorities store|  
|:fa-bell: **Alert**|"Untrusted root certificate detected" (if enabled)|  
|:fa-wrench: **Remediation**|Install root CA to trusted store OR enable dev mode for testing|  

### Scenario 2: Partial Chain (Missing Intermediate)

**Purpose**: Validate detection of incomplete certificate chains with missing intermediate CA.

**Configuration**:

|Setting|Value|Rationale|  
|---|---|---|  
|:fa-sitemap: **Chain Structure**|Root CA → Intermediate CA → End Entity|Multi-level trust chain|  
|:fa-bolt: **Action**|Remove intermediate CA after creation|Simulates missing intermediate|  
|:fa-tag: **Subject**|`CN=TestCert-PartialChain`|Identifies test scenario|  
|:fa-box-archive: **Store Location**|`Cert:\LocalMachine\My`|Personal certificate store|  
|:fa-ruler: **Key Length**|2048-bit RSA|Secure key size|  
|:fa-calendar-day: **Validity**|90 days (end entity), 180 days (intermediate)|Test certificate lifetimes|  

**Expected Results**:

|Aspect|Value|  
|---|---|  
|:fa-link-slash: **Chain Error**|PartialChain|  
|:fa-traffic-light: **State**|❌ **Critical**|  
|:fa-magnifying-glass: **Detection**|Intermediate CA missing from chain path|  
|:fa-bell: **Alert**|"Missing intermediate certificate(s) in chain"|  
|:fa-wrench: **Remediation**|Download and install missing intermediate CA certificate|  

### Scenario 3: Expired Intermediate Certificate

**Purpose**: Validate detection of expired intermediate CA certificates breaking the chain.

**Configuration**:

|Setting|Value|Rationale|  
|---|---|---|  
|:fa-sitemap: **Chain Structure**|Root CA (valid) → Intermediate CA (expired) → End Entity (valid)|Mixed validity states|  
|:fa-calendar-xmark: **Intermediate Expiration**|Already expired OR expires during test|Simulates NotTimeValid error|  
|:fa-tag: **Subject**|`CN=TestCert-ExpiredIntermediate`|Identifies test scenario|  
|:fa-box-archive: **Store Location**|`Cert:\LocalMachine\My`|Personal certificate store|  
|:fa-calendar-day: **Root Validity**|365 days|Long-lived root CA|  
|:fa-calendar-day: **End Entity Validity**|90 days|Standard certificate lifetime|  

**Expected Results**:

|Aspect|Value|  
|---|---|  
|:fa-link-slash: **Chain Error**|NotTimeValid|  
|:fa-traffic-light: **State**|❌ **Critical**|  
|:fa-magnifying-glass: **Detection**|Expired intermediate CA in chain|  
|:fa-bell: **Alert**|"Certificate chain contains expired certificate"|  
|:fa-wrench: **Remediation**|Renew expired intermediate CA certificate|  

### Scenario 4: Revocation Check Failure

**Purpose**: Validate WARNING state when CRL/OCSP endpoints are unreachable.

**Configuration**:

|Setting|Value|Rationale|  
|---|---|---|  
|:fa-link: **CRL Distribution Point**|Invalid/unreachable URL|Simulates network/firewall issue|  
|:fa-link: **OCSP Responder**|Invalid/unreachable URL|Backup revocation method also fails|  
|:fa-tag: **Subject**|`CN=TestCert-RevocationFailure`|Identifies test scenario|  
|:fa-box-archive: **Store Location**|`Cert:\LocalMachine\My`|Personal certificate store|  
|:fa-toggle-on: **ValidateRevocation**|`true`|Must be enabled to trigger check|  

**Expected Results**:

|Aspect|Value|  
|---|---|  
|:fa-link-slash: **Chain Error**|RevocationStatusUnknown|  
|:fa-traffic-light: **State**|⚠️ **Warning**|  
|:fa-magnifying-glass: **Detection**|Cannot contact CRL/OCSP endpoints|  
|:fa-bell: **Alert**|"Unable to verify certificate revocation status"|  
|:fa-wrench: **Remediation**|Verify network connectivity, check firewall rules, ensure CRL/OCSP accessible|  

### Scenario 5: Valid Chain with Dev Mode

**Purpose**: Validate `AllowSelfSignedCertificates` configuration downgrades UntrustedRoot to WARNING.

**Configuration**:

|Setting|Value|Rationale|  
|---|---|---|  
|:fa-file-certificate: **Certificate Type**|Self-signed|Would normally be UntrustedRoot|  
|:fa-sliders: **Config Setting**|`AllowSelfSignedCertificates=true`|Development/test mode enabled|  
|:fa-tag: **Subject**|`CN=TestCert-DevMode`|Identifies test scenario|  
|:fa-box-archive: **Store Location**|`Cert:\LocalMachine\My`|Personal certificate store|  
|:fa-leaf: **Environment**|Development/Test ONLY|Never use in production|  

**Expected Results**:

|Aspect|Value|  
|---|---|  
|:fa-link-slash: **Chain Error**|UntrustedRoot (detected but severity reduced)|  
|:fa-traffic-light: **State**|⚠️ **Warning** (instead of ❌ Critical)|  
|:fa-magnifying-glass: **Detection**|Self-signed certificate in dev/test mode|  
|:fa-bell: **Alert**|"Self-signed certificate detected (dev mode)"|  
|:fa-circle-info: **Note**|Configuration explicitly allows self-signed certs for testing|  

### Scenario 6: Complete Valid Chain

**Purpose**: Validate monitoring correctly identifies healthy certificates with complete, trusted chains.

**Configuration**:

|Setting|Value|Rationale|  
|---|---|---|  
|:fa-file-certificate: **Certificate Type**|CA-issued OR properly configured self-signed chain|Complete trust path|  
|:fa-sitemap: **Chain Structure**|Root CA (trusted) → Intermediate CA → End Entity|All certificates valid and trusted|  
|:fa-tag: **Subject**|`CN=TestCert-ValidChain`|Identifies test scenario|  
|:fa-box-archive: **Store Location**|`Cert:\LocalMachine\My` (end entity), `Cert:\LocalMachine\CA` (intermediate), `Cert:\LocalMachine\Root` (root)|Proper certificate placement|  
|:fa-certificate: **All Certificates**|Valid (not expired, not revoked)|No chain errors|  
|:fa-shield-halved: **Trust**|Root CA in Trusted Root store|Complete trust chain|  

**Expected Results**:

|Aspect|Value|  
|---|---|  
|:fa-link-slash: **Chain Error**|None|  
|:fa-traffic-light: **State**|✅ **OK**|  
|:fa-magnifying-glass: **Detection**|Complete, trusted certificate chain with all validation checks passing|  
|:fa-bell: **Alert**|No alert (healthy certificate)|  
|:fa-list: **Characteristics**|All certificates time-valid, trusted root, revocation checks pass, no policy violations|  

## :fa-tools: Batch Testing Script

**Purpose**: Create all 6 test scenarios with a single PowerShell 7 script.

```powershell
# Chain Validation Testing - Batch Script
# Creates all 6 test scenarios for chain validation monitoring
#
# Requires: PowerShell 7+, Administrator privileges
# Usage: .\Test-ChainValidation.ps1 -Scenarios 1,2,3,4,5,6

param(
    [int[]]$Scenarios = @(1,2,3,4,5,6),  # Which scenarios to create
    [switch]$Verbose                      # Show detailed output
)

Write-Host ("=" * 70) -ForegroundColor Cyan
Write-Host "Chain Validation Test Suite" -ForegroundColor Cyan
Write-Host ("=" * 70) -ForegroundColor Cyan
Write-Host ""

# Scenario 1: UntrustedRoot
if (1 -in $Scenarios) {
    Write-Host "[1/6] Creating UntrustedRoot scenario..." -ForegroundColor Yellow
    $cert1 = New-SelfSignedCertificate `
        -Subject "CN=TestCert-UntrustedRoot, O=Nodinite Chain Testing" `
        -CertStoreLocation "Cert:\LocalMachine\My" `
        -KeyLength 2048 -NotAfter (Get-Date).AddDays(90)
    Write-Host "  ✓ Created: $($cert1.Thumbprint)" -ForegroundColor Green
}

# Scenario 2: PartialChain
if (2 -in $Scenarios) {
    Write-Host "[2/6] Creating PartialChain scenario..." -ForegroundColor Yellow
    $root2 = New-SelfSignedCertificate -Subject "CN=Test Root CA" -CertStoreLocation "Cert:\LocalMachine\My" -KeyUsage CertSign -NotAfter (Get-Date).AddDays(365)
    $int2 = New-SelfSignedCertificate -Subject "CN=Test Intermediate CA" -Signer $root2 -CertStoreLocation "Cert:\LocalMachine\My" -KeyUsage CertSign -NotAfter (Get-Date).AddDays(180)
    $cert2 = New-SelfSignedCertificate -Subject "CN=TestCert-PartialChain" -Signer $int2 -CertStoreLocation "Cert:\LocalMachine\My" -NotAfter (Get-Date).AddDays(90)
    Remove-Item "Cert:\LocalMachine\My\$($int2.Thumbprint)" -Force  # Create partial chain
    Write-Host "  ✓ Created: $($cert2.Thumbprint) (intermediate removed)" -ForegroundColor Green
}

# Scenario 3: NotTimeValid (Expired Intermediate)
if (3 -in $Scenarios) {
    Write-Host "[3/6] Creating NotTimeValid scenario..." -ForegroundColor Yellow
    Write-Host "  ⚠ Note: Requires pre-created expired certificate or manual expiration" -ForegroundColor Yellow
    # This scenario typically requires importing an expired certificate
    # Or using certificate backdating tools not available in standard PowerShell
}

# Scenario 4: RevocationStatusUnknown
if (4 -in $Scenarios) {
    Write-Host "[4/6] Creating RevocationStatusUnknown scenario..." -ForegroundColor Yellow
    $cert4 = New-SelfSignedCertificate `
        -Subject "CN=TestCert-RevocationFailure, O=Nodinite Chain Testing" `
        -CertStoreLocation "Cert:\LocalMachine\My" `
        -KeyLength 2048 -NotAfter (Get-Date).AddDays(90) `
        -Extension @(
            [System.Security.Cryptography.X509Certificates.X509Extension]::new(
                "2.5.29.31",  # CRL Distribution Points
                [Convert]::FromBase64String("MGYwZKBioGCGXmh0dHA6Ly9pbnZhbGlkLXVybC1mb3ItdGVzdGluZy5leGFtcGxlL2NybA=="),
                $false
            )
        )
    Write-Host "  ✓ Created: $($cert4.Thumbprint)" -ForegroundColor Green
}

# Scenario 5: Dev Mode (Self-Signed with AllowSelfSignedCertificates)
if (5 -in $Scenarios) {
    Write-Host "[5/6] Creating Dev Mode scenario..." -ForegroundColor Yellow
    $cert5 = New-SelfSignedCertificate `
        -Subject "CN=TestCert-DevMode, O=Nodinite Chain Testing" `
        -CertStoreLocation "Cert:\LocalMachine\My" `
        -KeyLength 2048 -NotAfter (Get-Date).AddDays(90)
    Write-Host "  ✓ Created: $($cert5.Thumbprint)" -ForegroundColor Green
    Write-Host "  ⚠ Set AllowSelfSignedCertificates=true in agent config" -ForegroundColor Yellow
}

# Scenario 6: Complete Valid Chain
if (6 -in $Scenarios) {
    Write-Host "[6/6] Creating Complete Valid Chain scenario..." -ForegroundColor Yellow
    
    # Create root CA in My store first (New-SelfSignedCertificate requires My store)
    $root6 = New-SelfSignedCertificate `
        -Subject "CN=Test Trusted Root CA, O=Nodinite Chain Testing" `
        -CertStoreLocation "Cert:\LocalMachine\My" `
        -KeyUsage CertSign `
        -NotAfter (Get-Date).AddYears(5)
    
    # Export and import to Root store
    $rootCert = Get-Item "Cert:\LocalMachine\My\$($root6.Thumbprint)"
    Export-Certificate -Cert $rootCert -FilePath "$env:TEMP\TestRootCA.cer" -Force | Out-Null
    Import-Certificate -FilePath "$env:TEMP\TestRootCA.cer" -CertStoreLocation "Cert:\LocalMachine\Root" | Out-Null
    Remove-Item "$env:TEMP\TestRootCA.cer" -Force
    Write-Host "  ✓ Root CA created and copied to Trusted Root store" -ForegroundColor Green
    
    # Create intermediate CA signed by root
    $int6 = New-SelfSignedCertificate `
        -Subject "CN=Test Trusted Intermediate CA, O=Nodinite Chain Testing" `
        -Signer $root6 `
        -CertStoreLocation "Cert:\LocalMachine\My" `
        -KeyUsage CertSign `
        -NotAfter (Get-Date).AddYears(2)
    
    # Export and import to CA store
    $intCert = Get-Item "Cert:\LocalMachine\My\$($int6.Thumbprint)"
    Export-Certificate -Cert $intCert -FilePath "$env:TEMP\TestIntCA.cer" -Force | Out-Null
    Import-Certificate -FilePath "$env:TEMP\TestIntCA.cer" -CertStoreLocation "Cert:\LocalMachine\CA" | Out-Null
    Remove-Item "$env:TEMP\TestIntCA.cer" -Force
    Write-Host "  ✓ Intermediate CA created and copied to CA store" -ForegroundColor Green
    
    # Create end-entity certificate signed by intermediate
    $cert6 = New-SelfSignedCertificate `
        -Subject "CN=TestCert-ValidChain, O=Nodinite Chain Testing" `
        -Signer $int6 `
        -CertStoreLocation "Cert:\LocalMachine\My" `
        -NotAfter (Get-Date).AddDays(365)
    Write-Host "  ✓ Created complete chain: $($cert6.Thumbprint)" -ForegroundColor Green
    
    # Optional: Clean up root and intermediate from My store to avoid duplicates
    Remove-Item "Cert:\LocalMachine\My\$($root6.Thumbprint)" -Force
    Remove-Item "Cert:\LocalMachine\My\$($int6.Thumbprint)" -Force
    Write-Host "  ✓ Chain certificates organized in proper stores" -ForegroundColor Green
}

Write-Host ""
Write-Host ("=" * 70) -ForegroundColor Cyan
Write-Host "Test certificate creation complete!" -ForegroundColor Green
Write-Host "Next: Monitor results in Nodinite Web Client" -ForegroundColor Cyan
Write-Host ("=" * 70) -ForegroundColor Cyan
```

## :fa-broom: Cleanup Script

**Purpose**: Remove all test certificates after validation testing.

```powershell
# Chain Validation Cleanup Script
# Removes all test certificates created by the batch testing script
#
# Requires: PowerShell 7+, Administrator privileges
# Usage: .\Cleanup-ChainValidation.ps1

Write-Host "Removing Chain Validation test certificates..." -ForegroundColor Cyan

# Define certificate stores to check
$stores = @(
    "Cert:\LocalMachine\My",
    "Cert:\LocalMachine\CA",
    "Cert:\LocalMachine\Root"
)

$totalRemoved = 0

foreach ($store in $stores) {
    Write-Host "Checking $store..." -ForegroundColor Gray
    
    # Find test certificates in this store
    $testCerts = Get-ChildItem $store -ErrorAction SilentlyContinue | Where-Object {
        $_.Subject -like "*Nodinite Chain Testing*" -or
        $_.Subject -like "CN=TestCert-*" -or
        $_.Subject -like "CN=Test Root CA*" -or
        $_.Subject -like "CN=Test Intermediate CA*" -or
        $_.Subject -like "CN=Test Trusted*"
    }
    
    if ($testCerts) {
        foreach ($cert in $testCerts) {
            Write-Host "  Removing: $($cert.Subject) [$($cert.Thumbprint)]" -ForegroundColor Yellow
            Remove-Item "$store\$($cert.Thumbprint)" -Force -ErrorAction SilentlyContinue
            $totalRemoved++
        }
    }
}

Write-Host ""
if ($totalRemoved -eq 0) {
    Write-Host "No test certificates found." -ForegroundColor Yellow
} else {
    Write-Host "✓ Cleanup complete! Removed $totalRemoved certificate(s)." -ForegroundColor Green
}
```

## :fa-eye: Chain Validation Verification

After creating test certificates, verify :Nodinite: monitoring detects chain errors correctly:

1. **Wait for discovery** - Allow 1-2 synchronization cycles (5-10 minutes default)
2. **Check [Web Client][]** - Navigate to [Windows Server][] certificate monitoring
3. **Verify states** - Confirm each test certificate shows expected state (Critical/Warning/OK)
4. **Check inline errors** - Expand chain validation to see specific error details
5. **Test alerts** - If enabled, verify alerts triggered for configured error types

![Chain Validation Filtered Resources][2]  
*Filter certificate resources by chain validation state to quickly identify certificates with chain errors requiring remediation.*

**Expected Timeline**:

|Time|Event|  
|---|---|  
|**T+0**|Test certificates created|  
|**T+5 min**|First synchronization cycle discovers certificates|  
|**T+5 min**|Chain validation executes, errors detected|  
|**T+5 min**|Alerts generated (if enabled)|  
|**T+10 min**|Results visible in Web Client|  

## :fa-question-circle: Frequently Asked Questions

**Q: Why do I get script errors when running the PowerShell test scripts?**  
**A:** These scripts require **PowerShell 7 or later** with Administrator privileges. Verify your PowerShell version by running `$PSVersionTable.PSVersion` - it should show 7.x or higher. PowerShell 5.1 (Windows PowerShell) has limitations with certificate chain manipulation. Download PowerShell 7+ from [Microsoft's official site](https://learn.microsoft.com/en-us/powershell/scripting/install/install-powershell-on-windows)<sup>:fa-arrow-up-right-from-square:</sup>. Additionally, certificate chain operations require Administrator rights to access `Cert:\LocalMachine` stores.

**Q: How do I validate Certificate Chain Validation with :Nodinite:?**  
**A:** Run the **Batch Testing Script** (see section above) on your Windows Server to create test scenarios for UntrustedRoot, PartialChain, NotTimeValid, RevocationStatusUnknown, and Dev Mode configurations. The :Nodinite: monitoring agent will automatically discover these certificates during its next synchronization cycle and validate their chains according to configured policies. Review the monitoring results in the :Nodinite: Web Client to verify each certificate shows the expected chain validation state with inline error diagnostics.

**Q: How do I enable Enhanced Chain Validation in :Nodinite:?**  
**A:** Enable the "Enhanced Chain Validation" feature in the [Windows Server Monitoring Agent][] configuration. See the comprehensive [Certificate Configuration][] guide for step-by-step instructions on enabling validation, configuring alert preferences for each error category (UntrustedRoot, PartialChain, RevocationStatusUnknown), setting `AllowSelfSignedCertificates` for dev/test environments, and adjusting cache duration for performance optimization.

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

:fa-vial: [Run Chain Validation Test Scripts](#fa-tools-batch-testing-script) - Execute batch testing scenarios  
:fa-eye: [Verify Enhanced Chain Validation](#fa-eye-chain-validation-verification) - Confirm expected error categorization  
:fa-broom: [Clean Up Test Certificates](#fa-broom-cleanup-script) - Remove test certificates after validation  

## :fa-link-horizontal: Related Topics

:fa-shield-check: [Certificate Overview][]  
:fa-chart-line: [Certificate Monitoring][]  
:fa-cogs: [Certificate Configuration][]  
:fa-question-circle: [FAQ: Weak Cryptography Testing Scenarios][]  
:fa-question-circle: [All Certificate Testing FAQs][Certificate Testing FAQs]  
:fa-question-circle: [FAQ: Certificates for gMSA Accounts][]  

[1]:{ndm}/Documentation%20Pictures/MonitorAgent/WindowsServer/Certificates/ChainValidationExample.png
[2]:{ndm}/Documentation%20Pictures/MonitorAgent/WindowsServer/Certificates/ChainValidationResources.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 Overview]:{ndr}/Logging%20and%20Monitoring/Windows%20Server/Features/Certificates/Overview.md
[Certificate Testing FAQs]:{ndr}/Logging%20and%20Monitoring/Windows%20Server/Features/Certificates/Overview.md#fa-hand-point-right-next-steps
[Chain Validation]:{ndr}/Logging%20and%20Monitoring/Windows%20Server/Features/Certificates/Chain%20Validation.md
[Expected State]:{ndr}/Administration/2.%20Monitor%20Management/3.%20Resources/Features/Expected%20State.md
[FAQ: Certificates for gMSA Accounts]:{ndr}/Logging%20and%20Monitoring/Windows%20Server/Features/Certificates/Troubleshooting/FAQ%20-%20Certificates%20for%20gMSA%20Accounts.md
[FAQ: Weak Cryptography Testing Scenarios]:{ndr}/Logging%20and%20Monitoring/Windows%20Server/Features/Certificates/Troubleshooting/FAQ%20-%20Weak%20Cryptography%20Testing%20Scenarios.md
[Web Client]:{ndr}/Getting%20Started/Overview.md
[Windows Server]:{ndr}/Logging%20and%20Monitoring/Windows%20Server/Features/Windows%20Server.md
[Windows Server Monitoring Agent]:{ndr}/Logging%20and%20Monitoring/Windows%20Server/Overview.md