Jump to content
Not connected, Your IP: 3.144.123.24
Staff

How to build Stunnel from source code in OS X

Recommended Posts

Hello!

 

These instructions describe how to build Stunnel on OS X.


Go to https://www.stunnel.org/downloads.html and download stunnel-4.54.tar.gz and stunnel-4.54.tar.gz.sha256.
Open a terminal from Utilities => Terminal. Terminal is case sensitive, before you do something think twice before you press RETURN - there is no undo or redo in terminal. Each line is one line in terminal and you need to press RETURN at the end of the line.

cd $HOME/Downloads
openssl dgst -sha256 stunnel-4.54.tar.gz
more stunnel-4.54.tar.gz.sha256

Compare the output of the last 2 lines - if it matches all is fine, if not you had a security problem during download.

tar -xzvf stunnel-4.54.tar.gz
cd stunnel-4.54
./configure && make && make check && sudo make install

The configure script uses autoconf, so put your fingers away from other options because if all is there and supported it will build a fine 64 bit app for you. make check is optional.
 
"sudo make install" requires your root (administrator) password. During this step you have to input some basic informations (self explaining). The && is used to run commands after each other ONLY if the previous was successful.

Once everything is done your stunnel app will be installed in /usr/local/bin.

Note:
- To avoid /usr/lib/libwrap.7.dylib dependencies (not available on fresh Mountain Lion), use ./configure --disable-libwrap
 
Kind regards
AirVPN Support Team


---
Thanks to NaWi at Mac, guide from this topic on stackexchange.com

Share this post


Link to post

If you have Homebrew installed, a great package manager for OS X, you can just type the following to download and build it:

brew install stunnel

Homebrew generally simplifies things quite a bit, taking care of dependencies and the like. If you don't have it installed, it's just one line (taken from their homepage):

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

Share this post


Link to post

great guide, i manage to make it work...

is there a way to actually check if the ssl is working? 

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image

×
×
  • Create New...