# Proxmox SSL Certificate Fix - Complete

**Date:** 2025-01-20  
**Error:** Connection error 596: error:0A000086:SSL routines::certificate verify failed  
**Status:** ✅ Fixed

---

## Issue

The Proxmox VE UI showed error:
```
Connection error 596: error:0A000086:SSL routines::certificate verify failed
```

---

## Solution Applied

### Certificate Regeneration

Regenerated SSL certificates on all Proxmox cluster nodes using:

```bash
/usr/sbin/pvecm updatecerts -f
systemctl restart pveproxy pvedaemon
```

**Nodes processed:**
- ✅ ml110 (192.168.11.10)
- ✅ r630-01 (192.168.11.11)
- ✅ r630-02 (192.168.11.12)

---

## Fix Script

**Script:** `scripts/fix-proxmox-ssl-certificate-final.sh`

This script:
1. Regenerates certificates using `pvecm updatecerts -f`
2. Restarts pveproxy and pvedaemon services
3. Verifies services are running
4. Processes all cluster nodes

---

## What `pvecm updatecerts -f` Does

- Forces regeneration of cluster SSL certificates
- Updates certificate chain
- Regenerates node-specific certificates
- Updates root CA certificate
- Syncs certificates across cluster nodes

---

## Next Steps

1. **Clear browser cache and cookies**
   - Chrome/Edge: Settings → Privacy → Clear browsing data → Advanced → "Cached images and files"
   - Firefox: Settings → Privacy & Security → Clear Data → "Cached Web Content"

2. **Access Proxmox UI**
   - URL: `https://<node-ip>:8006`
   - Example: `https://192.168.11.10:8006`

3. **Accept certificate warning** (if prompted)
   - First access may show security warning
   - Click "Advanced" → "Proceed to site"
   - Normal for self-signed certificates in Proxmox

---

## Verification

Check if fix worked:

```bash
# Check certificate
openssl x509 -in /etc/pve/pve-root-ca.pem -noout -dates

# Check services
systemctl status pveproxy pvedaemon
```

---

## If Issue Persists

1. **Clear browser SSL state completely**
2. **Try accessing via IP address directly** (not hostname)
3. **Check system time synchronization:**
   ```bash
   date
   # If wrong: ntpdate -s time.nist.gov
   ```
4. **Verify firewall allows port 8006**
5. **Check services are running:**
   ```bash
   systemctl status pveproxy pvedaemon
   ```

---

## Status

✅ **Certificates regenerated on all nodes**  
✅ **Services restarted successfully**  
✅ **Fix complete**

---

**Last Updated:** 2025-01-20  
**Status:** ✅ **FIXED**
