<div dir="ltr">I have been trying to get set of libvirtd system up and running.  My PKI infrastructure involves a root CA and several intermediate CAs. I am trying to get the machines to trust each other across the different intermediate CAs. <div>
<br></div><div>This is what I have so far:</div><div><br></div><div>Libvirtd is starting and listening on tls port 16514 I have configured client/server certs/keys and it seems to be using all of these correctly. </div><div>
<br></div><div>I have also configured the cacert.pem file (which has two certs in the chain). I have confirmed (recompiling with various debug statements) that the gnutls libraries are successfully loading both certs from the cacert.pem file. </div>
<div><br></div><div>When I try to connect with openssl s_client -connect <host>:16514 I get something similar to this:</div><div><div>---</div><div>Certificate chain</div><div> 0 s:/CN=<a href="http://kvm999.example.com">kvm999.example.com</a></div>
<div>   i:/C=US/ST=Utah/O=Qualtrics/OU=SRE/CN=<a href="http://intca1.example.com">intca1.example.com</a></div><div>---</div><div>Server certificate</div><div>-----BEGIN CERTIFICATE-----</div><div>... omitted for brevity</div>
<div>-----END CERTIFICATE-----</div><div>subject=/CN=<a href="http://kvm999.example.com">kvm999.example.com</a></div><div>issuer=/C=US/ST=Utah/O=Qualtrics/OU=SRE/CN=<a href="http://intca1.example.com">intca1.example.com</a></div>
<div>---</div><div>Acceptable client certificate CA names</div><div>/C=US/ST=Utah/O=Qualtrics/OU=SRE/CN=<a href="http://intca1.example.com">intca1.example.com</a></div><div>/C=US/ST=Utah/O=Qualtrics/OU=SRE/CN=<a href="http://rootca.example.com">rootca.example.com</a></div>
<div>---</div></div><div><br></div><div><br></div><div><div>The "Server certificate" and "Acceptable client certificate CA names" look right. The problem is that the certificate chain is just the single server cert and does not include the intermediate cert or root cert. As a result clients from other intermediate CAs fail to verify the libvirtd process. </div>
<div><br></div><div>I have tried libvirtd 0.10.2 and 1.2.1 both on CentOS 6.<br></div><div><br></div><div>Thanks.</div><div><br></div></div><div><br></div><div>-- <br>-Nathaniel Cook
</div></div>