[Libvir] PATCH: More useful error messages with missing certs

Richard W.M. Jones rjones at redhat.com
Thu Jul 12 08:33:16 UTC 2007


Daniel P. Berrange wrote:
> On the server end if you try to start the server with TLS enabled and you
> don't have the certs setup, you get a cryptic:
> 
> gnutls_certificate_set_x509_trust_file: Error while reading file.
> 
> Rather useless the gnutls error message not telling you what file was
> missing.
> 
> Similarly with virsh:
> 
>  # ~/usr/bin/virsh  --connect  qemu://localhost/system list
>  libvir: Remote error : Error while reading file.
> 
> Since GNU TLS doesn't even tell you the actual problem - was it wrong
> permissions, or missing file altogether, I decided its better to do an
> explicit 'stat' check ahead of time.

+1

Rich.

-- 
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.  Registered in
England and Wales under Company Registration No. 03798903
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20070712/ab116f6d/attachment-0001.bin>


More information about the libvir-list mailing list