---
title: "Nodinite Development Certificates: Generate Self-Signed TLS for IIS Testing"
description: Generate and trust self-signed SSL/TLS certificates for Nodinite development and test environments. PowerShell scripts for simple and production-quality certificates, manual trust configuration, and certificate backup.
---

# 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.

<aside aria-label="Warning" class="nodinite-note nodinite-note--warning">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-triangle-exclamation"></i> Warning</p>
<div class="nodinite-note__content"><p><strong>Self-signed certificates are for development and testing only.</strong> Do not use in production. Browsers show security warnings unless the certificate is manually trusted on each client machine.</p></div>
</aside>

## <i class="fal fa-diagram-project" aria-hidden="true"></i> 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 <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> CLI find it by subject and bind it to the Core Services IIS web sites.

<div class="mermaid">
flowchart LR
    PS["fa:fa-terminal New-SelfSignedCertificate"] -->|"1. Create with private key"| My["fa:fa-certificate LocalMachine My<br/>Personal store"]
    My -->|"2. Export .cer, import"| Root["fa:fa-shield-halved LocalMachine Root<br/>Trusted Root"]
    My -->|"3. Back up .pfx"| Pfx["fa:fa-box-archive PFX backup"]
    CLI["fa:fa-gears Nodinite CLI<br/>install or update"] -->|"4. Find by Certificate subject"| My
    CLI -->|"5. Bind"| Sites["fa:fa-globe Core Services<br/>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
</div>

*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][Portal Core Host Configuration].*

## <i class="fal fa-terminal" aria-hidden="true"></i> Generate Self-Signed Certificate (PowerShell)

### Simple Example (Minimal Configuration)

```powershell
# Localhost certificate (minimal configuration)
New-SelfSignedCertificate `
    -DnsName "localhost" `
    -CertStoreLocation "cert:\LocalMachine\My" `
    -NotAfter (Get-Date).AddYears(2)
```

### Production-Quality Development Certificate (Recommended)

```powershell
# 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 trust
New-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-Null
Export-Certificate -Cert $cert -FilePath "C:\certs\$($dnsNames[0]).cer"|Out-Null
Import-Certificate -FilePath "C:\certs\$($dnsNames[0]).cer" -CertStoreLocation Cert:\LocalMachine\Root|Out-Null

Write-Host "Certificate created successfully!" -ForegroundColor Green
Write-Host "Thumbprint: $($cert.Thumbprint)" -ForegroundColor Cyan
Write-Host "Files created in C:\certs\" -ForegroundColor Yellow
```

#### What This Script Does

1. **Creates certificate** with SHA-256 (secure), 2048-bit RSA key
2. **Sets Subject Alternative Names (SANs)** — Certificate valid for all specified DNS names
3. **Exports to `.pfx` format** — Includes private key, password-protected (for backup/migration)
4. **Exports to `.cer` format** — Public certificate only (for distribution to clients)
5. **Automatically trusts certificate** — Imports `.cer` to Trusted Root Certification Authorities
6. **Displays subject and thumbprint** — Use the subject (or a SAN) as the **Certificate subject** in the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> Portal; you need the thumbprint only to pin this exact certificate

#### Certificate Storage Locations

1. **Personal Store** (`cert:\LocalMachine\My`) — Used by [IIS][IIS Overview] for HTTPS binding (requires private key). The <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> installer also searches `cert:\LocalMachine\WebHosting`
2. **Trusted Root Certification Authorities** (`cert:\LocalMachine\Root`) — Same certificate copied here so browsers trust it

<aside aria-label="Important" class="nodinite-note nodinite-note--important">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-message-exclamation"></i> Important</p>
<div class="nodinite-note__content"><p>The recommended PowerShell script above automatically handles both locations. If you used the minimal example, follow the manual trust steps below.</p></div>
</aside>

<aside aria-label="Tip" class="nodinite-note nodinite-note--tip">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-lightbulb"></i> Tip</p>
<div class="nodinite-note__content"><p><strong>Nodinite v7:</strong> After generating the certificate, the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> installer finds it by the <strong>Certificate subject</strong> you set in the Portal (<a href="https://docs.nodinite.com/install-and-update/getting-started/version-7/install-nodinite-v7-steps/04-servers/#core-host-tls">Step 4: Servers → Core host Configuration</a>). Make sure the subject or a SAN matches the host name, then run the update package again (<a href="https://docs.nodinite.com/install-and-update/getting-started/version-7/updating-nodinite-v7/">Update Nodinite v7</a>) so IIS binds the new certificate. You only need to change the Portal if you pinned a <strong>Certificate thumbprint</strong>; in that case, enter the new thumbprint or clear the field.</p></div>
</aside>

## <i class="fal fa-shield-check" aria-hidden="true"></i> 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

```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 file
Export-Certificate -Cert $certificate -FilePath "C:\Temp\nodinite-dev.cer"

# Import to Trusted Root Certification Authorities
Import-Certificate -FilePath "C:\Temp\nodinite-dev.cer" `
    -CertStoreLocation "Cert:\LocalMachine\Root"
```

### Option 2: Using Certificate Manager (GUI)

1. Press `Win+R`, type `certlm.msc`, press Enter
2. Navigate to **Personal → Certificates**
3. Find your certificate (e.g., `CN=nodinite.dev.local`)
4. Right-click → **Copy**
5. Navigate to **Trusted Root Certification Authorities → Certificates**
6. Right-click in the right pane → **Paste**

<aside aria-label="Tip" class="nodinite-note nodinite-note--tip">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-lightbulb"></i> Tip</p>
<div class="nodinite-note__content"><p><strong>Why copy to Trusted Root?</strong> Self-signed certificates act as their own Certificate Authority. Browsers check the Trusted Root store to determine if they should trust a certificate. Without this step, browsers show "Your connection is not private" warnings.</p></div>
</aside>

### 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

---

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* <i class="fal fa-shield-halved" aria-hidden="true"></i> [How to perform hardening][] — Configure HTTPS/TLS on <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> v7  
* <i class="fal fa-server" aria-hidden="true"></i> [Step 4: Servers → Core host Configuration][Portal Core Host Configuration] — Enter the certificate subject  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* <i class="fal fa-server" aria-hidden="true"></i> [IIS Troubleshooting Overview][IIS Overview]  
* <i class="fal fa-triangle-exclamation" aria-hidden="true"></i> [TLS Troubleshooting][] — CRL/OCSP slowness and 401 loopback errors  
* <i class="fal fa-shield-halved" aria-hidden="true"></i> [Secret Management][]  
* <i class="fal fa-arrow-turn-up" aria-hidden="true"></i> [Update Nodinite v7][Updating Nodinite v7]  
* <i class="fal fa-6" aria-hidden="true"></i> [How to perform hardening v6][] — v6 archive (no longer supported)  

[Core Services]:https://docs.nodinite.com/core-services/overview/
[How to perform hardening]:https://docs.nodinite.com/install-and-update/troubleshooting/iis/how-to-perform-hardening-on-your-nodinite-installation/
[How to perform hardening v6]:https://docs.nodinite.com/install-and-update/troubleshooting/iis/how-to-perform-hardening-on-your-nodinite-v6-installation/
[IIS Overview]:https://docs.nodinite.com/install-and-update/troubleshooting/iis/overview/
[Portal Core Host Configuration]:https://docs.nodinite.com/install-and-update/getting-started/version-7/install-nodinite-v7-steps/04-servers/#core-host-tls
[Secret Management]:https://docs.nodinite.com/install-and-update/troubleshooting/secret-managment/
[TLS Troubleshooting]:https://docs.nodinite.com/install-and-update/troubleshooting/iis/hardening/tls-troubleshooting/
[Updating Nodinite v7]:https://docs.nodinite.com/install-and-update/getting-started/version-7/updating-nodinite-v7/
[Web API]:https://docs.nodinite.com/core-services/web-api/overview/
[Web Client]:https://docs.nodinite.com/core-services/web-client/overview/