On 03/28/2015 12:35 AM, Sven Geggus wrote: > Hello, > > looking at the TLS examples and documentation of libmicrohttpd I was > wondering how to use a certificate chain. > > Am I right in the assumption, that I will just need to daisy chain > the certificates into a single file and use them as "cert_pem"?
Yes. For details, MHD uses GnuTLS so you should look at the GnuTLS documentation, in particular certtool: http://www.gnutls.org/manual/html_node/certtool-Invocation.html Example from the manual: $ certtool --generate-certificate --load-privkey key.pem \ --template cert.cfg --outfile cert.pem \ --load-ca-certificate ca-cert.pem --load-ca-privkey ca-key.pem Happy hacking! Christian
signature.asc
Description: OpenPGP digital signature
