Development Certificates for Nodinite Testing
Section titled “Development Certificates for Nodinite Testing”For development and test environments that need HTTPS without a production Certificate Authority (CA), PowerShell's New-SelfSignedCertificate can generate self-signed certificates and configure browser trust automatically.
Understanding the Development Certificate Flow
Section titled “ Understanding the Development Certificate Flow”A self-signed certificate is its own Certificate Authority. You create it in the server's Personal store, copy the public part to Trusted Root so browsers trust it, and let the Nodinite CLI find it by subject and bind it to the Core Services IIS web sites.
Personal store"] My -->|"2. Export .cer, import"| Root["fa:fa-shield-halved LocalMachine Root
Trusted Root"] My -->|"3. Back up .pfx"| Pfx["fa:fa-box-archive PFX backup"] CLI["fa:fa-gears Nodinite CLI
install or update"] -->|"4. Find by Certificate subject"| My CLI -->|"5. Bind"| Sites["fa:fa-globe Core Services
IIS web sites"] Root -.->|"6. Trust on each client"| Clients["fa:fa-user Browsers"] style PS fill:#E47528 style My fill:#3F827B style Root fill:#93d16d style Pfx fill:#FFD525 style CLI fill:#E47528 style Sites fill:#2678BD style Clients fill:#2678BD
Diagram: the certificate (teal) is created by PowerShell, trusted through the Root store (green), backed up as a PFX (yellow), and bound by the CLI (orange) to the Web Client, Web API, and the other Core Services sites (blue), using the Certificate subject from Step 4: Servers → Core host Configuration.
Generate Self-Signed Certificate (PowerShell)
Section titled “ Generate Self-Signed Certificate (PowerShell)”Simple Example (Minimal Configuration)
Section titled “Simple Example (Minimal Configuration)”# Localhost certificate (minimal configuration)New-SelfSignedCertificate ` -DnsName "localhost" ` -CertStoreLocation "cert:\LocalMachine\My" ` -NotAfter (Get-Date).AddYears(2)Production-Quality Development Certificate (Recommended)
Section titled “Production-Quality Development Certificate (Recommended)”# Configure your DNS name(s)$dnsNames = @("nodinite.dev.local", "nodinite")
# Create certificate with security best practices$cert = New-SelfSignedCertificate ` -DnsName $dnsNames ` -Subject "CN=$($dnsNames[0])" ` -FriendlyName "Nodinite Dev SSL ($($dnsNames[0]))" ` -KeyAlgorithm RSA -KeyLength 2048 ` -HashAlgorithm SHA256 ` -KeyExportPolicy Exportable ` -NotAfter (Get-Date).AddYears(2) ` -CertStoreLocation "Cert:\LocalMachine\My"
# Display certificate details$cert|Format-List Subject, DnsNameList, Thumbprint, NotAfter
# Export certificate for backup and trustNew-Item -ItemType Directory -Force -Path C:\certs|Out-Null$pfxPassword = Read-Host -AsSecureString -Prompt "Enter PFX password (for backup)"Export-PfxCertificate -Cert $cert -FilePath "C:\certs\$($dnsNames[0]).pfx" -Password $pfxPassword|Out-NullExport-Certificate -Cert $cert -FilePath "C:\certs\$($dnsNames[0]).cer"|Out-NullImport-Certificate -FilePath "C:\certs\$($dnsNames[0]).cer" -CertStoreLocation Cert:\LocalMachine\Root|Out-Null
Write-Host "Certificate created successfully!" -ForegroundColor GreenWrite-Host "Thumbprint: $($cert.Thumbprint)" -ForegroundColor CyanWrite-Host "Files created in C:\certs\" -ForegroundColor YellowWhat This Script Does
Section titled “What This Script Does”- Creates certificate with SHA-256 (secure), 2048-bit RSA key
- Sets Subject Alternative Names (SANs) — Certificate valid for all specified DNS names
- Exports to
.pfxformat — Includes private key, password-protected (for backup/migration) - Exports to
.cerformat — Public certificate only (for distribution to clients) - Automatically trusts certificate — Imports
.certo Trusted Root Certification Authorities - Displays subject and thumbprint — Use the subject (or a SAN) as the Certificate subject in the Nodinite Portal; you need the thumbprint only to pin this exact certificate
Certificate Storage Locations
Section titled “Certificate Storage Locations”- Personal Store (
cert:\LocalMachine\My) — Used by IIS for HTTPS binding (requires private key). The Nodinite installer also searchescert:\LocalMachine\WebHosting - Trusted Root Certification Authorities (
cert:\LocalMachine\Root) — Same certificate copied here so browsers trust it
Trust Self-Signed Certificate (Manual Method)
Section titled “ Trust Self-Signed Certificate (Manual Method)”If you used the minimal certificate example (not the recommended script), manually copy the certificate to Trusted Root:
Option 1: Using PowerShell
Section titled “Option 1: Using PowerShell”# Get the certificate thumbprint (from script output or find it)$certificateThumbprint = "YOUR_CERTIFICATE_THUMBPRINT_HERE"
# Get certificate from Personal store$certificate = Get-ChildItem -Path "Cert:\LocalMachine\My\$certificateThumbprint"
# Export to fileExport-Certificate -Cert $certificate -FilePath "C:\Temp\nodinite-dev.cer"
# Import to Trusted Root Certification AuthoritiesImport-Certificate -FilePath "C:\Temp\nodinite-dev.cer" ` -CertStoreLocation "Cert:\LocalMachine\Root"Option 2: Using Certificate Manager (GUI)
Section titled “Option 2: Using Certificate Manager (GUI)”- Press
Win+R, typecertlm.msc, press Enter - Navigate to Personal → Certificates
- Find your certificate (e.g.,
CN=nodinite.dev.local) - Right-click → Copy
- Navigate to Trusted Root Certification Authorities → Certificates
- Right-click in the right pane → Paste
Certificate Backup
Section titled “Certificate Backup”The .pfx file contains your private key (password-protected). Store it securely — you will need it if you:
- Rebuild your server
- Move the certificate to another machine
- Recover from a disaster
Next Steps
Section titled “ Next Steps”- How to perform hardening — Configure HTTPS/TLS on Nodinite v7
- Step 4: Servers → Core host Configuration — Enter the certificate subject
Related Topics
Section titled “ Related Topics”- IIS Troubleshooting Overview
- TLS Troubleshooting — CRL/OCSP slowness and 401 loopback errors
- Secret Management
- Update Nodinite v7
- How to perform hardening v6 — v6 archive (no longer supported)