[Pkg-libvirt-maintainers] Bug#507585: libvirt certificate paths are hard-coded

Simon Cozens simon at simon-cozens.org
Tue Jul 28 10:52:02 UTC 2009


I've just run into this problem writing my own libvirt client with the
Sys::Virt perl module. Unfortunately it's not something that is easily
worked around, because the paths are not configurable, but hard-coded
into the client libraries:

 % grep LIBVIRT_ libvirt-0.6.3/src/remote_internal.h
#define LIBVIRT_PKI_DIR SYSCONF_DIR "/pki"
#define LIBVIRT_CACERT LIBVIRT_PKI_DIR "/CA/cacert.pem"
#define LIBVIRT_CLIENTKEY LIBVIRT_PKI_DIR "/libvirt/private/clientkey.pem"
#define LIBVIRT_CLIENTCERT LIBVIRT_PKI_DIR "/libvirt/clientcert.pem"
#define LIBVIRT_SERVERKEY LIBVIRT_PKI_DIR "/libvirt/private/serverkey.pem"
#define LIBVIRT_SERVERCERT LIBVIRT_PKI_DIR "/libvirt/servercert.pem"

Simon





More information about the Pkg-libvirt-maintainers mailing list