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.

Note: This document uses port 8086 on the localhost for the stunnel connection. You can replace 8086 below with the port you prefer.


  1. Install stunnel

    $ yum install stunnel

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

    For list of endpoints, see here. For example, for us-west-1 buckets, replace endpoint above with

  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

    Example: Running the list command using stunnel

    $ http_proxy= mount.objectivefs list

Last updated by ObjectiveFS staff, June 13, 2019
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