From e16dacbda00cc2940a830e6db93df8b3d54d1948 Mon Sep 17 00:00:00 2001 From: fengyuexingzi Date: Wed, 13 Jun 2018 14:43:01 +0800 Subject: [PATCH] ssl --- auth/linkedin/callback.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/auth/linkedin/callback.php b/auth/linkedin/callback.php index 1717032..f607060 100644 --- a/auth/linkedin/callback.php +++ b/auth/linkedin/callback.php @@ -60,6 +60,9 @@ function getInfo($access_token) curl_setopt($ch, CURLOPT_HTTPHEADER, [ 'Authorization: ' . $data['access_token'], ]); + + curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_TIMEOUT, 5);