certificate_check : List Certificate -> String -> CertificateCheck IOGiven a list of trusted certificate, hostname of the server, verify the certificate chain
and return a public key to be used to verify TLS handshake
certificate_ignore_check : String -> CertificateCheck IOA CertificateCheck function that always trusts the certificate unless it's malformed