TLS/HTTPS Troubleshooting for Nodinite v7
Section titled “TLS/HTTPS Troubleshooting for Nodinite v7”Common issues encountered after enabling TLS/HTTPS on Nodinite v7 installations. On Windows Server, each Nodinite Core Service (Web Client, Web API, Log API, and the others) is its own IIS 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.
Quick Navigation
Section titled “ Quick Navigation”- Slow Page Loads: CRL/OCSP Timeout
- 401 Unauthorized When Accessing via Hostname Locally
- Certificate Warning After Machine Rename or Clone
Slow Page Loads: Certificate Revocation Timeout (CRL/OCSP)
Section titled “ Slow Page Loads: Certificate Revocation Timeout (CRL/OCSP)”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.
URL reachable?"} CA -->|"Yes, fast"| OK["fa:fa-check Page renders"] CA -->|"No, blocked"| TO["fa:fa-clock 20-30 s timeout
then page renders"] IIS -.->|"OCSP stapling: IIS sends
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
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.
Where This Issue Is Common
Section titled “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
Section titled “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:
#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 CyanWrite-Host "Subject : $($cert.Subject)" -ForegroundColor WhiteWrite-Host "Issuer : $($cert.Issuer)" -ForegroundColor WhiteWrite-Host "Thumbprint : $($cert.Thumbprint)" -ForegroundColor WhiteWrite-Host "Valid To : $($cert.NotAfter)" -ForegroundColor Whiteif ($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 PointsWrite-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}
# SummaryWrite-Host "`n=== Diagnosis ===" -ForegroundColor Cyanif ($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
Section titled “Solutions”Option 1: Enable OCSP Stapling on IIS (Recommended)
Section titled “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).
# 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 curlcurl.exe -v https://nodinite.contoso.com 2>&1 | Select-String "OCSP"# Look for: OCSP Response Status: successfulOption 2: Use a Self-Signed Certificate Without Revocation URLs
Section titled “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:
# 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 certificateOption 3: Open Outbound Firewall Access to CA Revocation Servers
Section titled “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.
# Example: allow outbound HTTP for Let's Encrypt CRL/OCSPNew-NetFirewallRule -DisplayName "Allow Let's Encrypt CRL/OCSP" ` -Direction Outbound -Protocol TCP -RemotePort 80,443 ` -Action Allow -Enabled True -Profile AnyThen verify connectivity and re-run the diagnostic script to confirm all revocation URLs are reachable.
401 Unauthorized When Accessing via Hostname Locally
Section titled “ 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
Section titled “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://localhostorhttps://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:
- ✅ Script or browser running locally on the IIS server (not remote)
- ✅ Accessing via FQDN (e.g.,
nodinitedev28.test.contoso.com) not localhost/IP/machine name - ✅ Windows integrated authentication enabled
- ✅ Typically during installation when PowerShell verifies HTTPS bindings immediately after configuration
Solution 1: Disable Loopback Check (Quick Fix — Less Secure)
Section titled “Solution 1: Disable Loopback Check (Quick Fix — Less Secure)”Run this PowerShell command as Administrator on the IIS server:
New-ItemProperty HKLM:\System\CurrentControlSet\Control\Lsa -Name "DisableLoopbackCheck" -Value "1" -PropertyType dwordRestart required: No — takes effect immediately for new connections.
Solution 2: Whitelist Specific Hostnames (Recommended — More Secure)
Section titled “Solution 2: Whitelist Specific Hostnames (Recommended — More Secure)”Whitelist only the specific hostname(s) you need:
# 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 existif (-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 presentif ($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 resultWrite-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:
# 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 onlySet-ItemProperty -Path $regPath -Name "BackConnectionHostNames" -Value $uniqueValues
Write-Host "✓ Cleaned up duplicates" -ForegroundColor GreenWrite-Host "`nCurrent BackConnectionHostNames:" -ForegroundColor Yellow(Get-ItemProperty -Path $regPath -Name "BackConnectionHostNames").BackConnectionHostNames | ForEach-Object { Write-Host " - $_" -ForegroundColor White }Verification
Section titled “Verification”- Close all browser windows
- Open new browser and navigate to
https://nodinitedev28.test.contoso.com(your FQDN) - You should now successfully authenticate and access Nodinite Web Client
Certificate Warning After Machine Rename or Clone
Section titled “ 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
Section titled “How to Confirm”Compare what is in the certificate SAN against what users actually browse to:
# 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
Section titled “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 |
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
Section titled “After Re-Issuing”- Import the new certificate into
Cert:\LocalMachine\WebHostingorCert:\LocalMachine\Myon the IIS server - Check that the Certificate subject in the Nodinite Portal (Step 4: Servers → 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
- Run the update package again (Update Nodinite v7); the installer finds the valid certificate and updates all service bindings
Next Steps
Section titled “ Next Steps”- How to perform hardening — Main HTTPS/TLS configuration guide for Nodinite v7
- Step 4: Servers → Core host Configuration — Certificate subject and host name
- Update Nodinite v7 — Rerun the package so the CLI rebinds the certificate
Related Topics
Section titled “ Related Topics”- IIS Troubleshooting Overview
- Development Certificates — Self-signed TLS for development/test environments
- IIS Authentication settings
- HTTP SPNs for IIS
- HTTP Security Headers
- Install Nodinite v7