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

cURL 60 Error using ubuntu-20.04 and PHP 8.1.4 #590

Closed
2 of 5 tasks
justanotheranonymoususer opened this issue Apr 25, 2022 · 6 comments
Closed
2 of 5 tasks

cURL 60 Error using ubuntu-20.04 and PHP 8.1.4 #590

justanotheranonymoususer opened this issue Apr 25, 2022 · 6 comments
Assignees
Labels
invalid The issue is not valid

Comments

@justanotheranonymoususer

Describe the bug

Version

  • I have checked releases, and the bug exists in the latest patch version of v1 or v2.
  • v2
  • v1

Runners

  • GitHub Hosted
  • Self Hosted

Operating systems

ubuntu-latest => ubuntu-20.04

PHP versions

8.1 => 8.1.4

To Reproduce

Using curl_exec on my website with a valid cert returns error:
SSL certificate problem: unable to get local issuer certificate
The cert was updated yesterday, but my local cURL doesn't show this error.
I can provide the URL privately.

Expected behavior

No error.

Screenshots/Logs

Additional context

Maybe similar to this:
#511

Are you willing to submit a PR?

@shivammathur
Copy link
Owner

I ran a test and curl seems to be working correctly
https://github.com/shivammathur/test-setup-php/actions/runs/2219439658/workflow

If this is happening on a private repo, please create a minimal public repo to reproduce this, or send me the logs and your workflow details at contact@shivammathur.com

@shivammathur shivammathur added the could-not-reproduce The issue specified could not be reproduced label Apr 25, 2022
@justanotheranonymoususer
Copy link
Author

@shivammathur
Copy link
Owner

This has got nothing to do with setup-php

The certificate chain on your server is incomplete
https://www.ssllabs.com/ssltest/analyze.html?d=students.technion.ac.il
https://stackoverflow.com/questions/47290165/ssl-servers-certificate-chain-is-incomplete

@shivammathur shivammathur added invalid The issue is not valid and removed bug Something isn't working could-not-reproduce The issue specified could not be reproduced labels Apr 25, 2022
@justanotheranonymoususer
Copy link
Author

@shivammathur
Copy link
Owner

ok, Then in the curl call you can disable the SSL validation using -k parameter.

curl -Lk https://students.technion.ac.il/local/technionsearch/search

@justanotheranonymoususer
Copy link
Author

I appreciate your help. I preferred not to disable validation completely. I solved it with option 2 from here:
https://stackoverflow.com/a/70011298/2604492

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid The issue is not valid
Projects
None yet
Development

No branches or pull requests

2 participants