21 Stunnel
Stunnel is SSL library that enables users to secure (encrypt) otherwise insecure sessions
Sample client server configuration
Following are the steps for setting up client and server:
1.Create the Stunnel client config file /usr/internet/stunnel/etc/stunnel/ client.conf. Sample client config file is as follows:
cert = /usr/internet/openssl/bin/cacert.pem key = /usr/internet/openssl/bin/privkey.pem
#Use in client mode client = yes
pid
#setuid = nobody
#setgid = other
debug = 7
output
#Authentication stuff
#verify = 1
#foreground = yes
[ telnet ] accept = 8060
connect = servermachine:8050
NOTE:
•Where Cert and key path should be same where cert and key get created.
•accept should be the server machine name
2.Create Certificate and key on both client and server machines as follows:
cd /usr/internet/openssl/bin
openssl genrsa
openssl req
3.For starting stunnel on server:
•execute: /usr/internet/stunnel/bin/stunnel /usr/internet/stunnel/bin/server.conf
•To Check the status type: ps
4.For starting stunnel on client:
•execute: /usr/internet/stunnel/bin/stunnel /usr/i nternet/stunnel/bin/client.conf
•To Check the status type: ps