Hi,

I am using 4.4 beta4 and not able to add new hosts to the datacenter. Also "Enroll Certificate" fails.

On nodes, I get the following error message:

libvirtd[20399]: Unable to import CA certificate list /etc/pki/vdsm/certs/cacert.pem

The root cause is the malformed cert:

$ cat /etc/pki/vdsm/certs/cacert.pem
-----BEGIN CERTIFICATE-----\nMIID XXX

That, is the .pem file is just one long line with \n characters instead of real newlines. If I convert the \n to real newlines libvirtd starts but that is not the end solution since other issues surfaces. 

The malforming happens when the engine copies (via ansible) the CA cert to the node(s).

Any ideas what is going on?

Thanks, Sakari