openssl is installed on an openwrt device and I want to do the following:

open an ssl tunnel from localhost:xxx to remotehost:yyy and keep the tunnel open.

I need the tunnel in a lua environment so I see 2 options:

- issue a command line command from lua to open the tunnel
- make a call by binding openssl into lua

The first option is probably the easiest, and my question is:
What is the command line to open such ssl tunnel? I searched the doc and source code, but can't determine what the command line syntaxt is to do it. I guess I'm not looking in the right place.

In case anyone would have done the 2nd open: feel free to share your lua code.

your advice is much appreciated,
C.