On the System Report, the oft-seen errors that result from httprl's requirements hook check can be seen in the case where a developer is working on a site that uses https that uses a self-signed cert, and php 5.6 or greater. This is because php's streaming functions require valid certificates for https connections. It's not really possible to fix the problem that I can see, including all the suggestions in the issues about configuration settings.
This produces some annoying results, such as the Configuration admin page being extremely slow, since that page runs hook_requirements(). I've looked through the module and I don't see documentation about how requests to self are used.
An feature request that could help avoid this 'bug' could be to have a development-only configuration for dev servers with self-signed certificates, that places configuration options into the stream that set verify_peer and verify_peer_name to false and maybe set allow_self_signed to true, if that's necessary. That way the full functionality could be tested on a dev site that uses self-signed certificates.
This issue has been brought up within some other issues, but I thought it deserves a ticket.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | httprl-n2831540-5.patch | 604 bytes | damienmckenna |
Comments
Comment #2
damienmckennaComment #3
damienmckennaComment #4
damienmckennaThis is currently possible thanks to #2780147: SSL cert problems when using PHP 5.6+. However, there's no documentation for it.
In order to make it work you have to add the following to your settings.php file:
Comment #5
damienmckennaHere's a patch to add some instructions to the README.txt file.
Comment #6
damienmckennaOf course this uses a different variable than the proposed variable for core in #2761345: PHP 5.6, 7 - drupal_http_request() behavior changes for SSL using self-signed certs.
Comment #7
damienmckenna.. and that's because the variable is based on this issue which was already committed to D8 back in 2014: #1081192: Verify peer on HTTPS if cURL available (but be careful of built-in cert bundles in the codebase)
Comment #9
mikeytown2 commentedThanks for the patch!