Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP inbuilt server: GuzzleHttp \ Exception \ RequestException cURL error 60: SSL certificate problem #40

Closed
abiodunjames opened this issue Jun 9, 2018 · 1 comment

Comments

@abiodunjames
Copy link
Contributor

abiodunjames commented Jun 9, 2018

You get SSL certificate error even when you set $verifySSL = false at the constructor.
This is because it was never set, so it always defaults to true as shown in this snippet irrespective of what you set it to be

/**
     * PlacesApi constructor.
     *
     * @param null $key
     * @param bool $verifySSL
     */
    public function __construct($key = null, $verifySSL = true)
    {
        $this->key = $key;

        $this->client = new Client([
            'base_uri' => self::BASE_URL,
        ]);
    }

I'll be making a pull request to address this.

abiodunjames added a commit to abiodunjames/google-places-api that referenced this issue Jun 9, 2018
abiodunjames added a commit to abiodunjames/google-places-api that referenced this issue Jun 9, 2018
SachinAgarwal1337 added a commit that referenced this issue Jun 9, 2018
@SachinAgarwal1337
Copy link
Owner

fixed: d084ff7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants