Problem
Cannot get apt-update for pve-no-subscription
Reproduce
- Follow steps by https://proxmox.com/en/products/proxmox-virtual-environment/get-started
- Set repo according [Host System Administration](https://pve.proxmox.com/pve-docs/chapter-sysadmin.html)
Errors
Additonal info
- use [post-install scripts](https://community-scripts.github.io/ProxmoxVE/scripts?id=post-pve-install) - does not help
- use curl give output
- curl with follow redirect give
- Check certificate show that there not exists name download.proxmox.com inside Subject Alt Names
Cannot get apt-update for pve-no-subscription
Reproduce
- Follow steps by https://proxmox.com/en/products/proxmox-virtual-environment/get-started
- Set repo according [Host System Administration](https://pve.proxmox.com/pve-docs/chapter-sysadmin.html)
Errors
Bash:
root@pve:~# apt-get update
Ign:4 https://download.proxmox.com/debian/pve bookworm InRelease
Hit:2 https://security.debian.org/debian-security bookworm-security InRelease
Hit:1 https://deb.debian.org/debian bookworm InRelease
Hit:3 https://deb.debian.org/debian bookworm-updates InRelease
Ign:4 https://download.proxmox.com/debian/pve bookworm InRelease
Ign:4 https://download.proxmox.com/debian/pve bookworm InRelease
Err:4 https://download.proxmox.com/debian/pve bookworm InRelease
Certificate verification failed: The certificate is NOT trusted. The name in the certificate does not match the expected. Could not handshake: Error in the certificate verification. [IP: 212.224.123.70 443]
Reading package lists... Done
W: Failed to fetch http://download.proxmox.com/debian/pve/dists/bookworm/InRelease Certificate verification failed: The certificate is NOT trusted. The name in the certificate does not match the expected. Could not handshake: Error in the certificate verification. [IP: 212.224.123.70 443]
W: Some index files failed to download. They have been ignored, or old ones used instead.
Additonal info
- use [post-install scripts](https://community-scripts.github.io/ProxmoxVE/scripts?id=post-pve-install) - does not help
- use curl give output
Bash:
root@pve:~# curl -vvv http://download.proxmox.com
* Trying 185.219.221.167:80...
* Connected to download.proxmox.com (185.219.221.167) port 80 (#0)
> GET / HTTP/1.1
> Host: download.proxmox.com
> User-Agent: curl/7.88.1
> Accept: */*
>
< HTTP/1.1 308 Permanent Redirect
< Connection: close
< Location: https://download.proxmox.com/
< Server: Caddy
< Date: Wed, 12 Mar 2025 12:16:54 GMT
< Content-Length: 0
<
* Closing connection 0
- curl with follow redirect give
Bash:
curl -vvv -L http://download.proxmox.com
* Trying 212.224.123.70:80...
* Connected to download.proxmox.com (212.224.123.70) port 80 (#0)
> GET / HTTP/1.1
> Host: download.proxmox.com
> User-Agent: curl/7.88.1
> Accept: */*
>
< HTTP/1.1 308 Permanent Redirect
< Connection: close
< Location: https://download.proxmox.com/
< Server: Caddy
< Date: Wed, 12 Mar 2025 12:18:00 GMT
< Content-Length: 0
<
* Closing connection 0
* Clear auth, redirects to port from 80 to 443
* Issue another request to this URL: 'https://download.proxmox.com/'
* Trying 212.224.123.70:443...
* Connected to download.proxmox.com (212.224.123.70) port 443 (#1)
* ALPN: offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* CAfile: /etc/ssl/certs/ca-certificates.crt
* CApath: /etc/ssl/certs
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN: server accepted http/1.1
* Server certificate:
* subject: CN=enterprise.proxmox.com
* start date: Feb 14 05:01:35 2025 GMT
* expire date: May 15 05:01:34 2025 GMT
* subjectAltName does not match download.proxmox.com
* SSL: no alternative certificate subject name matches target host name 'download.proxmox.com'
* Closing connection 1
* TLSv1.3 (OUT), TLS alert, close notify (256):
curl: (60) SSL: no alternative certificate subject name matches target host name 'download.proxmox.com'
More details here: https://curl.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
- Check certificate show that there not exists name download.proxmox.com inside Subject Alt Names