参考:
https://masuc.cn/46113.html
https://docs.pxvirt.lierfang.com/zh/installfromdebian.html
1.添加key
curl https://mirrors.apqa.cn/proxmox/debian/pveport.gpg -o /etc/apt/trusted.gpg.d/pveport.gpg
已经用不了了
用这个
curl -L https://mirrors.lierfang.com/pxcloud/lierfang.gpg -o /etc/apt/trusted.gpg.d/lierfang.gpg
手动生成证书
sudo openssl genpkey -algorithm RSA -out /etc/pve/priv/pve-root-ca.key
sudo openssl req -new -x509 -key /etc/pve/priv/pve-root-ca.key -out /etc/pve/pve-root-ca.pem -days 3650 -subj "/CN=Proxmox Virtual Environment/OU=Cluster/O=PVE"