- Add Let's Encrypt support in setup scripts with certbot auto-install (winget/pip/python -m fallbacks) - Separate VM External IP and Host External IP prompts during setup - Firewall rule creation only prompts when DuneDashboard rule doesn't exist - HTTP redirect server tries 0.0.0.0:80 first, falls back to 127.0.0.1:80 - Cert monitor detects LE certs and runs certbot renew instead of local CA regeneration - Add ssl_domain and ssl_email settings - Add install-ca-cert.bat and clean-ca-certs.bat utilities for Windows CA management - Update README with setup flow details, LE docs, and firewall notes
34 lines
845 B
Batchfile
34 lines
845 B
Batchfile
@echo off
|
|
REM Install Dune Dashboard CA certificate into Windows Trusted Root CA store
|
|
REM Must be run as Administrator
|
|
|
|
setlocal
|
|
set CERT_PATH=%~dp0ssl\ca.pem
|
|
|
|
if not exist "%CERT_PATH%" (
|
|
echo ERROR: CA certificate not found at %CERT_PATH%
|
|
echo Run setup.bat first to generate the CA certificate.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
echo Installing Dune Dashboard CA certificate...
|
|
echo.
|
|
|
|
certutil -addstore -f "Root" "%CERT_PATH%"
|
|
|
|
if %errorlevel% equ 0 (
|
|
echo.
|
|
echo SUCCESS: CA certificate installed to Trusted Root Certification Authorities.
|
|
echo Browser warnings for https://localhost:5050 should now be gone.
|
|
echo.
|
|
echo Restart your browser for the change to take effect.
|
|
) else (
|
|
echo.
|
|
echo FAILED: Could not install certificate.
|
|
echo Make sure you are running this script as Administrator.
|
|
)
|
|
|
|
echo.
|
|
pause
|