dav3860 / vmbix

Fork of vmbix, a TCP proxy for querying a VMWare infrastucture with Zabbix
53 stars 19 forks source link

VMware Default SSL Certificates #18

Closed RubyWanKenobi closed 8 years ago

RubyWanKenobi commented 9 years ago

When I try to exexute: vmbix -P 12050 -u username -p password -s https://vcenter.mycompany.com/sdk

I get the following exception: Exception in thread "main" java.lang.NullPointerException at net.djarvur.vmbix.VmBix.main(Unknown Source) Shutting down Error disconnecting: null Shutted down

I already imported rui.crt vom VCenter system into /etc/ssl/certs. Any pointers for my problem ? Thanks !

dav3860 commented 8 years ago

You can follow http://blogs.vmware.com/developer/2014/07/getting-started-vsphere-management-sdk.html for instructions on how to add a certificate to a keystore and use the javax.net.ssl.trustStore parameter to use it.

dav3860 commented 8 years ago

But the connection to the vCenter in VmBix ignores certificate warnings : new ServiceInstance(new URL(sdkUrl), uname, passwd, true);