惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

雷峰网
雷峰网
MongoDB | Blog
MongoDB | Blog
D
Docker
Martin Fowler
Martin Fowler
人人都是产品经理
人人都是产品经理
GbyAI
GbyAI
Jina AI
Jina AI
酷 壳 – CoolShell
酷 壳 – CoolShell
M
MIT News - Artificial intelligence
腾讯CDC
阮一峰的网络日志
阮一峰的网络日志
H
Hackread – Cybersecurity News, Data Breaches, AI and More
N
Netflix TechBlog - Medium
B
Blog RSS Feed
云风的 BLOG
云风的 BLOG
Blog — PlanetScale
Blog — PlanetScale
Vercel News
Vercel News
The Cloudflare Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
有赞技术团队
有赞技术团队
G
Google Developers Blog
Stack Overflow Blog
Stack Overflow Blog
I
InfoQ
U
Unit 42

Proxmox Support Forum

[SOLVED] - Github Auth for Mirrors-Kernel Repo? [Automation] Mass migration tool for MS Win11/Server Proxmox GUI hang - not response is it possible to reject or quarantine spam based on conditions I set ? The PVENode task list in PVE9 is partially obscured due to the terminal font being too large. About 100% error reporting due to pveproxy.service hooks Kubernetes overlay networking breaks when upgrading from PVE 9.1 to PVE 9.2.3 Zentraler Speicher No space left on device Combine datastore and direct file archival to tape Kernel panic VFS: Unable to mount root fs on unknown-block (0,0) sobald ein 7.x Kernel verwendet wird. How to migrate disk of a VM from one ZFS to another Windows Server 2025 fails to boot after PVE 9.2 / Linux 7.0 Kernel upgrade Cannot Install Proxmox on T610 Poweredge with H700 PERC card sdn Config. gateway not reachable How to safely change domain/FQDN? Welche Filterquote erreicht ihr? NFS Share status unknown on 2 of 5 nodes Can't connect to PVE9 consoles [solved] Can't connect to PVE9 consoles [solved] [SOLVED] - Use secondary network for PVE commands Created cluster, one node storage gone BUG: proxmox mail gateway FROM = null bypass spam filtering Moving existing PBS from VMWare workstation to PVE cluster Does eBGP SDN fabric support external peering? Bug: PDM 1.1 not recognizing valid license status Proxmox GUI hang - not response PVE crashes unexpectedly Proxmox Backup Server 4.2 released! Advice
Roll out "custom certificate" updates via shell / api?
invalid@exam · 2026-06-02 · via Proxmox Support Forum

Hi,
is it possible to replace "custom certificates" from shell or via api? I'm speaking of this ones here:
1780400869742.png
My goal is, to do cert-renewal automatically.
What service(s) need to be restarted after exchanging the certs?
Many thanks in advance!

cheiss

Proxmox Staff Member

Staff member

Oh, the pvenode commands are also valid for PMG? I didn't expect that. I thought they're only for PVE Nodes.

cheiss

Proxmox Staff Member

Staff member

Thank for your reply.
I have a last question about the parameters the pmgconfig expects here:

Code:

pmgconfig cert set <type> <certificates> <key> [OPTIONS] [FORMAT_OPTIONS]
Upload or update custom certificate chain and key.
<type>: <api | smtp>
The TLS certificate type (API or SMTP certificate).

<certificates>: <string>
PEM encoded certificate (chain).

<key>: <string>
PEM encoded private key.

--force <boolean> (default =0)
Overwrite existing custom or ACME certificate files.

--restart <boolean> (default =0)
Restart services.

Does this really mean to pass the whole cert and key as strings here? Or is a filepath expected instead?
Pasting multi-line strings via commands is always a hassle from scripts IMHO.

Thank you.

cheiss

Proxmox Staff Member

Staff member

Yes, the raw certificate/key as strings are expected since pmgconfig mostly just wraps the API a bit more neatly for command-line usage.

But if you already got the files somewhere, you can invoke it e.g. as

Bash:

pmgconfig cert set api "$(cat /var/lib/certs/cert.pem)" "$(cat /var/lib/certs/key.pem)"

Being able to pass filepaths instead seems like a pretty reasonable thing to have for CLIs, though - feel free to create a feature request over at https://bugzilla.proxmox.com/ :)

Hm, the syntax with "$(cat ..." does not work:

Unknown option: ---begin private key-----
(...)
<content of file is shown here>
(....)
400 unable to parse option
pmgconfig cert set <type> <certificates> <key> [OPTIONS] [FORMAT_OPTIONS]

Oh, I found out that it already expects file-pathes for the cert and the key! So the docu and the inbuilt help texts are just wrong.
I will update the bugreport