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

Problem with the certificate being rejected #24

Closed
Budrose opened this issue Jul 21, 2020 · 1 comment
Closed

Problem with the certificate being rejected #24

Budrose opened this issue Jul 21, 2020 · 1 comment
Assignees

Comments

@Budrose
Copy link

Budrose commented Jul 21, 2020

Below error message. Works fine on my local machine but an issue when I run it on my client's server

Fatal error: Uncaught exception 'GuzzleHttp\Exception\RequestException' with message 'cURL error 60: SSL certificate problem: self signed certificate in certificate chain (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)' in C:\xampp\htdocs\xero-printcOauth2\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php:201 Stack trace: #0 C:\xampp\htdocs\xero-printcOauth2\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(155): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array) #1 C:\xampp\htdocs\xero-printcOauth2\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(105): GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory)) #2 C:\xampp\htdocs\xero-printcOauth2\vendor\guzzlehttp\guzzle\src\Handler\CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory)) in C:\xampp\htdocs\xero-printcOauth2\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 201

@SidneyAllen SidneyAllen self-assigned this Jul 21, 2020
@SidneyAllen
Copy link
Contributor

@Budrose - This sounds like an issue with your hosting environment/certificates and guzzle.

While the xero-php-oauth2 SDK uses guzzle, we aren't the best ppl to trouble shoot this. A quick google turned up several issues on the guzzle repository. Sounds like there are various ways you could try to solve this for your unique situation.

guzzle/guzzle#1935
guzzle/guzzle#394

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