Stunnel client example $ cat stunnel.conf Debug = local5.notice Cert = /home/jdoe/my_company/johndoe.pem CAFile = /home/jdoe/my_company/secgw.cert Verify = 3 Client = yes [work_squid] accept = localhost:3128 connect = secgw.my_company.com:9999 [work_web] accept = localhost:80 connect = secgw.my_company.com:443 [work_imap] accept = localhost:143 connect = secgw.my_company.com:993