document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. En /etc/stunnel/stunnel.conf
  2. cert = /etc/ssl/certs/stunnel.pem
  3. key = /etc/ssl/certs/stunnel.pem
  4. setuid = stunnel4
  5. setgid = stunnel4
  6. pid = /var/run/stunnel4/stunnel.pid
  7. socket = l:TCP_NODELAY=1
  8. socket = r:TCP_NODELAY=1
  9. compression = rle
  10. output = /var/log/stunnel4/stunnel.log
  11. client = no
  12. [https]
  13. accept = 443
  14. connect = 80
  15. TIMEOUTclose = 0
  16.  
  17.  
  18. # Ejecutar
  19. cd /etc/ssl/certs
  20. openssl req -new -x509 -nodes -days 365 -out stunnel.pem -keyout stunnel.pem
  21. chmod 600 stunnel.pem
  22. dd if=/dev/urandom of=temp_file count=2
  23. openssl dhparam -rand temp_file 512 >> stunnel.pem
  24. ln -sf stunnel.pem `openssl x509 -noout -hash < stunnel.pem`.0
  25. rm temp_file
  26. /etc/init.d/stunnel4 restart
');