[pve-devel] [PATCH cluster 2/2] Add utility method to get a SSL finger print from a nodename
Emmanuel Kasper
e.kasper at proxmox.com
Wed Nov 22 09:49:11 CET 2017
This will be used to feed an extra field for an API call
Signed-off-by: Emmanuel Kasper <e.kasper at proxmox.com>
---
data/PVE/Cluster.pm | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/data/PVE/Cluster.pm b/data/PVE/Cluster.pm
index 5d69f0c..051e815 100644
--- a/data/PVE/Cluster.pm
+++ b/data/PVE/Cluster.pm
@@ -1479,6 +1479,12 @@ sub get_cert_fingerprint {
return $fingerprint;
}
+sub get_node_fingerprint {
+ my ($node) = @_;
+ my $cert = get_node_ssl_cert($node);
+ return get_cert_fingerprint($cert);
+}
+
# X509 Certificate cache helper
my $cert_cache_nodes = {};
--
2.11.0
More information about the pve-devel
mailing list