libmicrohttpd
[Top][All Lists]
Advanced

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

[libmicrohttpd] [possible feature request?] Loading key/cert from file [


From: silvioprog
Subject: [libmicrohttpd] [possible feature request?] Loading key/cert from file [gnutls_certificate_set_x509_key_file2()]
Date: Sun, 29 Jul 2018 00:39:17 -0300

Hello dudes.

I tried to pass the key/cert files to the MHD library, however, it allows only passing via memory (using gnutls_certificate_set_x509_key_mem2()):

  MHD_OPTION_HTTPS_MEM_KEY, "private key content",
  MHD_OPTION_HTTPS_MEM_CERT, "certificate content"

but it would be nice to use the GnuTLS's builtin functions to load the key/cert files: gnutls_certificate_set_x509_key_file2(). Advantage: the programmer just pass the path of the key/cert instead of writing own unsafe functions for file loading. So, what do you thing about to add those new options?:

  MHD_OPTION_HTTPS_FILE_KEY, "key.pem",
  MHD_OPTION_HTTPS_FILE_CERT, "cert.pem",
  MHD_OPTION_HTTPS_FILE_TRUST, "ca.pem"

Thank you!

--
Silvio Clécio

reply via email to

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