Help building a webserver

I would like to build a Modbus webserver for my board (preferably on the OS kernel) and use the smaller kernel to execute some input and output commands according to the requests on the larger kernel. And does the board support OpenSSL? Or Mbed TLS?

Can anyone give me a tip on how to do this? Or documentation? I’m new here.