<div dir="ltr">Ok I solved, it was just a problem with linux permits.<div><br></div><div>Anyway each time I make a connection I get this warning: </div><div><span style="font-family:arial,sans-serif;font-size:13px">2014-02-26 13:03:25.035+0000: 10825: warning : virNetTLSContextCheckCertKeyPu</span><span style="font-family:arial,sans-serif;font-size:13px">rpose:364 : Certificate /etc/pki/libvirt/clientcert.</span><span style="font-family:arial,sans-serif;font-size:13px">pem purpose does not allow use for with a TLS client</span><br>
</div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">I want to solve it or understand what it means and what problems could it lead.</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-02-26 14:05 GMT+01:00 Pasquale Dir <span dir="ltr"><<a href="mailto:phate867@gmail.com" target="_blank">phate867@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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" target="_blank">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" target="_blank">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" target="_blank">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>
</blockquote></div><br></div>