openssl@4

Install command:
brew install openssl@4

Cryptography and SSL/TLS Toolkit

https://openssl-library.org

License: Apache-2.0

Development: Pull requests

Formula JSON API: /api/formula/openssl@4.json

Formula code: openssl@4.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate
tahoe
sequoia
sonoma
macOS on
Intel
sonoma
Linux ARM64
x86_64

Current versions:

stable 4.0.2

Other versions:

openssl@3 3.6.4 Cryptography and SSL/TLS Toolkit
openssl@3.5 3.5.8 Cryptography and SSL/TLS Toolkit
openssl@3.0 3.0.22 Cryptography and SSL/TLS Toolkit

Keg-only because this is an alternate version of another formula.

Depends on:

ca-certificates 2026-08-13 Mozilla CA certificate store

Uses from macOS: perl (build)

Binaries: openssl

To add additional certificates, place .pem files in
    $HOMEBREW_PREFIX/etc/openssl@4/certs

and run
    $HOMEBREW_PREFIX/opt/openssl@4/bin/c_rehash

Analytics:

30 days90 days365 days
Installs26,20967,891104,230
Installs (--HEAD)2714
Installs on Request4,99313,44419,787
Installs on Request (--HEAD)2711
Build Errors86