libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libmicrohttpd] TLS certificate chain


From: Christian Grothoff
Subject: Re: [libmicrohttpd] TLS certificate chain
Date: Sat, 28 Mar 2015 10:19:25 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.5.0

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

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]