[virt-tools-list] Windows version of virsh - where to put certs?
Kevin Keane Subscription
subscription at kkeane.com
Wed Feb 18 06:53:40 UTC 2015
Answering my own question, since I never in a million years would have guessed the correct location. Hopefully it helps somebody else.
Not only is the location hard-coded; the hard-coded path is half absolute and half relative.
The absolute path is indeed the exact path from the error message (with the directory separators replaced of course), but it must be on whatever drive letter is the current drive when you actually start virsh.
So if you start virsh from E:\myfiles then the correct path is (for the 64-bit version of virsh):
E:\usr\x86_64-w64-mingw32\sys-root\mingw\etc\pki\CA
(the client cert and key should be in the corresponding locations, of course).
This will work only as long as you start virsh from anywhere on the E: drive - if you switch to, say, the C: drive, virsh will fail again.
Kevin Keane
The NetTech
http://www.4nettech.com
Our values: Privacy, Liberty, Justice
See https://www.4nettech.com/corp/the-nettech-values.html
-----Original message-----
From: Kevin Keane Subscription <subscription at kkeane.com>
Sent: Tuesday 17th February 2015 21:09
To: virt-tools-list at redhat.com
Subject: [virt-tools-list] Windows version of virsh - where to put certs?
I'm trying to set up my Windows workstation (Windows 8.1) to be able to use virsh via TLS, but after Googling for hours, I just can't figure out where to put the certificate files in Windows (I have it working fine on a CentOS workstation).
The error message I'm getting says that it can't find the CA certificate, but is exceedingly unhelpful in describing where it *should* go. The path in the error message is obviously not valid in Windows.
virsh # connect qemu://<myhost>/system
error: Failed to connect to the hypervisor
error: Cannot read CA certificate '/usr/x86_64-w64-mingw32/sys-root/mingw/etc/pki/CA/cacert.pem': No such file or directory
Thanks!
Kevin Keane
The NetTech
http://www.4nettech.com
Our values: Privacy, Liberty, Justice
See https://www.4nettech.com/corp/the-nettech-values.html
_______________________________________________
virt-tools-list mailing list
virt-tools-list at redhat.com
https://www.redhat.com/mailman/listinfo/virt-tools-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20150217/a2d01bbc/attachment.htm>
More information about the virt-tools-list
mailing list