]> git.proxmox.com Git - pmg-api.git/commit
cluster: fingerprint parsing: adapt to changed openssl output
authorStoiko Ivanov <s.ivanov@proxmox.com>
Mon, 24 Jul 2023 11:06:24 +0000 (13:06 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 24 Jul 2023 13:02:41 +0000 (15:02 +0200)
commit5b5914ef8164cc61b3b0298cb085d65d005c05db
tree849290b32815ecbe5005a2fa5c11fbc7ccaed4d6
parentfa385a0c12d9c100013004b8ac81edc88d593f66
cluster: fingerprint parsing: adapt to changed openssl output

currently updating the fingerprints using `pmgcm update-fingerprints`
runs into an error indicating that parsing of the remote node's
fingerprint fails

The error is due to changed output in openssl's x509 command,
introduced in commit:
91034b68b39e3525f09fb263b9272de410a3ba4c
in openssl upstream [0]

Note that in that case it would equally work to change the parameter
from `-sha256` to `-SHA256` in the `openssl x509` command above

The change seems small enough to warrant pulling it into stable-7 as
well (although the issue should not occur in systems upgraded
according to our howtos).

[0] https://github.com/openssl/openssl/commit/91034b68b39e3525f09fb263b9272de410a3ba4c

Reported-by: Martin Maurer <martin@proxmox.com>
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Removed redundant A-F from regular expression.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
src/PMG/Cluster.pm