---
title: "Nodinite TLS Troubleshooting: CRL/OCSP Slowness and 401 Loopback Errors"
description: "Fix common TLS/HTTPS issues in Nodinite v7: diagnose 20-30 second page load delays from unreachable CRL/OCSP endpoints, and resolve 401 Unauthorized errors from the Windows loopback security check."
---

# TLS/HTTPS Troubleshooting for Nodinite v7

Common issues encountered after enabling TLS/HTTPS on :Nodinite: v7 installations. On [Windows Server][], each :Nodinite: [Core Service][Core Services] ([Web Client][], [Web API][], [Log API][], and the others) is its own [IIS][IIS Overview] web site, and the CLI binds the certificate you identify in the Portal to all of them. For the main hardening guide, see [How to perform hardening][]; for other IIS symptoms, start at the [IIS Troubleshooting Overview][IIS Overview].

## :fa-map: Quick Navigation

* [Slow Page Loads: CRL/OCSP Timeout](#slow-page-loads-certificate-revocation-timeout-crlocsp)
* [401 Unauthorized When Accessing via Hostname Locally](#401-unauthorized-when-accessing-via-hostname-locally)
* [Certificate Warning After Machine Rename or Clone](#certificate-warning-after-machine-rename-or-clone)

---

## :fa-clock-rotate-left: Slow Page Loads: Certificate Revocation Timeout (CRL/OCSP) {#slow-page-loads-certificate-revocation-timeout-crlocsp}

**Problem:** The browser, and the Scalar or Swagger UI of the Web API, take **20-30 seconds** to load every page, but `curl` and API calls from PowerShell are fast. The delay is consistent on every request, not just the first.

**Root Cause:** Your certificate includes **CRL (Certificate Revocation List) or OCSP (Online Certificate Status Protocol)** URLs that browsers try to contact before rendering each page. If the IIS server or client workstations cannot reach these URLs (blocked firewall, unreachable CA), browsers wait for the full timeout before proceeding. `curl` is unaffected because it does not check certificate revocation by default.

<div class="mermaid">
flowchart LR
    Br["fa:fa-user Browser"] -->|"1. TLS handshake"| IIS["fa:fa-globe Nodinite IIS site"]
    Br -->|"2. Revocation check"| CA{"CRL or OCSP<br/>URL reachable?"}
    CA -->|"Yes, fast"| OK["fa:fa-check Page renders"]
    CA -->|"No, blocked"| TO["fa:fa-clock 20-30 s timeout<br/>then page renders"]
    IIS -.->|"OCSP stapling: IIS sends<br/>the revocation answer"| Br
    Curl["fa:fa-terminal curl and PowerShell"] -->|"no revocation check"| IIS
    style Br fill:#2678BD
    style Curl fill:#2678BD
    style IIS fill:#3F827B
    style CA fill:#FFD525
    style OK fill:#93d16d
    style TO fill:#c33d34
</div>

*Diagram: browsers (blue) check certificate revocation before they render; when the CRL or OCSP URL (yellow) is blocked, every page waits for the timeout (red). curl and PowerShell skip the check, which is why they stay fast. OCSP stapling lets the IIS site (teal) answer the check itself. The same applies to the [Web Client][], [Web API][], and [Log API][] sites, which bind the certificate set in [Core host Configuration][Portal Core Host Configuration].*

### Where This Issue Is Common

* Let's Encrypt certificates (CRL/OCSP URLs point to `r12.c.lencr.org`, `r13.i.lencr.org`)
* Internal CA certificates where the CRL distribution point is not accessible from the internet or client workstations
* Air-gapped or restricted-network environments

### Diagnose: Check if Your Certificate Has CRL/OCSP URLs

Run this PowerShell script on the IIS server to inspect the certificate and test reachability of revocation endpoints:

```powershell
#Requires -Version 7.0
# Diagnose CRL/OCSP certificate revocation timeout
# Replace the Subject filter with your actual certificate subject/hostname
# Use Cert:\LocalMachine\WebHosting instead if your certificate is stored there

$cert = Get-ChildItem -Path Cert:\LocalMachine\My |
    Where-Object { $_.Subject -match "nodinite\.contoso\.com" } |  # Replace with your hostname
    Sort-Object NotBefore -Descending |
    Select-Object -First 1

if (-not $cert) {
    Write-Host "❌ Certificate not found - check subject name" -ForegroundColor Red
    Write-Host "Available certificates:" -ForegroundColor Yellow
    Get-ChildItem Cert:\LocalMachine\My | Select-Object Subject, Thumbprint, NotAfter
    exit 1
}

Write-Host "=== Certificate Information ===" -ForegroundColor Cyan
Write-Host "Subject    : $($cert.Subject)" -ForegroundColor White
Write-Host "Issuer     : $($cert.Issuer)" -ForegroundColor White
Write-Host "Thumbprint : $($cert.Thumbprint)" -ForegroundColor White
Write-Host "Valid To   : $($cert.NotAfter)" -ForegroundColor White
if ($cert.Issuer -eq $cert.Subject) {
    Write-Host "Type       : Self-signed" -ForegroundColor Green
} else {
    Write-Host "Type       : CA-issued ($($cert.Issuer))" -ForegroundColor Yellow
}

# Check for CRL Distribution Points
Write-Host "`n=== CRL Distribution Points ===" -ForegroundColor Cyan
$crlExt = $cert.Extensions | Where-Object { $_.Oid.FriendlyName -eq "CRL Distribution Points" }
if ($crlExt) {
    Write-Host "❌ CRL URLs found (may cause 20-30s browser timeout if unreachable):" -ForegroundColor Red
    $crlText = $crlExt.Format($false)
    $crlText
    # Extract and test each URL
    @([regex]::Matches($crlText, 'http[^\s]+')) | ForEach-Object {
        $url = $_.Value.TrimEnd(')')
        Write-Host "`nTesting: $url" -ForegroundColor Yellow
        $t = Measure-Command {
            try { Invoke-WebRequest -Uri $url -UseBasicParsing -TimeoutSec 5 -ErrorAction Stop | Out-Null; Write-Host "  ✓ Reachable" -ForegroundColor Green }
            catch { Write-Host "  ❌ UNREACHABLE - THIS CAUSES THE 20-30s TIMEOUT!" -ForegroundColor Red }
        }
        Write-Host "  Response time: $([math]::Round($t.TotalSeconds,1))s" -ForegroundColor $(if ($t.TotalSeconds -lt 3) { "Green" } else { "Red" })
    }
} else {
    Write-Host "✓ No CRL Distribution Points (no revocation URL to time out on)" -ForegroundColor Green
}

# Check for OCSP (Authority Information Access)
Write-Host "`n=== OCSP / Authority Information Access ===" -ForegroundColor Cyan
$aiaExt = $cert.Extensions | Where-Object { $_.Oid.FriendlyName -eq "Authority Information Access" }
if ($aiaExt) {
    Write-Host "❌ OCSP/AIA URLs found (may cause browser timeout if unreachable):" -ForegroundColor Red
    $aiaText = $aiaExt.Format($false)
    $aiaText
    @([regex]::Matches($aiaText, 'http[^\s]+')) | ForEach-Object {
        $url = $_.Value.TrimEnd(')')
        Write-Host "`nTesting: $url" -ForegroundColor Yellow
        $t = Measure-Command {
            try { Invoke-WebRequest -Uri $url -UseBasicParsing -TimeoutSec 5 -ErrorAction Stop | Out-Null; Write-Host "  ✓ Reachable" -ForegroundColor Green }
            catch { Write-Host "  ❌ UNREACHABLE - THIS CAUSES THE 20-30s TIMEOUT!" -ForegroundColor Red }
        }
        Write-Host "  Response time: $([math]::Round($t.TotalSeconds,1))s" -ForegroundColor $(if ($t.TotalSeconds -lt 3) { "Green" } else { "Red" })
    }
} else {
    Write-Host "✓ No OCSP endpoints (no revocation URL to time out on)" -ForegroundColor Green
}

# Summary
Write-Host "`n=== Diagnosis ===" -ForegroundColor Cyan
if ($crlExt -or $aiaExt) {
    Write-Host "Certificate has revocation URLs. If any show UNREACHABLE above:" -ForegroundColor Yellow
    Write-Host "  • curl is fast  → curl does not check CRL/OCSP by default" -ForegroundColor White
    Write-Host "  • Browsers slow → browsers validate revocation on every page load" -ForegroundColor White
    Write-Host "  • Swagger slow  → Swagger uses the browser engine (same behaviour)" -ForegroundColor White
} else {
    Write-Host "✓ Certificate is clean - no revocation URLs. Slow loads have a different cause." -ForegroundColor Green
}
```

### Solutions

#### Option 1: Enable OCSP Stapling on IIS (Recommended)

OCSP stapling makes the IIS server fetch and cache the revocation response, serving it directly to browsers so they never need to contact the CA's OCSP server themselves. This requires the IIS server to be able to reach the CRL/OCSP endpoints (ensure outbound HTTP/port 80 is allowed from IIS to the CA servers).

```powershell
# Enable OCSP stapling (IIS 10 / Windows Server 2016+)
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL" `
    -Name "EnableOcspStaplingForSni" -Value 1 -PropertyType DWord -Force

# Apply by restarting IIS (faster than restarting HTTP.sys)
iisreset /noforce

# Verify stapling is active using curl
curl.exe -v https://nodinite.contoso.com 2>&1 | Select-String "OCSP"
# Look for: OCSP Response Status: successful
```

#### Option 2: Use a Self-Signed Certificate Without Revocation URLs

`New-SelfSignedCertificate` in PowerShell does not embed CRL/OCSP URLs by default, making it ideal for development and isolated environments. [Development Certificates][] has the full script, trust configuration, and backup steps:

```powershell
# Generate clean self-signed certificate (no CRL/OCSP URLs)
$cert = New-SelfSignedCertificate `
    -DnsName "nodinite.contoso.com" `       # Replace with your hostname(s)
    -CertStoreLocation "Cert:\LocalMachine\My" `
    -FriendlyName "Nodinite HTTPS" `
    -NotAfter (Get-Date).AddYears(2) `
    -KeyAlgorithm RSA -KeyLength 2048 `
    -HashAlgorithm SHA256 `
    -Provider "Microsoft RSA SChannel Cryptographic Provider"

Write-Host "Thumbprint: $($cert.Thumbprint)" -ForegroundColor Green

# Add to Trusted Root so browsers trust it
$store = [System.Security.Cryptography.X509Certificates.X509Store]::new("Root","LocalMachine")
$store.Open("ReadWrite"); $store.Add($cert); $store.Close()
Write-Host "Certificate trusted in Local Machine Root store" -ForegroundColor Green
# Run the Nodinite update package so the installer binds this certificate
```

>[!TIP]
>After generating the certificate, the :Nodinite: installer finds it by the **Certificate subject** you set in the Portal ([Step 4: Servers → Core host Configuration][Portal Core Host Configuration]). Make sure the subject or a SAN matches the host name, then run the update package again ([Update Nodinite v7][Updating Nodinite v7]) so IIS binds the new certificate. You only need to change the Portal if you pinned a **Certificate thumbprint**; in that case, enter the new thumbprint or clear the field.

#### Option 3: Open Outbound Firewall Access to CA Revocation Servers

If you must use a CA-issued certificate (e.g., Let's Encrypt or internal PKI), ensure outbound HTTP (port 80) is allowed from the IIS server to the CRL/OCSP hostnames listed in the diagnostic script output above.

```powershell
# Example: allow outbound HTTP for Let's Encrypt CRL/OCSP
New-NetFirewallRule -DisplayName "Allow Let's Encrypt CRL/OCSP" `
    -Direction Outbound -Protocol TCP -RemotePort 80,443 `
    -Action Allow -Enabled True -Profile Any
```

Then verify connectivity and re-run the diagnostic script to confirm all revocation URLs are reachable.

>[!NOTE]
>**Why does curl not show this problem?** curl does not check certificate revocation by default. Use `--ssl-revoke-best-effort` with curl to simulate browser behaviour. Downloads in browsers are also typically unaffected — revocation checks only apply to full HTTPS page navigations (not file downloads or API calls from non-browser clients).

---

## :fa-lock: 401 Unauthorized When Accessing via Hostname Locally {#401-unauthorized-when-accessing-via-hostname-locally}

**Problem:** CLI deployment validation checks or local browser access via FQDN (e.g., `https://nodinitedev28.test.contoso.com`) returns **401 Unauthorized** when accessing from the IIS server itself, but works from remote machines.

**Root Cause:** Windows **loopback security check** blocks local access to IIS via hostname when using [Windows Authentication][]. By default, Windows treats local requests using a hostname (not `localhost` or machine name) as potential security risks.

### When This Issue Occurs

The loopback security check is **enabled by default on ALL Windows installations**. Most :Nodinite: deployments never encounter this because:

* **Remote access pattern** — Users access :Nodinite: from workstations, not from the IIS server itself
* **localhost/IP bypass** — The check doesn't apply to `https://localhost` or `https://127.0.0.1`
* **NetBIOS tolerance** — Accessing via server name (e.g., `https://SERVERNAME`) may work
* **Remote installation** — Setup scripts typically run from an admin workstation, not on the IIS server

All of these conditions must be present simultaneously for the issue to appear:

1. ✅ Script or browser running **locally on the IIS server** (not remote)
2. ✅ Accessing via **FQDN** (e.g., `nodinitedev28.test.contoso.com`) not localhost/IP/machine name
3. ✅ **Windows integrated authentication** enabled
4. ✅ Typically during installation when PowerShell verifies HTTPS bindings immediately after configuration

### Solution 1: Disable Loopback Check (Quick Fix — Less Secure)

Run this PowerShell command as Administrator on the IIS server:

```powershell
New-ItemProperty HKLM:\System\CurrentControlSet\Control\Lsa -Name "DisableLoopbackCheck" -Value "1" -PropertyType dword
```

**Restart required:** No — takes effect immediately for new connections.

>[!WARNING]
>**Security Impact:** Disabling loopback check applies to **all hostnames** on the server, reducing security. Use Solution 2 for production environments.

### Solution 2: Whitelist Specific Hostnames (Recommended — More Secure)

>[!NOTE]
>**Already have BackConnectionHostNames configured?** Many enterprise environments already use this registry key for other applications (SharePoint, SQL Server Reporting Services, custom web apps). The script below safely adds your :Nodinite: hostname to existing entries **without creating duplicates**.

Whitelist only the specific hostname(s) you need:

```powershell
# Safe script - prevents duplicates
$regPath = "HKLM:\System\CurrentControlSet\Control\Lsa\MSV1_0"
$newHostname = "nodinitedev28.test.contoso.com"  # Replace with your FQDN

# Create registry path if it doesn't exist
if (-not (Test-Path $regPath)) {
    New-Item -Path $regPath -Force | Out-Null
}

# Get existing values (or empty array if not exists)
$existingValues = @()
try {
    $existingValues = (Get-ItemProperty -Path $regPath -Name "BackConnectionHostNames" -ErrorAction Stop).BackConnectionHostNames
    Write-Host "Found existing BackConnectionHostNames: $($existingValues -join ', ')" -ForegroundColor Yellow
} catch {
    Write-Host "BackConnectionHostNames doesn't exist yet - will create it" -ForegroundColor Yellow
}

# Add new hostname only if not already present
if ($existingValues -notcontains $newHostname) {
    $updatedValues = $existingValues + $newHostname
    Set-ItemProperty -Path $regPath -Name "BackConnectionHostNames" -Value $updatedValues -Force
    Write-Host "✓ Added $newHostname to BackConnectionHostNames" -ForegroundColor Green
} else {
    Write-Host "✓ $newHostname already exists in BackConnectionHostNames - no changes needed" -ForegroundColor Cyan
}

# Display final result
Write-Host "`nCurrent BackConnectionHostNames:" -ForegroundColor Yellow
(Get-ItemProperty -Path $regPath -Name "BackConnectionHostNames").BackConnectionHostNames | ForEach-Object { Write-Host "  - $_" -ForegroundColor White }
```

**Restart required:** No — takes effect immediately for new connections.

If you previously ran a script that created duplicate entries, clean them up first:

```powershell
# Remove duplicates from BackConnectionHostNames
$regPath = "HKLM:\System\CurrentControlSet\Control\Lsa\MSV1_0"

# Get current values
$currentValues = (Get-ItemProperty -Path $regPath -Name "BackConnectionHostNames").BackConnectionHostNames

# Remove duplicates while preserving order
$uniqueValues = $currentValues | Select-Object -Unique

# Update registry with unique values only
Set-ItemProperty -Path $regPath -Name "BackConnectionHostNames" -Value $uniqueValues

Write-Host "✓ Cleaned up duplicates" -ForegroundColor Green
Write-Host "`nCurrent BackConnectionHostNames:" -ForegroundColor Yellow
(Get-ItemProperty -Path $regPath -Name "BackConnectionHostNames").BackConnectionHostNames | ForEach-Object { Write-Host "  - $_" -ForegroundColor White }
```

### Verification

1. Close all browser windows
2. Open new browser and navigate to `https://nodinitedev28.test.contoso.com` (your FQDN)
3. You should now successfully authenticate and access :Nodinite: Web Client

>[!TIP]
>For production environments, use **Solution 2** (BackConnectionHostNames) to limit the security exception to only your :Nodinite: hostname.

* [Microsoft: Error when you access a server locally by its FQDN or CNAME alias (loopback check)](https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/accessing-server-locally-with-fqdn-cname-alias-denied)<sup>:fa-arrow-up-right-from-square:</sup>

---

## :fa-server: Certificate Warning After Machine Rename or Clone {#certificate-warning-after-machine-rename-or-clone}

**Problem:** Browser shows `NET::ERR_CERT_COMMON_NAME_INVALID` even though the certificate appears correct and is properly bound in IIS. The server was either **renamed** after the initial installation or was **provisioned from a VM image** (clone, template, snapshot restore) that already had a hostname baked in.

**Root Cause:** The certificate was issued for the original machine name. After a rename or clone, the hostname users browse to no longer matches any SAN entry in the certificate. The certificate is cryptographically valid but covers the wrong name.

A secondary symptom is finding **two different hostnames** in the certificate SAN — one being the old/image name, one being the current machine name — because the certificate was re-issued to patch the mismatch without removing the legacy entry.

### How to Confirm

Compare what is in the certificate SAN against what users actually browse to:

```powershell
# Show all SAN entries on the bound certificate
$cert = Get-ChildItem Cert:\LocalMachine\My | Where-Object { $_.Subject -match "nodinite" }  # replace with your certificate subject
$cert.Extensions | Where-Object { $_.Oid.FriendlyName -eq "Subject Alternative Name" } | ForEach-Object { $_.Format($true) }
```

If the hostname users browse to is **not listed**, the certificate must be re-issued to include it.

### Solution: Re-Issue the Certificate with Both Names in the SAN

Request a new certificate from your internal CA that includes **all current DNS names** the server is accessed by:

| SAN entry | When to include |
|---|---|
| `nodinite.contoso.com` (DNS alias / CNAME) | ✅ Required if users browse via an alias — this is the **recommended** production pattern |
| `nodinite-appsrv-001.contoso.com` (machine FQDN) | ✅ Recommended — needed for direct server access, monitoring agents, and admin tools |
| `appsrv-old.contoso.com` (old name / image name) | ⚠️ Optional — include only while systems still reference the old name; remove when safe |
| Short machine name (e.g. `appsrv-old`) | Only if users or agents connect using the NetBIOS name without domain suffix |

>[!INFO]
>Multiple SAN entries on a single certificate are completely normal and have no negative effects. A browser only requires that the hostname it is connecting to appears **somewhere** in the SAN list.

>[!TIP]
>**DNS alias (CNAME) is the recommended production pattern.** Create a DNS CNAME record `nodinite.contoso.com → nodinite-appsrv-001.contoso.com` and register :Nodinite: in the Portal using the alias as the hostname. Users bookmark the friendly alias; if the server is ever renamed, rebuilt, or migrated, you update only the DNS record — not the certificate, not the Portal config, not user bookmarks. The certificate SAN must include the alias name, not just the machine FQDN.

**For an internal AD CS environment**, re-request using your organisation's web server certificate template and include all required DNS names in the Subject Alternative Name field of the certificate request.

#### After Re-Issuing

1. Import the new certificate into `Cert:\LocalMachine\WebHosting` or `Cert:\LocalMachine\My` on the IIS server
2. Check that the **Certificate subject** in the :Nodinite: Portal ([Step 4: Servers → Core host Configuration][Portal Core Host Configuration]) matches the new certificate's subject or a SAN. Change the Portal only if you pinned a **Certificate thumbprint**: enter the new thumbprint, or clear it to match by subject
3. Run the update package again ([Update Nodinite v7][Updating Nodinite v7]); the installer finds the valid certificate and updates all service bindings

>[!IMPORTANT]
>**Also check for LDAP-only CRL/OCSP** — machines provisioned from internal PKI images often have certificates with only `ldap://` revocation URLs, which browsers cannot follow. Run the [CRL/OCSP diagnostic script](#slow-page-loads-certificate-revocation-timeout-crlocsp) on the new certificate before considering the issue resolved. Re-issuing from the CA is also the right time to request an HTTP CDP be added to the template.

---

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

* :fa-shield-halved: [How to perform hardening][] — Main HTTPS/TLS configuration guide for :Nodinite: v7  
* :fa-server: [Step 4: Servers → Core host Configuration][Portal Core Host Configuration] — Certificate subject and host name  
* :fa-arrow-turn-up: [Update Nodinite v7][Updating Nodinite v7] — Rerun the package so the CLI rebinds the certificate  

## :fa-link-horizontal: Related Topics

* :fa-server: [IIS Troubleshooting Overview][IIS Overview]  
* :fa-certificate: [Development Certificates][] — Self-signed TLS for development/test environments  
* :fa-user-secret: [IIS Authentication settings][]  
* :fa-id-badge: [HTTP SPNs for IIS][IIS HTTP SPN]  
* :fa-shield-check: [HTTP Security Headers][]  
* :fa-book: [Install Nodinite v7][]  

[Core Services]:{ndr}/Core%20Services/Overview.md
[Development Certificates]:{ndr}/Install%20and%20Update/Troubleshooting/IIS/Hardening/Development%20Certificates.md
[How to perform hardening]:{ndr}/Install%20and%20Update/Troubleshooting/IIS/How%20to%20perform%20hardening%20on%20your%20Nodinite%20installation.md
[HTTP Security Headers]:{ndr}/Install%20and%20Update/Troubleshooting/IIS/Hardening/HTTP%20Security%20Headers.md
[IIS Authentication settings]:{ndr}/Install%20and%20Update/Troubleshooting/IIS/IIS%20Authentication%20settings.md
[IIS HTTP SPN]:{ndr}/Install%20and%20Update/Troubleshooting/IIS/HTTP%20SPN%20for%20IIS.md
[IIS Overview]:{ndr}/Install%20and%20Update/Troubleshooting/IIS/Overview.md
[Install Nodinite v7]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7.md
[Log API]:{ndr}/Core%20Services/Log%20API/Overview.md
[Portal Core Host Configuration]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/04%20-%20Servers.md#core-host-tls
[Updating Nodinite v7]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Updating%20Nodinite%20v7.md
[Web API]:{ndr}/Core%20Services/Web%20API/Overview.md
[Web Client]:{ndr}/Core%20Services/Web%20Client/Overview.md
[Windows Authentication]:{ndr}/Install%20and%20Update/Troubleshooting/IIS/IIS%20Authentication%20settings.md
[Windows Server]:{ndr}/Logging%20and%20Monitoring/Windows%20Server/Features/Windows%20Server.md