title: OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed Failed to enable crypto
body: <p>I am using OS X Yosemite</p>
  
  <p>I ran the following command in Composer because Laravel fails to download and install properly all the time:</p>
  
  <p><code>composer diagnose</code></p>
  
  <p>result:</p>
  
  <pre><code>Checking platform settings: OK
  Checking git settings: OK
  Checking http connectivity to packagist: OK
  Checking https connectivity to packagist: FAIL
  [Composer\Downloader\TransportException] The "https://packagist.org/packages.json" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
  error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
  Failed to enable crypto
  failed to open stream: operation failed
  Checking github.com rate limit: FAIL
  [Composer\Downloader\TransportException] The "https://api.github.com/rate_limit" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
  error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
  Failed to enable crypto
  failed to open stream: operation failed
  Checking disk free space: OK
  Checking composer version: 
  
  
    [Composer\Downloader\TransportException]                                     
    The "https://getcomposer.org/version" file could not be downloaded: SSL ope  
    ration failed with code 1. OpenSSL Error messages:                           
    error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify   
    failed                                                                       
    Failed to enable crypto                                                      
    failed to open stream: operation failed 
  </code></pre>
  
  <p>The main line I want to focus on is:</p>
  
  <pre><code>SSL operation failed with code 1. OpenSSL Error messages:
  error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
  Failed to enable crypto
  </code></pre>
  
  <p>How can I fix this. I have tried several solutions on the web and none have worked. I am totally new to the use of the command line.</p>
  
  <p>When downloading and installing Laravel with the following command: <code>composer create-project laravel/laravel --prefer-dist</code> can't I just manually download the stuff myself and place it in the correct folder to avoid this SSL problem?</p>