error connecting to vsphere after upgrade to ruby 1.9.3
I get the following error on connecting to vsphere after upgrading to ruby 1.9.3:
Errors: The remote system presented a public key with hash 96644f04c8b04c76122ca8b59d4c6bd603dd2fe7c522243458966b1df8f049c9 but we're expecting a hash of 63cac81d6b1f3c027880ad372dd1eb89fb839a5515671da8c1435dda0b708b2c. If you are sure the remote system is authentic set vsphere_expected_pubkey_hash: <the hash printed in this message> in ~/.fog
#2 Updated by Amos Benari over 6 years ago
Public key format changed in ruby 1.9.3 see details:
Bug in Ruby 1.9.3 , describes how the encoded format for RSA public keys was not the default format used by OpenSSL, but rather the encoding format specified by PKCS#1. The fix  shows changing PEM_read_bio_RSAPublicKey to PEM_read_bio_RSA_PUBKEY.