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

Peer Certificate Mismatch on Package Install #74

Closed
timkite opened this issue Mar 23, 2018 · 1 comment
Closed

Peer Certificate Mismatch on Package Install #74

timkite opened this issue Mar 23, 2018 · 1 comment

Comments

@timkite
Copy link

timkite commented Mar 23, 2018

All package install attempts on RHEL6 (PHP 5.3.3) and RHEL7 (PHP 5.4.16) systems fail with:

Error: The "https://wp-cli.org/package-index/packages.json" file could not be downloaded: Peer certificate CN=`ssl391970.cloudflaressl.com' did not match expected CN=`wp-cli.org'
failed to open stream: HTTP request failed!

The command succeeds on macOS 10.13.3 (PHP 7.1.7). A direct command line curl of https://wp-cli.org/package-index/packages.json from the RHEL servers is successful, so the CN verification seems to be something specific being done in PHP curl. Any thoughts at a workaround?

@schlessera
Copy link
Member

@timkite Often times, errors like these are due to outdated root certificates bundled with your curl package/extension. You'll need to update these.

Also, GitHub issues are meant for enhancement requests and specific, reproducible bugs, not for general support questions. For support options, please review http://wp-cli.org/#support

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

No branches or pull requests

2 participants