feat: Let's Encrypt integration, dual IP prompts, firewall checks, and CA utilities
- 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
This commit is contained in:
1 parent
f22f3bdf8d
commit
846b27e834
12 files changed
+987
-79
No files matched your search
@@ -0,0 +1,46 @@
|
||||
@echo off
|
||||
REM Clean up all Dune Dashboard CA certificates and reinstall the current one
|
||||
REM Must be run as Administrator
|
||||
|
||||
setlocal
|
||||
set CERT_PATH=%~dp0ssl\ca.pem
|
||||
|
||||
echo ============================================================
|
||||
echo Dune Dashboard - CA Certificate Cleanup
|
||||
echo ============================================================
|
||||
echo.
|
||||
|
||||
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 Removing all existing Dune Dashboard CA certificates...
|
||||
echo.
|
||||
|
||||
REM Remove from CurrentUser store
|
||||
powershell -NoProfile -Command "$store = New-Object System.Security.Cryptography.X509Certificates.X509Store('Root','CurrentUser'); $store.Open('ReadWrite'); $certs = $store.Certificates | Where-Object { $_.Subject -like '*Dune Dashboard*' }; Write-Host \"Found $($certs.Count) in CurrentUser\"; foreach ($c in $certs) { $store.Remove($c); Write-Host \" Removed: $($c.Thumbprint)\" }; $store.Close()"
|
||||
|
||||
REM Remove from LocalMachine store
|
||||
powershell -NoProfile -Command "$store = New-Object System.Security.Cryptography.X509Certificates.X509Store('Root','LocalMachine'); $store.Open('ReadWrite'); $certs = $store.Certificates | Where-Object { $_.Subject -like '*Dune Dashboard*' }; Write-Host \"Found $($certs.Count) in LocalMachine\"; foreach ($c in $certs) { $store.Remove($c); Write-Host \" Removed: $($c.Thumbprint)\" }; $store.Close()"
|
||||
|
||||
echo.
|
||||
echo Installing fresh CA certificate...
|
||||
echo.
|
||||
|
||||
certutil -addstore -f "Root" "%CERT_PATH%"
|
||||
|
||||
if %errorlevel% equ 0 (
|
||||
echo.
|
||||
echo SUCCESS: CA certificate cleaned and reinstalled.
|
||||
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
|
||||
Reference in new issue
Block a user