Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Stunnel installation (OSX)
- ```bash
- brew install stunnel
- ```
- ### Certificate
- ```bash
- openssl req -new -x509 -days 9999 -nodes -out /usr/local/etc/stunnel/stunnel.pem -keyout /usr/local/etc/stunnel/stunnel.pem
- openssl x509 -subject -dates -fingerprint -in /usr/local/etc/stunnel/stunnel.pem
- ```
- ### Stunnel configuration
- ```bash
- tee /usr/local/etc/stunnel/stunnel.conf <<ENDOFFILE
- pid = /tmp/stunnel.pid
- setuid = nobody
- setgid = nobody
- foreground = yes
- client = no
- [https]
- cert = /usr/local/etc/stunnel/stunnel.pem
- accept = 443
- connect = 80
- ENDOFFILE
- ```
- ### Run the stunnel
- ```bash
- sudo stunnel
- ```
- ### Open your page with https
- ```
- https://ams.dev/
- ```
- [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