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