How to Install openSSL
Install OpenSSL on macOS
Option 1: Install via Homebrew (Recommended)
If you have Homebrew:
brew update
brew install openssl
After installation, link it:
brew link openssl --force
But if it says linking is not allowed, use this:
echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
For Apple Silicon (M1/M2/M3), use:
echo 'export PATH="/opt/homebrew/opt/openssl/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
Verify:
openssl version
Option 2: Install Without Homebrew
Download OpenSSL source:
https://www.openssl.org/source/
Then run:
./Configure darwin64-x86_64-cc
make
sudo make install
(But Homebrew is MUCH easier.)
Install OpenSSL on Windows
Option 1: Use Precompiled Installer (Recommended)
Download from a trusted source like ShiningLight Productions:
Win64 OpenSSL Installer:
https://slproweb.com/products/Win32OpenSSL.html
(Choose Win64 OpenSSL v3.x Light or full version.)
Steps:
- Download installer
- Run it as Administrator
- Choose where to install
- Allow it to add OpenSSL to your system PATH
- Finish installation
openssl version
Option 2: Install Using Chocolatey (Windows Package Manager)
If you have Chocolatey installed:
choco install openssl
Or specific version:
choco install openssl --version=3.2.0
Verify:
openssl version
