Monorepo for Aesthetic.Computer
aesthetic.computer
1#!/usr/bin/env fish
2# Install SSL certificate on Windows host via SSH
3
4echo "📜 Installing certificate on Windows host via SSH..."
5echo ""
6
7# Check if SSH is configured
8if not ssh -o ConnectTimeout=3 windows-host "echo OK" >/dev/null 2>&1
9 echo "❌ SSH to windows-host not configured"
10 echo ""
11 echo "Run this first: fish /workspaces/aesthetic-computer/.devcontainer/scripts/setup-ssh-to-windows.fish"
12 echo "Then follow the Windows setup instructions"
13 exit 1
14end
15
16# Copy certificate to Windows temp
17echo "📋 Copying certificate to Windows..."
18scp /workspaces/aesthetic-computer/ssl-dev/rootCA.pem windows-host:"%TEMP%\\mkcert-rootCA.pem"
19
20# Install certificate
21echo "📜 Installing certificate in Windows Trust Store..."
22ssh windows-host 'powershell.exe -Command "Import-Certificate -FilePath \"$env:TEMP\\mkcert-rootCA.pem\" -CertStoreLocation Cert:\\LocalMachine\\Root; Remove-Item \"$env:TEMP\\mkcert-rootCA.pem\""'
23
24echo ""
25echo "✅ Certificate installed on Windows!"
26echo ""
27echo "⚠️ Please RESTART your browser (fully close Chrome and reopen)"