The code is working fine on Ubuntu vagrant box, but on local MacOs it does not load sertificates saying
cURL error 58: SSL: Can't load the certificate "..." and its private key: OSStatus -25299
I researched that Mac has a point of supporting the OS X native API instead of OpenSSL.
And I need to convert a pem + cert to pkcs12 like that.
openssl pkcs12 -export -in ./client.crt -inkey ./client.pem -out client.p12
But this is not working for me because my PHP server is on Ubuntu and I don't want to break what is working. My task is to make it work on Mac.
I would rather install curl with openssl support. I tried this:
$ brew uninstall curl
$ brew install curl --with-openssl
$ brew link curl --force
$ curl --version
But it did not solve the problem.
Please tell me what am I did wrong.
Thank you.