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 SSL certificate missing? #130

Closed
benr77 opened this issue Apr 28, 2019 · 3 comments
Closed

Curl SSL certificate missing? #130

benr77 opened this issue Apr 28, 2019 · 3 comments

Comments

@benr77
Copy link

benr77 commented Apr 28, 2019

Expected Behavior

PHP Curl requests to HTTPS URLs should succeed

Current Behavior

Requests are failing

Possible Solution

Looks like it's something to do with cacert.pem not being found
https://docs.bolt.cm/3.6/howto/curl-ca-certificates

Steps to Reproduce (for bugs)

  • Using image thecodingmachine/php:7.2-v2-fpm
  • In a PHP script, use Curl to request an HTTPS url
  • See error SSL certificate problem: unable to get local issuer certificate when the curl request fails.

Docker 18.09.5 is on Linux Mint 19

@moufmouf
Copy link
Member

moufmouf commented May 6, 2019

Hi @benr77 ,

That's weird, we have never had issues with HTTPS inside these images and on my projects, I can curl a https endpoint without problem.

Could you maybe share a PHP code snippet to reproduce the issue?

@benr77
Copy link
Author

benr77 commented Jun 6, 2019

Sorry for the lack of response. I've had to work on another project for a while. Should be able to get back to this issue and report something useful (or not!) in the next week or so. Thanks.

@benr77
Copy link
Author

benr77 commented Jun 14, 2019

Ok, I've had a chance to revisit this issue. It is now working as expected. I think it may have been caused by a mis-configuration of the certificate on the server I was trying to access. I'll close the issue for now and re-open if needed. Thanks

@benr77 benr77 closed this as completed Jun 14, 2019
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