I set up my certificates, ca client and server, as described in your
documentation:
http://wiki.libvirt.org/page/TLSCreateServerCerts.
I followed it step by step so it must be ok.
However, when I run
virsh -c qemu://192.168.1.2/system and I try a command like
list --all
I get:
error: impossible connect to the hypervisor
errore: no valid connection
errore: Unable to set x509 CA certificate: /etc/pki/CA/cacert.pem: Error
while reading file.
If I run the same command with root privileges:
virsh -c qemu://192.168.1.2/system
everything works, anyway I get this warning too:
2014-02-26 13:03:25.035+0000: 10825: info : libvirt version: 1.1.1
2014-02-26 13:03:25.035+0000: 10825: warning :
virNetTLSContextCheckCertKeyPurpose:364 : Certificate
/etc/pki/libvirt/clientcert.pem purpose does not allow use for with a TLS
client
I don't know if it is a problem, I need to live migrate machines...
Anyway, main problem is that I don't want to run virsh with root privileges.
Where the problem is?