nabla-c0d3 / nassl

Experimental OpenSSL wrapper for Python 3.8+ and SSLyze.
GNU Affero General Public License v3.0
39 stars 35 forks source link

nassl fails to build on Apple Silicon #69

Closed fxcoudert closed 3 years ago

fxcoudert commented 3 years ago

nassl is building openssl internally, and that does not go well:

OPENSSL LEGACY: Starting...
Configuring for darwin64-x86_64-cc

Full logs at https://github.com/Homebrew/homebrew-core/pull/68487

fxcoudert commented 3 years ago

Instead of darwin64-x86_64-cc it should be darwin64-arm64-cc on Apple Silicon (ARM CPU). This new platform is supported since openssl 1.1.1i: https://github.com/openssl/openssl/issues/12254

The problem in your code is here: https://github.com/nabla-c0d3/nassl/blob/aefe23bbc8fc0b33ba18ca8631720c4748ade17d/build_tasks.py#L139