mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-25 10:03:49 +03:00
virsh: improve TLS certificate error messages
Print the name of the CA cert, certificate, and key file that resulted in the failure so that the user has an idea what to troubleshoot. Signed-off-by: Doug Goldstein <cardoe@gentoo.org>
This commit is contained in:
parent
f99e1389cc
commit
1945d74cc3
@ -1268,8 +1268,8 @@ initialize_gnutls(char *pkipath, int flags)
|
||||
GNUTLS_X509_FMT_PEM);
|
||||
if (err < 0) {
|
||||
remoteError(VIR_ERR_GNUTLS_ERROR,
|
||||
_("unable to load CA certificate: %s"),
|
||||
gnutls_strerror (err));
|
||||
_("unable to load CA certificate '%s': %s"),
|
||||
libvirt_cacert, gnutls_strerror (err));
|
||||
goto error;
|
||||
}
|
||||
|
||||
@ -1283,8 +1283,9 @@ initialize_gnutls(char *pkipath, int flags)
|
||||
GNUTLS_X509_FMT_PEM);
|
||||
if (err < 0) {
|
||||
remoteError(VIR_ERR_GNUTLS_ERROR,
|
||||
_("unable to load private key/certificate: %s"),
|
||||
gnutls_strerror (err));
|
||||
_("unable to load private key '%s' and/or "
|
||||
"certificate '%s': %s"), libvirt_clientkey,
|
||||
libvirt_clientcert, gnutls_strerror (err));
|
||||
goto error;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user