2017-02-07 6 views
1

모두 잘하고 있습니다. laravel을 사용하여 새 프로젝트를 만드는 동안 SSL 오류가 발생합니다. 여기 내 오류입니다 : 그 문제에 대한SSL3_GET_SERVER_CERTIFICATE : Mac에서 xampp를 사용하여 인증서 확인에 실패했습니다.

[Composer\Downloader\TransportException]          
    The "http://packagist.org/p/laravel/laravel$745fa4e5f0a1485878f0b4c5be5cf26 
    a9e5d68243751f3c34acbd8bf3766065d.json" file could not be downloaded: SSL o 
    peration 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 

, 나는 여러 솔루션을하지만 결과 여전히 제로 노력하고있어. 나는 SSL 문제에 사용되는 하나의 방법을 공유하고 싶다. 나는 아래의 메소드를 웹 사이트로 가져 왔고 php.ini 파일에 코드 아래에 추가 할 사람 가이드가 어디 있나.

[curl] 
; A default value for the CURLOPT_CAINFO option. This is required to be an 
; absolute path. 
curl.cainfo ="/Applications/XAMPP/xamppfiles/etc/cacert.pem" 

[openssl] 
; The location of a Certificate Authority (CA) file on the local filesystem 
; to use when verifying the identity of SSL/TLS peers. Most users should 
; not specify a value for this directive as PHP will attempt to use the 
; OS-managed cert stores in its absence. If specified, this value may still 
; be overridden on a per-stream basis via the "cafile" SSL stream context 
; option. 
openssl.cafile="/Applications/XAMPP/xamppfiles/etc/cacert.pem" 

그러나이 방법도 작동하지 않습니다. 아무도 내가 어떻게 그 문제를 해결할 수 있도록 도와주세요. 감사합니다

답변

0

명령하고 문제를 해결, 내가 나 자신에게 그것을 나는 또한 5.6.24

PHP와 맥 OS 시에라에있어

curl -sS https://getcomposer.org/installer | php mv composer.phar /usr/local/bin/composer 

고정 실행

관련 문제