I wrote some Ruby code that creates the the .cert file of my ovf. I used ovftool to create the .cert file. The two files differ slightly. The one created by my Ruby code is rejected when I try to deploy my ovf in vsphere client. The one created by ovftool works fine.