Skip to content

Troubleshooting: cURL error when using Cloudflare WARP / Zero Trust #977

Closed Answered by nickbasham-ltnow
nickbasham-ltnow asked this question in Q&A
Discussion options

You must be logged in to vote

I figured this out, so just posting a follow-up in case anyone else runs into this in the future. The issue had nothing to do with Herd – my config changes were working after additional testing against Herd's version of curl bundled with PHP.

The issue was some functions in WordPress, like plugin downloading/updating, uses its internal HTTP API/client which maintains its own certificate authority list. You just need to append Cloudflare's certificate to the WP certificate bundle located at /wp-includes/certificates/ca-bundle.crt. I wrote a script to do this, so now I can easily do that with any new WordPress installation.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nickbasham-ltnow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant