How To Set Up Stunnel

This guide covers how to set up stunnel for endpoints that support only SSL.

Since ObjectiveFS has built-in client side encryption and always encrypts your data at rest and in transit, you don’t need to use stunnel for most cases. Common uses for stunnel are when using an on-premise object store that supports only SSL or when using the AWS server side encryption feature.


  1. Install stunnel

    $ yum install stunnel

  2. Edit /etc/stunnel/stunnel.conf with the following 4 lines:

    accept=localhost:<port>   ## e.g. localhost:8086
    connect=<endpoint>:443    ## e.g.
    For list of endpoints, see here

  3. Run stunnel on your command line (or using your init tools)

    $ stunnel

  4. To use ObjectiveFS with stunnel, set the http_proxy environment variable to http://localhost:<port>.

    Example: Running the list command using stunnel

    $ http_proxy=http://localhost:<port> mount.objectivefs list

by ObjectiveFS staff, January 16, 2016
ObjectiveFS is a shared file system for OS X and Linux that automatically scales and gives you scalable cloud storage. If you have questions or article idea suggestions, please email us at

Get updates about ObjectiveFS