laravel5中使用Guzzle, PHP HTTP client發送HTTPS請求怎麼搞https://github.com/guzzle/guzzle發送post請求報錯cURL error 60: See http://curl.haxx.se/libcurl/c. ..CURLE_SSL_CACERT (60)Peer certificate cannot be authenticated with known CA certificates.
$client->setDefaultOption('verify', false);
或
# 证书 https://github.com/guzzle/guzzle/blob/4.2.3/src/cacert.pem $client = new \GuzzleHttp\Client(['verify' => '/full/path/to/cert.pem']);
或