|From:||Tal Maoz (tmaoz)|
|Subject:||[libmicrohttpd] Using GnuTLS with GNUTLS_CRD_PSK and AES-256-GCM, SHA384|
|Date:||Tue, 22 May 2018 17:58:10 +0000|
I hope someone can help with this as it is pretty urgent.
I’m trying to build a simple secure server over libmicrohttpd.
I compiled version 0.9.59 with libgnutls 3.5.18.
I’m trying to use TLS-PSK with AES-256-GCM and SHA384 but I get an error:
Ø Error: invalid credentials type 4 specified.
daemon = MHD_start_daemon(MHD_USE_THREAD_PER_CONNECTION | MHD_USE_SSL | MHD_USE_DEBUG,
I looked into the source code of libmicrohttps and in microhttpd/daemon.c:576 I see that, for some reason, if anything other than GNUTLS_CRD_CERTIFICATE is used, this error message is given. The documentation says:
Any Idea on what to do with this? Is there some other config I need to use/change for this to work? When I remove the “MHD_OPTION_HTTPS_CRED_TYPE“ and “MHD_OPTION_HTTPS_PRIORITIES” , the server works (but not in the mode I need, obviously).
If this is simply not supported, any idea if there are any plans to ever support this?
Any help will be very much appreciated.
|[Prev in Thread]||Current Thread||[Next in Thread]|