Skip to main content
2 of 2
Replace automatic PHP syntax highlighting with INI one
Benjamin Loison
  • 5.8k
  • 4
  • 20
  • 37

Fix for macos 12.4 / Mamp 6.6 / Homebrew 3.5.2 / Openssl@3

Terminal

Check version

openssl version -a 

Mine was pointing to:

... OPENSSLDIR: "/opt/homebrew/etc/openssl@3" ... 

So I looked through homebrew's dir /opt/homebrew/etc/openssl@3 and found the cert.pem and made sure my Mamp's current version of php's php.ini file was pointing to homebrew's correct openssl version's cert.pem

add to php.ini

openssl.cafile=/opt/homebrew/etc/openssl@3/cert.pem