Mbed TLS is now part of TrustedFirmware.org.

Problem using MBEDTLS with nghttp2 server

Feb 13, 2017 15:29

I am trying to use mbedtls lib with nghttp2 server from https://github.com/nghttp2/nghttp2.

I created a client using ssl_client2.c from mbedtls and combined with client.c from nghttp2.

For alpn I used "h2" string.

On client side I get :

  • client hello, adding alpn extension
  • [ Application Layer Protocol is (none) ]

On server side I get: - Client did not advertise HTTP/2 protocol. (nghttp2 expects h2)

My server is running on Ubuntu 14.0t LTS with local copy of libssl 1.0.2g.

Any suggestion where can be the mistake?

Thanks in advance. AKD

Feb 14, 2017 08:49
Ron Eldor

It seems the error you are getting is in the HTTP connection, and not in the TLS\SSL.
I suggest you look at nghttp2 support such as:
* https://github.com/nghttp2/nghttp2/issues/92
* https://github.com/nghttp2/nghttp2/issues/63
* https://http2.github.io/http2-spec/

I hope this helps
mbed TLS Team member