tools: reimplement virt-pki-validate in C

The virt-pki-validate tool is currently a shell script. We have a
general goal of eliminating use of shell in the project. By doing a
new implementation in C, we can also make use of our more thorough
sanity checking code to validate the certificate setup.

This new implementation the same output format as the host validation
tool for a more consistent user experiance.

It also eliminates the requirement to have certtool installed on
libvirt hosts, which has been an issue for Fedora flatpak packages
since certtool isn't in the default platform runtime.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé committed 2024-06-11 12:50:23 +01:00
1 parent 3faa78d98d
commit 8e97fd4181
6 files changed
+339 -306

No files matched your search

+2 -2
View File
@@ -48,7 +48,7 @@ failure a non-zero status will be set.
AUTHOR
======
Daniel Veillard
Daniel Veillard, Daniel P. Berrangé
BUGS
@@ -70,7 +70,7 @@ Alternatively, you may report bugs to your software distributor / vendor.
COPYRIGHT
=========
Copyright (C) 2006-2012 by Red Hat, Inc.
Copyright (C) 2006-2024 by Red Hat, Inc.
LICENSE