[libvirt-users] Python API - setting client certificate path

Hi there, I'm trying to establish a TLS connection to libvirtd with certificates verification from a python script. My question is quite simple: is it possible to set the client certificate/keyfile path from within a python script? or it has to be in /etc/pki/libvirt/... Thanks in advance for any help Wojciech Gumularz

2011/4/9 Wojciech Gumularz <wgumularz@gmail.com>:
Hi there, I'm trying to establish a TLS connection to libvirtd with certificates verification from a python script. My question is quite simple:
is it possible to set the client certificate/keyfile path from within a python script? or it has to be in /etc/pki/libvirt/...
See http://libvirt.org/remote.html#Remote_URI_parameters and http://libvirt.org/remote.html#Remote_PKI for the pkipath parameter. For example: qemu+tls://remove-server.com/system/?pkipath=/path/to/my/certificates This requires libvirt 0.8.8 or newer. Matthias

Dnia 2011-04-09, sob o godzinie 07:03 +0200, Matthias Bolte pisze:
2011/4/9 Wojciech Gumularz <wgumularz@gmail.com>:
Hi there, I'm trying to establish a TLS connection to libvirtd with certificates verification from a python script. My question is quite simple:
is it possible to set the client certificate/keyfile path from within a python script? or it has to be in /etc/pki/libvirt/...
See http://libvirt.org/remote.html#Remote_URI_parameters and http://libvirt.org/remote.html#Remote_PKI for the pkipath parameter.
For example: qemu+tls://remove-server.com/system/?pkipath=/path/to/my/certificates
This requires libvirt 0.8.8 or newer.
Matthias That was quick! Thanks a lot!
w.g.
participants (2)
-
Matthias Bolte
-
Wojciech Gumularz