Download and parse X.509 certificates over TLS in pure Haskell