OpenSSL CocoaPod which vends pre-built frameworks for iOS and OSX.
This is merely a wrapper which builds off of work done by others. The original comes from https://github.com/krzyzanowskim/OpenSSL and includes work done by @jcavar to build proper frameworks. I have repackaged that work as a CocoaPod such that OpenSSL can be used by macOS and iOS projects requiring frameworks.
Please see the Reference section below for more details.
Simply add GRKOpenSSLFramework
to your podfile:
pod 'GRKOpenSSLFramework'
While the repository does contain the pre-built frameworks, if you want to re-build them:
- Open in Xcode: OpenSSL/OpenSSL-iOS/OpenSSL-iOS.xcodeproj
- Clean Build Folder (Option-Shift-Command-K)
- Ensure "Generic iOS Device" is the selected build target.
- Build
- Use the
./_master_build.sh valid ios
command to validate the built framework. - Result is located: OpenSSL/OpenSSL-iOS/bin/openssl.framework
- Open in Xcode: OpenSSL/OpenSSL-macOS/OpenSSL-macOS.xcodeproj
- Clean Build Folder (Option-Shift-Command-K)
- Build
- Build again. This is needed to ensure the modulemap file is available.
- Use the
./_master_build.sh valid macos
command to validate the built framework. - Result is located: OpenSSL/OpenSSL-macOS/bin/openssl.framework
The build scripts and projects are all tailored for the 1.1.0 series of OpenSSL, so if you're attempting to use a different series you might run into some issues.
- Download the source tarball from https://www.openssl.org/source/
- Download the PGP sig as well, and validate the tarball's signature.
- Place the downloaded file in this directory.
- Update the
OPENSSL_VERSION
value in the_master_build.sh
- Clean, using the
./_master_build.sh clean
command. - Build, using the
./_master_build.sh build
command. - Follow the steps outlined in "Building" (above).
krzyzanowskim#9
krzyzanowskim#27
https://github.com/jcavar/OpenSSL
https://pewpewthespells.com/blog/convert_static_to_dynamic.html
This work is licensed under the OpenSSL (OpenSSL/SSLeay) License. Please see the included LICENSE.txt for complete details.
A professional iOS engineer by day, my name is Levi Brown. Authoring a blog grokin.gs, I am reachable via:
Twitter @levigroker
Email [email protected]
Your constructive comments and feedback are always welcome.