diff --git a/src/snapchat.php b/src/snapchat.php index 577a3e7..c822ea2 100644 --- a/src/snapchat.php +++ b/src/snapchat.php @@ -165,6 +165,7 @@ public function getAttestation($password, $timestamp) $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://api.casper.io/droidguard/attest/binary"); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_POST, TRUE); curl_setopt($ch, CURLOPT_POSTFIELDS, array( "bytecode_proto" => base64_encode($return), @@ -348,6 +349,7 @@ public function getClientAuthToken($username, $password, $timestamp) $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://api.casper.io/security/login/signrequest/"); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLINFO_HEADER_OUT, TRUE); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_HEADER, FALSE);