vmware-archive / rbvmomi

Ruby interface to the VMware vSphere API.
MIT License
302 stars 175 forks source link

Fix for multiple certificates not getting stored in cert store & removing un-necessary if condition #173

Closed chayanmukherjee16 closed 4 years ago

chayanmukherjee16 commented 4 years ago

As per the current behaviour, even if the the cert file provided to rbvmomi consists of multiple SSL certificates, only one of them is placed in the cert store. replacing add_cert with add_file results in all the certificates in the file being placed in the cert store, thus correcting the behaviour.

Also, removed an un-necessary if condition- if @opts[:insecure]

jrgarcia commented 4 years ago

This has been released on RubyGems as v1.8.5.