Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to login an extension user with a certificate #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sbacheld
Copy link

@sbacheld sbacheld commented Jul 2, 2012

Today, the only way to connect to the vCenter Server using the rbvmomi gem is using the Login function. VMware also provides the option to login an extension user using a certificate (LoginExtensionByCertificate). If you're not familiar, an extension user is added to the vCenter Server using the vSphere client by registering a plugin in the "Manage Plug-ins" dialog.

You can see an example plugin, public certificate, and private key combo here: https://gist.github.com/3030573

With the changes I've made, you can login to the VC with the following command:

vim = RbVmomi::VIM::connect_extension_by_certificate proxyHost: 'vcenter server ip', extension_key: 'My_Extension_Key', insecure: true, cert: "server.crt", key: "server.key"

I verified that I was able to retrieve information from the vCenter Server after logging in

Let me know if you need any more information

Thanks,
Sean

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant