Skip to content

Instantly share code, notes, and snippets.

@georgepadayatti
Created August 22, 2021 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save georgepadayatti/f690fe6513b5c1082afd490b52355b0a to your computer and use it in GitHub Desktop.
Save georgepadayatti/f690fe6513b5c1082afd490b52355b0a to your computer and use it in GitHub Desktop.
Compile OpenSSL to Apple silicon arm architecture

For compiling OpenSSL to Apple silicon, follow the below instructions:

  1. cd ~
  2. wget https://www.openssl.org/source/openssl-1.1.1k.tar.gz
  3. tar -xvzf openssl-1.1.1k.tar.gz
  4. cd openssl-1.1.1k
  5. ./Configure shared enable-rc5 zlib darwin64-arm64-cc --prefix=/usr/local/ssl --openssldir=/usr/local/ssl
  6. make -j$(($(nproc)+1))
  7. sudo make install
  8. export OPENSSL_DIR=/usr/local/ssl/

You can now access openssl libraries at /usr/local/ssl/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment