How to Install openSSL
OpenSSL is a widely-used toolkit for SSL/TLS protocols and cryptography. Below are verified steps to install it on macOS and Windows.
Install OpenSSL on macOS
Option 1: Install via Homebrew (Recommended)
- Ensure Homebrew is installed. If not, install it from https://brew.sh
- Install OpenSSL:
Copy to clipboard
1
brew install openssl- Link OpenSSL:
Copy to clipboard
1
brew link openssl --forceIf linking is not allowed, Homebrew will suggest the correct environment variables to use instead.
For Apple Silicon (M1/M2/M3)
Use the following command to configure the paths:
Copy to clipboard
1
2
3
4
export PATH="/opt/homebrew/opt/openssl/bin:$PATH"
export LDFLAGS="-L/opt/homebrew/opt/openssl/lib"
export CPPFLAGS="-I/opt/homebrew/opt/openssl/include"
export PKG_CONFIG_PATH="/opt/homebrew/opt/openssl/lib/pkgconfig"- Verify installation:
Copy to clipboard
1
openssl versionOption 2: Install Without Homebrew
- Download the source code from OpenSSL:
https://www.openssl.org/source/ - Follow the instructions in the downloaded package to build and install.
Note: Homebrew method is much easier and recommended.
Install OpenSSL on Windows
Option 1: Use Precompiled Installer (Recommended)
- Download a trusted installer from ShiningLight Productions:
https://slproweb.com/products/Win32OpenSSL.html
Choose Win64 OpenSSL v3.x Light or full version. - Run the installer as Administrator.
- Select the installation directory.
- Allow the installer to add OpenSSL to your system PATH.
- Complete the installation.
- Verify in Command Prompt:
Copy to clipboard
1
openssl versionOption 2: Install Using Chocolatey (Windows Package Manager)
- Ensure Chocolatey is installed: https://chocolatey.org/install
- Install OpenSSL:
Copy to clipboard
1
choco install openssl- To install a specific version:
Copy to clipboard
1
choco install openssl --version=3.2.0- Verify installation:
Copy to clipboard
1
openssl versionOpenSSL is now installed and ready for use on your system.
