Chapter 60. Certificates

x::gnutls::x509::crt is a reference to a reference-counted object that represents an X.509 certificate:

#include <x/gnutls/x509_crt.H>

std::list<x::gnutls::x509::crt> crtchain;

x::gnutls::x509::crt::base::import_cert_list(crtchain, "cert.pem",
                                             GNUTLS_X509_FMT_PEM);

Typical client usage involves loading a certificate chain from a file, using overloaded import_cert_list() methods. See the class reference for more information regarding creating and managing X.509 certificates.