Answer the question
In order to leave comments, you need to log in
How to do proper stunnel encryption?
Before that, I didn’t come across stunnel, I did it according to man, but I didn’t delve into it too much.
Mana has a lot of different encryption options.
For example , here a person generates both cert and key and some kind of CAfile
Answer the question
In order to leave comments, you need to log in
CAfile is the file of the CA that issued the certificate. If you generate certificates yourself, and do not buy, then this file will "tell" the system that this CA issued a certificate.
It is standard to use key and pem in configuration. But I also saw that only pem is used.
I won’t say 100% about TCP_NODELAY, I didn’t use it, but it seems to me under what configuration you write it down - for that one it will work. That is, for example, it will be for 1 configuration (well, also register on the server):
[client1]
client = yes
accept = 127.0.0.1:100
connect = site1.ru:443
cert = stunnel.pem
socket = r:TCP_NODELAY=1
[oclient2 ]
client = yes
accept = 127.0.0.1:101
connect = site2.ru:443
cert=stunnel2.pem
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question