src/Http/Middleware/Certificate.php
private function verifyCertificate(IlluminateRequest $request)
    {
        $signature = $this->getDecodedSignature($request);
        $certificate = $this->getCertificate($request);

        //Get the request body that will be validated
        $data = $request->getContent();

        $certKey = openssl_pkey_get_public($certificate);

        // ok, let's do this thing! we're saving the world from hackers here!
        $valid = openssl_verify($data, $signature, $certKey, self::ENCRYPT_METHOD);

        return $valid;
    }
private function verifyCertificate(IlluminateRequest $request)
    {
        $signature = $this->getDecodedSignature($request);
        $certificate = $this->getCertificate($request);

        //Get the request body that will be validated
        $data = $request->getContent();

        $certKey = openssl_pkey_get_public($certificate);

        // ok, let's do this thing! we're saving the world from hackers here!
        $valid = openssl_verify($data, $signature, $certKey, self::ENCRYPT_METHOD);

        return $valid;
    }
@param \Illuminate\Http\Request $request

@return int