]> git.proxmox.com Git - pve-common.git/commit - src/PVE/Certificate.pm
certs: generate_csr: allow to set CN explicit
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 13 Jan 2020 16:25:10 +0000 (17:25 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 13 Jan 2020 16:38:08 +0000 (17:38 +0100)
commit0e4d81adb8de7a59d17df787e28671cf8b668fa2
treee61eb589dfa141bccfb08bc8d19acdc2bd4c62a2
parent055f076be5553a9722a9dad483e26eda8c3a7527
certs: generate_csr: allow to set CN explicit

Else, when used with ACME, the SAN is always sorted so we always get
the Subject Alternative Name sorting alphabetically first, which
doesn't necessarily has to be the "primary" domain. While this is
rather cosmetically (all SANs are equal) it could still result it
flapping CN when SANs and thus possibly the order changes, e.g., in
our CDN mirror pool. It also doesn't costs anything to allow control
over this, so why not..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/Certificate.pm