xapi-project / vagrant-xenserver

A Vagrant provider for XenServer
MIT License
120 stars 31 forks source link

Allow to set the port for communicating with XS API, and to use SSL/TLS #24

Closed fquesnel closed 8 years ago

fquesnel commented 8 years ago

If xs.xs_port and xs.xs_use_ssl are set in the Vagrantfile, use these parameters to communicate with the XenServer API.

Otherwise, default to port 80 without SSL/TLS (former behaviour).

Signed-off-by: Flavien Quesnel flavien.quesnel@irt-systemx.fr

fquesnel commented 8 years ago

This PR especially allows to encrypt the XenServer root password before sending it over an untrusted network.

Since Vagrant does not like self-signed certificates, I have been able to test the PR by editing xmlrpc/client.rb and adding "@http.verify_mode = OpenSSL::SSL::VERIFY_NONE" to the initialize method.

jonludlam commented 8 years ago

Looks great! Thanks, @fquesnel

fquesnel commented 8 years ago

Thank you!