Advertisement
Guest User

Untitled

a guest
Sep 13th, 2012
792
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. ### Stunnel installation (OSX)
  2.  
  3. ```bash
  4. brew install stunnel
  5. ```
  6.  
  7. ### Certificate
  8.  
  9. ```bash
  10. openssl req -new -x509 -days 9999 -nodes -out /usr/local/etc/stunnel/stunnel.pem -keyout /usr/local/etc/stunnel/stunnel.pem
  11. openssl x509 -subject -dates -fingerprint -in /usr/local/etc/stunnel/stunnel.pem
  12. ```
  13.  
  14. ### Stunnel configuration
  15.  
  16. ```bash
  17. tee /usr/local/etc/stunnel/stunnel.conf <<ENDOFFILE
  18. pid = /tmp/stunnel.pid
  19. setuid = nobody
  20. setgid = nobody
  21. foreground = yes
  22. client = no
  23. [https]
  24. cert = /usr/local/etc/stunnel/stunnel.pem
  25. accept = 443
  26. connect = 80
  27. ENDOFFILE
  28. ```
  29.  
  30. ### Run the stunnel
  31. ```bash
  32. sudo stunnel
  33. ```
  34.  
  35. ### Open your page with https
  36. ```
  37. https://ams.dev/
  38. ```
  39.  
  40. [No warnings during using self signed certificates](http://www.robpeck.com/2010/10/google-chrome-mac-os-x-and-self-signed-ssl-certificates/)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement