With this script:
require 'autodiscover'
client = Autodiscover::Client.new(email: "emiliano.heyns@han.nl", password: "XXXXXXXX")
data = client.autodiscover(ignore_ssl_errors: true)
puts data.response
I'm getting back nil for the autodiscover call. I have to do the ignore, as the certificate doesn't match the domain (the exchange admins say that there's no problem, but eM Client complains about this too).