local.dev
Generate and manage SSL certificates for local HTTPS.
Overview
local.dev provides certificate management for secure local development.
Certificate Types
Self-Signed
For quick local testing:
# Generated automatically for *.local.testLocal CA
Create a trusted local Certificate Authority:
- Generate root CA
- Install in system trust store
- Generate certificates signed by CA
Let's Encrypt (Production)
For staging/production environments.
Generating Certificates
Via Dashboard
- Navigate to Local → Certificates
- Click Generate Certificate
- Enter domain name
- Download certificate files
Via CLI
# Using mkcert (recommended)
mkcert -install
mkcert "*.local.test" localhost 127.0.0.1Installing Certificates
macOS
# Add to Keychain
sudo security add-trusted-cert -d -r trustRoot \
-k /Library/Keychains/System.keychain \
local-ca.crtLinux
# Copy to trust store
sudo cp local-ca.crt /usr/local/share/ca-certificates/
sudo update-ca-certificatesWindows
# Import to certificate store
Import-Certificate -FilePath local-ca.crt `
-CertStoreLocation Cert:\LocalMachine\RootUsing with the Proxy
Configure the reverse proxy to use your certificates:
tls:
certificates:
- certFile: /certs/local.test.crt
keyFile: /certs/local.test.keyTroubleshooting
Browser Warnings
- Ensure root CA is installed
- Check certificate validity
- Clear browser cache
Certificate Expired
- Generate new certificate
- Restart services
- Clear browser cache