Test for OpenSSL heartbeat vulnerability and optionally writes result to a file.