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