Pyvmomi SSL certification error


Hello everybody nowadays I interest with ESX and WMware virtualization system. Pyvmomi is such a good Api that control all of them. It’s Python project also well documented on Github.

There is a good samples for lazy peoples who want to understand easily and faster.
Main problem, while connecting vSphere it forces to use SSL . While working on GUI it’s easy to ignore it, but on console you have to add some Python command to beginning of script.

If you get this error or different which is occur because of SSL

Solution

 

Few links for more
https://gist.github.com/michaelrice/a6794a017e349fc65d01
Note: python2.7