This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

WOLFSSL based Webserver for TI RTOS

Is there any example webserver with WolfSSL for TI RTOS?

What is the best practise to use WolfSSL? Is it better to use available WolfSSL web server or Intergrating WolfSSl library with example web server?

Thanks.

  • Hi Saleem,

    I am moving this thread to the TI-RTOS forum where it can get attention from the experts.

    Best Regards,
  • Hi Saleem,

    Here is a link for using WOLFSSL with TI-RTOS:

    What device are you using?  There are several networking examples shipped with TI-RTOS for TivaC devices.  There is also an http server example here:

    Best regards,

    Janet

  • Hi Janet,

    we are using TM4C1294 connected Launchpad. Does the TI RTOS HTTP example have WOLFSSL for EL-TM4C1294XL?

    Thanks.
  • Hi Saleem,
    The TI-RTOS HTTP example does not support WolfSSL. You might try contacting WolfSSL directly for an example.
    Best regards,
    Janet
  • Hi Janet,

    I have contacted WofSSL directly and here is there reply.

    "I regret there is not an example http server with wolfSSL and TI-RTOS. TCP is a transport-layer protocol, and HTTP is an application-layer protocol that runs over TCP. Our library wraps the TCP in security to provide SSL/TLS communications which would effectively turn any HTTP server into an HTTPS server. I would be surprised if TI does not maintain an http server example which could be used as a reference for turning the "TCP Echo with TLS" example into an https server"

    So do you suggest any way to turn TCP Echo with TLS to https Server? If you have any example it will be great. If not please suggest any suitable way to make https server using the TCP Echo with TLS example.

    Thanks.
  • Hi Saleem,

    You would need to design your own http server, unfortunately.

    Best regards,

    Janet

  • Hi Janet,

    Please advice can we modify the TCP Echo with TLS example to make https server?

    OR
    Should we use the Embedded web server from
    www.wolfssl.com/.../Products-yassl-embedded-web-server.html

    To make our web server in TIRTOS.

    Please advice the correct and easy method.It is very critical for us to select TM4C1294 for our development.

    Thanks.
  • Hi Saleem,

    As Janet mentioned earlier in her post, we do not currently have support for HTTPS server. You may have to develop one yourself.

    In networking stacks, HTTP is an application layer protocol which uses TCP (Transport layer protocol) to communicate. SSL/TLS is an additional layer on top of TCP which provides security. So, yes you can start with TCP Echo with TLS example but you will have to develop the HTTP server protocol on it.

    Regarding Embedded Web server from WolfSSL, we do not have much knowledge about it. You probably may need to contact WolfSSL directly.

    Vikram
  • Hello,

    Do have any help available for developing HTTP server protocol on top of TCP?

    As you already developed the Http example you may can help us on this. Actually the provided Http example uses NDK for all the functions and i cannot see the code to understand the functionality.

    Thanks.
  • saleem nawaz said:
    Do have any help available for developing HTTP server protocol on top of TCP?

    You can refer to RFC 2616 Hypertext Transfer Protocol -- HTTP/1.1 doc (can be found on google). This is the official spec for HTTP/1.1.

    saleem nawaz said:
    As you already developed the Http example you may can help us on this. Actually the provided Http example uses NDK for all the functions and i cannot see the code to understand the functionality

    I am assuming you are pointing to the HTTP Server example in NDK. This is based on HTTP/1.0 server. You can find the source code for this server in the path: <tirtos_dir>/products/<ndk_dir>/packages/ti/ndk/nettools/http. But note, this is HTTP/1.0 server (and not HTTP/1.1 - which is the popular and standard server).

    Vikram

  • Hello,

    Is it necessary to use NDK for web server? Can we build webserver without using NDK?

    I found one open source web server which uses the files from the following directories?
    \ti\TIVAWARE\third_party\lwip-1.4.1\src\include
    \ti\TIVAWARE\third_party\lwip-1.4.1\test\unit
    \ti\TIVAWARE\third_party\lwip-1.4.1\ports\tiva-tm4c129\include
    \ti\TIVAWARE\third_party\lwip-1.4.1\src\include\ipv4

    Is it using correct files to transmit ethernet data?

    Thanks.
  • Saleem,

    NDK provides stacks such as TCP/IP which are required for network communication. It is not necessary to use NDK for webserver. Instead other supported networking stacks can be used when building webserver. But I don't think the other ethenet based networking stacks are supported with TI-RTOS on Tiva devices.

    Vikram