Skip to content

Instantly share code, notes, and snippets.

@nikitasius
Last active October 17, 2022 20:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nikitasius/7ff0de91e314d955f4e66c76a5c47bf2 to your computer and use it in GitHub Desktop.
Save nikitasius/7ff0de91e314d955f4e66c76a5c47bf2 to your computer and use it in GitHub Desktop.

Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed

go to https://curl.haxx.se/docs/caextract.html

https://curl.haxx.se/ca/cacert.pem in /etc/ in chroot

add this into php-fpm profiles

php_admin_value[curl.cainfo] = /etc/cacert.pem
php_admin_value[openssl.cafile] = /etc/cacert.pem
@mreho
Copy link

mreho commented Jan 6, 2019

Hi,
Thank you for your help, I became crazy with this error ^^
Now everything works perfectly :)

@nikitasius
Copy link
Author

You're welcome 😄

@nikitasius
Copy link
Author

also for chrooted instances:

  • pickup libnss_dns libs from here /usr/lib/x86_64-linux-gnu/ to your /lib chrooted folder with symlinks (edit them btw to let correct point)
  • copy hosts,resolve.conf from /etc to your /etc chroot folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment