Implement the GnuTLS version of mailstream_low_ssl_get_certificate_chain()