title: Updating ca-certificates on mac os
body: <p>I am not completely familiar under the mac os environment, but I am trying to update the ca-certificates following the instructions on this page to solve an error: <a href="https://confluence.ecmwf.int/display/WEBAPI/Web-API+Troubleshooting" rel="noreferrer">https://confluence.ecmwf.int/display/WEBAPI/Web-API+Troubleshooting</a> point 3.1.2.3. </p>
  
  <p>I created the file <code>~/new-root-certificate.crt</code> and then I ran:</p>
  
  <pre><code>alert:~ Me$ sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain ~/new-root-certificate.crt
  SecCertificateCreateFromData: One or more parameters passed to a function were not valid.
  Error reading file /Users/Gino/new-root-certificate.crt
  </code></pre>
  
  <p>Who do I bypass this error?</p>