This is much simpler, you can just you just need to set client = no under [] (service), where stunnel works as a server and client = yes otherwise. You must also specify special service settings, such as the certificates in which they belong.
Sort of:
[server1]
..
client=no
[client1]
..
client=yes
source
share