Since the announcement of iOS 7.0, a lot of frenzy has been observed around OpenSSL. In fact, since the local receipt validation is now mandatory, OpenSSL has become a vital part of iOS development. If you search for "OpenSSL iOS" on GitHub, you will find a of projects that allow the building of OpenSSL static libraries.

If you look a bit further, why not building OpenSSL for iOS AND OS X at the same time ? All you need to support the two platforms is to build OpenSSL for i386, x86_64, armv7, armv7s and arm64. It happens that OpenSSL static libraries for i386 and x86_64 can be run either in OS X applications or iOS applications in simulator. This way, you get a unique distribution.

It is with this idea in mind that I have create a Gist called, a simple bash script that takes care of retrieving, building and packaging OpenSSL headers and static libraries in a simple archive.